Gets the vulnerability of the black cloud to the specified keyword and outputs the URL and title

Source: Internet
Author: User

#Coding=utf-8
ImportUrllib2
ImportRe
ImportTime
defTimestamp ():
returnSTR (Time.strftime ("%y-%m-%d%h:%m:%s", Time.localtime ()))
Print'Start time:'+ timestamp ()
forIinchRange (1,200):
PrintI
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= "(. * (Phoenix | le video | headlines | sinopec | oil | Tcl| (CAS) .*<)', HTML1)
n = Re.findall ('</a> release <a href= "(. * (Phoenix | le | headline | sinopec | oil | tcl| CAs) .*</a> </p>)', HTML2)
forUrl1inchM:
Print"http://www.wooyun.org"+ url1[0]
forUrl2inchN:
Print"http://butian.360.cn"+ url2[0]
Time.sleep (300)
Print'End Time:'+ timestamp ()

Gets the vulnerability of the black cloud to the specified keyword and outputs the URL and title

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.