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

admin 2023年12月31日21:56:02Python评论1,746 次浏览阅读模式

#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()

相关文章
weinxin
我的微信
微信扫一扫
admin
  • 本文由 发表于 2023年12月31日21:56:02
  • 转载请务必保留本文链接:https://anyun.org/a/jishuguanzhu/bianchengchalou/python/2023/1231/14846.html

发表评论

匿名网友 填写信息

:?: :razz: :sad: :evil: :!: :smile: :oops: :grin: :eek: :shock: :???: :cool: :lol: :mad: :twisted: :roll: :wink: :idea: :arrow: :neutral: :cry: :mrgreen: