Skip to content

Instantly share code, notes, and snippets.

@slayerlab
Last active May 12, 2016 05:04
Show Gist options
  • Save slayerlab/1769f7e12db1c4813a21 to your computer and use it in GitHub Desktop.
Save slayerlab/1769f7e12db1c4813a21 to your computer and use it in GitHub Desktop.
Ferramenta quem faz checagem dos últimos exploits postados no Exploit-DB.
#!/usr/bin/env python
#coding: utf-8
'''
Ferramenta quem faz checagem dos últimos exploits postados no Exploit-DB.
Developed by: Leonardo Sena
a.k.a Slayer Owner | sl4y3r 0wn3r
http://slayerowner.blogspot.com.br/2014/08/python3-xml-parse-usando-minidom.html
'''
import re, urllib.request
from xml.dom.minidom import parseString
rss_xml = urllib.request.urlopen('http://www.exploit-db.com/rss.xml')
source_xml = parseString(rss_xml.read())
edb_rss = source_xml.getElementsByTagName('rss')[0]#.toxml()
channel_tag = edb_rss.getElementsByTagName('channel')[0]
item_tag = channel_tag.getElementsByTagName('item')
for recent_updates,line in zip(item_tag,range(len(item_tag))):
title = recent_updates.getElementsByTagName('title')[0].firstChild.data
link = recent_updates.getElementsByTagName('link')[0].firstChild.data
pubDate = recent_updates.getElementsByTagName('pubDate')[0].firstChild.data
regexp = re.search(r"^\w+\,\s\d{1,2}\s\w{3}\s\d{4}\s[0-9]{1,2}\:[0-9]{1,2}\:[0-9]{1,2}",pubDate)
print(title+"\n"+link+"\n"+regexp.group()+"\n")
@danilovazb
Copy link

Ahhhh....ta de viadagi mlk bixa.....faz essas paradas e nao mostra pra ngm.....c ta de melinsquencia ?

@slayerlab
Copy link
Author

kkkkkkkkkkkkkkk ta no blog seu gay. @danilovazb

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment