mirror of
https://github.com/laramies/theHarvester.git
synced 2024-11-11 18:03:10 +08:00
Cleaned up directory checking and made screenshot in report section more aesthetic.
This commit is contained in:
parent
6b618d8869
commit
2f5213db38
2 changed files with 4 additions and 2 deletions
|
@ -293,8 +293,8 @@ async def generatescreenshots(tups: List):
|
||||||
data:tabledata, //assign data to table
|
data:tabledata, //assign data to table
|
||||||
layout:"fitColumns", //fit columns to width of table (optional)
|
layout:"fitColumns", //fit columns to width of table (optional)
|
||||||
columns:[ //Define Table Columns
|
columns:[ //Define Table Columns
|
||||||
{title:"Date", field:"date", width:150},
|
{title:"Date", field:"date", width:200},
|
||||||
{title:"Domain", field:"domain", hozAlign:"left", headerFilter:"select" },
|
{title:"Domain", field:"domain", hozAlign:"left", headerFilter:"select", width:300 },
|
||||||
{title:"Screenshot", field:"icon", align:"center", formatter:"image"},
|
{title:"Screenshot", field:"icon", align:"center", formatter:"image"},
|
||||||
]
|
]
|
||||||
},
|
},
|
||||||
|
|
|
@ -25,6 +25,8 @@ def verify_path(self):
|
||||||
if answer.lower() == 'yes' or answer.lower() == 'y':
|
if answer.lower() == 'yes' or answer.lower() == 'y':
|
||||||
os.mkdir(self.output)
|
os.mkdir(self.output)
|
||||||
return True
|
return True
|
||||||
|
else:
|
||||||
|
return False
|
||||||
return True
|
return True
|
||||||
except Exception as e:
|
except Exception as e:
|
||||||
print(f"An exception has occurred while attempting to verify output path's existence: {e}")
|
print(f"An exception has occurred while attempting to verify output path's existence: {e}")
|
||||||
|
|
Loading…
Reference in a new issue