Advertisement
Guest User

paste++

a guest
Apr 30th, 2017
120
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
C++ 6.71 KB | None | 0 0
  1. using System;
  2. using System.Collections.Generic;
  3. using System.IO;
  4. using System.Net;
  5. using System.Text;
  6. using System.Windows.Forms;
  7. using System.Linq;
  8.  
  9. using System.Diagnostics;
  10. using System.Drawing;
  11. using System.Reflection;
  12. using System.Text.RegularExpressions;
  13.  
  14. namespace Loader
  15. {
  16.     public partial class Form1 : Form
  17.     {
  18.         public Form1()
  19.         {
  20.             InitializeComponent();
  21.         }
  22.         Dictionary<string, Tuple<string, string, string>> cheatDict = new Dictionary<string, Tuple<string, string, string>>() {
  23.             { "CHEAT NAME FOR SKIDS" ,new Tuple<string, string,string>("csgo","http://vps402025.ovh.net/hitler/lickmyass/suckmydick/hitlerisnaked/pcode/hitlernaked/steek.dll","Customer")}    // important inject meme goes here
  24.         };
  25.         string subscribedTo;
  26.  
  27.         private void button1_Click_1(object sender, EventArgs e)
  28.         {
  29.             button1.Enabled = false;
  30.             if (validAccount(login_textbox.Text, password_textbox.Text))
  31.             {
  32.  
  33.                 tabControl1.SelectedIndex = 1;
  34.                 comboBox1.Items.AddRange(cheatDict.Where(m=>m.Value.Item3 == subscribedTo).Select(n => n.Key).ToArray());
  35.             }
  36.            
  37.             else
  38.                 MessageBox.Show("Account invalid");
  39.             button1.Enabled = true;
  40.         }
  41.  
  42.  
  43.         public bool validAccount(string username,string password)
  44.         {
  45.            
  46.             /*
  47.             var request = (HttpWebRequest)WebRequest.Create("http://silenthookcheats.net/member.php");
  48.             var data = Encoding.ASCII.GetBytes($"action=do_login&url=world&username={username}&password={password}");
  49.  
  50.             request.Method = "POST";
  51.             request.ContentType = "application/x-www-form-urlencoded";
  52.             request.ContentLength = data.Length;
  53.  
  54.             using (var stream = request.GetRequestStream())
  55.             {
  56.                 stream.Write(data, 0, data.Length);
  57.             }
  58.  
  59.             var responseString = new StreamReader(((HttpWebResponse)request.GetResponse()).GetResponseStream()).ReadToEnd();
  60.  
  61.            
  62.  
  63.             return responseString.Contains("successfully been logged in"))
  64.            
  65.             */
  66.             webBrowser1.ScriptErrorsSuppressed = true;
  67.             tabControl1.SelectedIndex = 2;
  68.             webBrowser1.Refresh(WebBrowserRefreshOption.Completely);
  69.             webBrowser1.Navigate("http://steek.cc/member.php?action=login");
  70.  
  71.  
  72.             while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
  73.             {
  74.                 Application.DoEvents();
  75.             }
  76.             if (!webBrowser1.DocumentText.Contains("Welcome guest"))
  77.             {
  78.                 string logoutkey = new Regex(@"logoutkey=(.*?)"" > Sign Out </ a > ").Match(webBrowser1.DocumentText).Groups[1].Value;
  79.                 webBrowser1.Navigate($"http://steek.cc/member.php?action=logout&logoutkey={logoutkey}");
  80.                 while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
  81.                 {
  82.                     Application.DoEvents();
  83.                 }
  84.                 webBrowser1.Navigate("http://steek.cc/member.php?action=login");
  85.                 while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
  86.                 {
  87.                     Application.DoEvents();
  88.                 }
  89.             }
  90.             webBrowser1.Document.GetElementsByTagName("input").GetElementsByName("username")[0].SetAttribute("value", username);
  91.             webBrowser1.Document.GetElementsByTagName("input").GetElementsByName("password")[0].SetAttribute("value", password);
  92.             webBrowser1.Document.GetElementsByTagName("input").GetElementsByName("submit")[0].InvokeMember("Click");
  93.             var d = DateTime.Now;
  94.             while (webBrowser1.Url.ToString() != "http://steek.cc/index.php")
  95.             {
  96.                 Application.DoEvents();
  97.                 if ((DateTime.Now - d).TotalSeconds > 5)
  98.                     return false;
  99.             }
  100.            
  101.             webBrowser1.Navigate("http://steek.cc/usercp.php");
  102.             while (webBrowser1.ReadyState != WebBrowserReadyState.Complete)
  103.             {
  104.                 Application.DoEvents();
  105.             }
  106.             while (!webBrowser1.DocumentText.Contains("Your Account Summary"))
  107.             {
  108.                 Application.DoEvents();
  109.             }
  110.  
  111.             subscribedTo = new Regex("<strong>Primary User Group:</strong> (.*?)<br").Match(webBrowser1.DocumentText).Groups[1].Value;
  112.  
  113.  
  114.             return true;
  115.         }
  116.  
  117.  
  118.  
  119.         private void Form1_Load(object sender, EventArgs e)
  120.         {
  121.             //login_textbox.Text = "TestUser1";
  122.             //password_textbox.Text = "test123";
  123.  
  124.         }
  125.  
  126.         private void comboBox1_SelectedValueChanged(object sender, EventArgs e)
  127.         {
  128.             timer1.Enabled = true;
  129.             process_box.Text = cheatDict[comboBox1.SelectedItem.ToString()].Item1;
  130.         }
  131.  
  132.  
  133.         private void button2_Click(object sender, EventArgs e)
  134.         {
  135.             DllInjector instance = DllInjector.GetInstance;
  136.             string path = AppDomain.CurrentDomain.BaseDirectory + cheatDict[comboBox1.SelectedItem.ToString()].Item1 + ".dll";
  137.             File.Delete(path);
  138.  
  139.             new WebClient().DownloadFile(cheatDict[comboBox1.SelectedItem.ToString()].Item2, path);
  140.             File.SetAttributes(path, File.GetAttributes(path) | FileAttributes.Hidden);
  141.  
  142.             var result = instance.Inject(cheatDict[comboBox1.SelectedItem.ToString()].Item1, path);
  143.  
  144.             MessageBox.Show(result.ToString());
  145.  
  146.             if (result == DllInjectionResult.Success)
  147.                 Environment.Exit(1);
  148.         }
  149.  
  150.         private void timer1_Tick(object sender, EventArgs e)
  151.         {
  152.             if (Process.GetProcessesByName(cheatDict[comboBox1.SelectedItem.ToString()].Item1).Length > 0) //checkss if process exists
  153.             {
  154.                 button2.Enabled = true;
  155.                 label5.ForeColor = Color.LimeGreen;
  156.                 label5.Text = "Found";
  157.             }
  158.             else
  159.             {
  160.                 button2.Enabled = false;
  161.                 label5.ForeColor = Color.Red;
  162.                 label5.Text = "Not Found";
  163.             }
  164.  
  165.            
  166.         }
  167.  
  168.         private void Form1_FormClosing(object sender, FormClosingEventArgs e)
  169.         {
  170.             //nothing inplemented
  171.         }
  172.  
  173.         private void webBrowser1_DocumentCompleted(object sender, WebBrowserDocumentCompletedEventArgs e)
  174.         {
  175.  
  176.         }
  177.  
  178.         private void tabPage1_Click(object sender, EventArgs e)
  179.         {
  180.  
  181.         }
  182.  
  183.         private void pictureBox1_Click(object sender, EventArgs e)
  184.         {
  185.  
  186.         }
  187.     }
  188. }
  189.  
  190.  
  191.  
  192.  
  193.  
  194. // loader by ninjacodex pl0x ez p100
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement