-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathonline_search.py
executable file
·33 lines (27 loc) · 1.12 KB
/
online_search.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
#!/usr/bin/env python
# OWASP ODZ Muti CMS Scanner 2013
# Author : Mennouchi Islam Azeddine [email protected]
# This Tool is published Under the GNU public license (for more information license.txt)
# OnlineSearch Class :
import re,urllib2,mechanize,xml.etree.ElementTree,shodan
from fingerprint import FingerPrint
class OnlineSearch:
""" Online search for vulns """
def __init__(self):
self.fprint = FingerPrint()
def site_search(self,com):
"""search on packetstorm.org"""
sere = self.fprint.get_cont("http://packetstormsecurity.org/search/files/?q="+com+"&s=files")
if (re.search(r"No Results Found",sere)):
print "No Results Found in packetstormsecurity.org"
else:
linex1 = re.compile(r'<a class="ico text-plain" href="(.+)" title="Size: (.+) KB">(.*?)</a>')
dir1 = self.fprint.copy(linex1.findall(sere))
for elem in dir1:
print "Link : packetstormsecurity.org"+elem[0]
print "Size : "+elem[1]+" KB"
print "Title : "+elem[2]
print "\n"
print "---------------------------------------------------------"
def exploit_db_search(self,keyword):
#Todo