zoukankan      html  css  js  c++  java
  • 获取乌云补天指定关键字的漏洞并输出URL和标题

    #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()
  • 相关阅读:
    JS URL传中文参数引发的乱码问题
    git (转载)
    php webservice
    php date之间的相互转换
    在图片上加字符-base64转图片-图片转base64
    转:微软面试一百题
    2014-8-17 note
    some base knowledge
    introduction
    Centos6.6 编译安装nginx
  • 原文地址:https://www.cnblogs.com/shellr00t/p/4779073.html
Copyright © 2011-2022 走看看