网页在线制作网站源码,wordpress主题去除友情链接,网页制作详细步骤,wordpress google ua code 是什么注入一直都是用sqlmap 导致本来就不怎么精通的手工注入现在就忘的一干二净 想实战练习 却一时又找不到有注入的网站 于是便有了这篇文章 想找个批量获取域名链接的工具 但都是只是获取域名而已 都没获取后面的参数 于是自己写了个只获取bing前10页的结果 输入q 结束循环…注入一直都是用sqlmap 导致本来就不怎么精通的手工注入现在就忘的一干二净 想实战练习 却一时又找不到有注入的网站 于是便有了这篇文章 想找个批量获取域名链接的工具 但都是只是获取域名而已 都没获取后面的参数 于是自己写了个只获取bing前10页的结果 输入q 结束循环 并开始整理数据 #!/usr/bin/env python
# -*- conding:utf-8 -*-
import re
import urllib.request,urllib.parselogo _______ ___ ___ _ |__ __| / _ \ / _ \ | | | | | | | | | | | | | | ___ | | | | | | | | | | | | / __|| | | |_| | | |_| | | | \__ \\|_| \___/ \___/ |_| |___/
print(logo)
def Obtain_url(): #爬抓bing获取urlpage [, first11FORMPERE, first21FORMPERE1, first31FORMPERE2,first41FORMPERE3, first51FORMPERE4, first61FORMPERE5,first71FORMPERE6, first81FORMPERE7, first91FORMPERE8]headers {User-Agent: rMozilla/5.0 (Windows NT 6.1; WOW64) AppleWebKit/537.36 (KHTML, like Gecko) rChrome/45.0.2454.85 Safari/537.36 115Browser/6.0.3,Referer: rhttp://www.baidu.com,Connection: keep-alive}while True: #一直循环输入关键字crux input(请输入关键字)if crux q: #判断关键字是否为q 是就结束循环breakcrux urllib.parse.quote(crux) #解决编码报错问题with open(url.txt, a, encodingutf-8) as f:for i in page:content urllib.request.Request(https://cn.bing.com/search?qcruxi,headersheaders)contents urllib.request.urlopen(content).read().decode(utf-8)res re.compile(rh2a target_blank href(.*?))data res.findall(contents)for i in data:print(i)f.write(i\n)def url(): #处理bing爬抓下来的链接url []with open(url.txt,r,encodingutf-8) as f: #读取文件内容到列表里for i in f.readlines():url.append(i)data list(set(url)) #去重url列表data sorted(data) #排列顺序with open(new_url.txt,a,encodingutf-8) as f: #判断url是否有.php? .asp? .aspx?for i in data:res re.compile(r\.php\?)datas res.findall(i)if datas ! []:f.write(i)else:res re.compile(r\.asp\?)datas res.findall(i)if datas ! []:f.write(i)else:res re.compile(r\.aspx\?)datas res.findall(i)if datas ! []:f.write(i)
Obtain_url()
url()输入q 结束循环并开始处理数据 url.txt 是爬抓的链接数据 new_url.txt 是处理后的数据 复制 new_url.txt 到sqlmap根目录 sqlmap.py -m new_url.txt --batch --smart -m是用new_url.txt里面的链接批量注入 --batch自动选择 --smart快速注入 注入的结果在C:\Users\Administrator\.sqlmap\output 文件下 类似results-04242018_0624pm.csv的文件中 转载于:https://www.cnblogs.com/smxiazi/p/8954594.html