import urllib
import re
import os
search = (raw_input('[!]Search: '))
site = "http://www.exploit-db.com/list.php?description="+search+"&author=&platform=&type=&port=&osvdb=&cve="
print site
source = urllib.urlopen(site).read()
founds = re.findall("href='/exploits/\d+",source)
print "\n[+]Search",len(founds),"Results\n"
if len(founds) >=1:
for found in founds:
found = found.replace("href='","")
print "http://www.exploit-db.com"+found
else:
print "\nCouldnt find anything with your search\n"
Lorsque je recherche sur le site explo-db.com, je ne fais que 25 résultats, comment puis-je aller à l'autre page ou passer 25 résultats.Recherche d'un site Web
L'utilisation d'expressions rationnelles pour analyser HTML est incorrecte. Voir http://stackoverflow.com/questions/1732348/regex-match-open-tags-except-xhtml-self-contained-tags et quelques-uns des nombreux autres sujets traitant de ce sujet. –