码迷,mamicode.com
首页 > Web开发 > 详细

获取乌云补天指定关键字的漏洞并输出URL和标题

时间:2015-09-02 18:44:53      阅读:144      评论:0      收藏:0      [点我收藏+]

标签:

#coding=utf-8
import urllib2
import re
import time
def timestamp():
        return str(time.strftime("%Y-%m-%d %H:%M:%S", time.localtime()))
print start time: + timestamp()
for i in range(1,200):
        print i
        web1 = urllib2.urlopen(http://wooyun.org/bugs/new_submit/)
        web2 = urllib2.urlopen(https://butian.360.cn/vul/list)
        html1 = web1.read()
        html2 = web2.read()
        m = re.findall(<td><a href="(.*(凤凰|乐视|头条|中石化|石油|TCL|中科院).*<), html1)
        n = re.findall(</a> 发布 <a href="(.*(凤凰|乐视|头条|中石化|石油|TCL|中科院).*</a> </p>), html2)
        for url1 in m:
            print "http://www.wooyun.org" +  url1[0]
        for url2 in n:
            print "http://butian.360.cn" + url2[0]
        time.sleep(300)
print end   time: + timestamp()

获取乌云补天指定关键字的漏洞并输出URL和标题

标签:

原文地址:http://www.cnblogs.com/shellr00t/p/4779073.html

(0)
(0)
   
举报
评论 一句话评论(0
登录后才能评论!
© 2014 mamicode.com 版权所有  联系我们:gaon5@hotmail.com
迷上了代码!