mirror of
https://github.com/laramies/theHarvester.git
synced 2024-09-22 00:06:30 +08:00
Merge pull request #181 from L1ghtn1ng/dev
Incoperate PR #178 changes plus a few tweaks
This commit is contained in:
commit
2997e0d7ce
|
@ -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
|
||||
|
||||
|
|
|
@ -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
|
||||
|
|
|
@ -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
|
|
@ -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)
|
||||
|
|
Loading…
Reference in a new issue