Removing old reporting code

This commit is contained in:
Christian Martorella
2019-09-11 23:53:43 +02:00
parent 9e6ec99c82
commit d1633684ba
3 changed files with 6 additions and 19 deletions
+3 -3
View File
@@ -1,9 +1,9 @@
*.idea
*.pyc
*.sqlite
.html
.vscode
.xml
*.html
*.vscode
*.xml
api-keys.yaml
debug_results.txt
tests/myparser.py
+2 -13
View File
@@ -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 -3
View File
@@ -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