diff --git a/theHarvester/lib/htmlExport.py b/theHarvester/lib/htmlExport.py index 7063015a..d2c1bda4 100644 --- a/theHarvester/lib/htmlExport.py +++ b/theHarvester/lib/htmlExport.py @@ -3,7 +3,7 @@ import re -class htmlExport(): +class HtmlExport: def __init__(self, users, hosts, vhosts, dnsres, dnsrev, file, domain, shodan, tldres): self.users = users @@ -19,68 +19,68 @@ def __init__(self, users, hosts, vhosts, dnsres, dnsrev, file, domain, shodan, t def styler(self): a = """ - """ + pre { + overflow: auto; + padding-left: 15px; + padding-right: 15px; + font-size: 11px; + line-height: 15px; + margin-top: 10px; + width: 93%; + display: block; + background-color: #eeeeee; + color: #000000; + max-height: 300px; + } + + """ self.style = a def writehtml(self): - page = markup.page() + page = markup.Page() page.html() self.styler() page.head(self.style) @@ -141,7 +141,6 @@ def writehtml(self): page.a('Port:' + res[2]) page.pre(res[1]) page.pre.close() - ban = res[1] reg_server = re.compile('Server:.*') temp = reg_server.findall(res[1]) if temp != []: @@ -162,7 +161,5 @@ def writehtml(self): file.write(x) except: print('Exception' + x) # Send to logs. - pass file.close() return 'ok' - \ No newline at end of file