Merge pull request #181 from L1ghtn1ng/dev

Incoperate PR #178 changes plus a few tweaks
This commit is contained in:
Matt 2019-02-10 07:01:06 +00:00 committed by GitHub
commit 2997e0d7ce
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23
4 changed files with 8 additions and 8 deletions

View file

@ -26,7 +26,7 @@ def do_search(self):
'Accept-Language': 'en-us,en',
'User-agent': Core.get_user_agent()
}
h = requests.get(url=('http://'+self.server + '/search?q=%40' + self.word + '&count=50&first=' + str(self.counter)), headers=headers)
h = requests.get(url=('https://' + self.server + '/search?q=%40"' + self.word + '"&count=50&first=' + str(self.counter)), headers=headers)
self.results = h.text
self.totalresults += self.results

View file

@ -3,7 +3,7 @@
import requests
class search_virustotal:
class SearchVirustotal:
def __init__(self, word):
self.word = word.replace(' ', '%20')
@ -21,7 +21,7 @@ def do_search(self):
print(e)
headers = {'User-Agent': Core.get_user_agent()}
try:
r=requests.get(urly, headers=headers)
r = requests.get(urly, headers=headers)
except Exception as e:
print(e)
self.results = r.text

View file

@ -1,7 +1,7 @@
beautifulsoup4>=4.7.1
plotly>=3.5.0
pytest>=4.1.1
plotly>=3.6.1
pytest>=4.2.0
PyYaml>=3.13
requests>=2.21.0
shodan>=1.10.0
texttable>=1.6.0
texttable>=1.6.0

View file

@ -382,7 +382,7 @@ def start():
elif engineitem == 'virustotal':
print('\033[94m[*] Searching VirusTotal. \033[0m')
search = virustotal.search_virustotal(word)
search = virustotal.SearchVirustotal(word)
search.process()
hosts = filter(search.get_hostnames())
all_hosts.extend(hosts)
@ -678,7 +678,7 @@ def start():
vhost = sorted(set(vhost))
print('\033[94m[*] Searching VirusTotal. \033[0m')
search = virustotal.search_virustotal(word)
search = virustotal.SearchVirustotal(word)
search.process()
hosts = filter(search.get_hostnames())
all_hosts.extend(hosts)