mirror of
https://github.com/laramies/theHarvester.git
synced 2026-08-17 19:35:40 +02:00
Removing old reporting code
This commit is contained in:
+3
-3
@@ -1,9 +1,9 @@
|
||||
*.idea
|
||||
*.pyc
|
||||
*.sqlite
|
||||
.html
|
||||
.vscode
|
||||
.xml
|
||||
*.html
|
||||
*.vscode
|
||||
*.xml
|
||||
api-keys.yaml
|
||||
debug_results.txt
|
||||
tests/myparser.py
|
||||
|
||||
@@ -3,7 +3,7 @@
|
||||
from theHarvester.discovery import *
|
||||
from theHarvester.discovery.constants import *
|
||||
from theHarvester.lib import hostchecker
|
||||
from theHarvester.lib import htmlExport
|
||||
#from theHarvester.lib import htmlExport
|
||||
from theHarvester.lib import reportgraph
|
||||
from theHarvester.lib import stash
|
||||
from theHarvester.lib import statichtmlgenerator
|
||||
@@ -628,22 +628,11 @@ def start():
|
||||
</body>
|
||||
</html>
|
||||
'''
|
||||
Html_file = open('report.html', 'w')
|
||||
Html_file = open(filename, 'w')
|
||||
Html_file.write(HTMLcode)
|
||||
Html_file.close()
|
||||
print('[*] Reporting finished.')
|
||||
print('[*] Saving files.')
|
||||
html = htmlExport.HtmlExport(
|
||||
all_emails,
|
||||
full,
|
||||
vhost,
|
||||
dnsres,
|
||||
dnsrev,
|
||||
filename,
|
||||
word,
|
||||
shodanres,
|
||||
dnstldres)
|
||||
html.writehtml()
|
||||
except Exception as e:
|
||||
print(e)
|
||||
print('\n\033[93m[!] An error occurred while creating the output file.\n\n \033[0m')
|
||||
|
||||
@@ -1,6 +1,5 @@
|
||||
from theHarvester.lib.core import *
|
||||
from theHarvester.lib.core import Core
|
||||
from theHarvester.parsers import myparser
|
||||
import grequests
|
||||
import requests
|
||||
|
||||
class SearchVirustotal:
|
||||
@@ -16,7 +15,6 @@ class SearchVirustotal:
|
||||
base_url = f'https://www.virustotal.com/ui/domains/{self.word}/subdomains?relationships=resolutions&cursor=STMwCi4%3D&limit=40'
|
||||
headers = {'User-Agent': Core.get_user_agent()}
|
||||
res = requests.get(base_url, headers=headers)
|
||||
#res = requests.map(request)
|
||||
self.results = res.content.decode('UTF-8')
|
||||
self.totalresults += self.results
|
||||
|
||||
|
||||
Reference in New Issue
Block a user