Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Updating Error Handling #49

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Binary file added .vs/slnx.sqlite
Binary file not shown.
12 changes: 12 additions & 0 deletions .whitesource
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
{
"scanSettings": {
"baseBranches": []
},
"checkRunSettings": {
"vulnerableCheckRunConclusionLevel": "failure",
"displayMode": "diff"
},
"issueSettings": {
"minSeverityLevel": "LOW"
}
}
1 change: 1 addition & 0 deletions DTDC.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
<?xml version="1.0" encoding="UTF-8"?><EmailHarvester><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email><email>[email protected]</email></EmailHarvester>
7 changes: 5 additions & 2 deletions EmailHarvester.py
Original file line number Diff line number Diff line change
Expand Up @@ -138,7 +138,7 @@ def do_search(self):

except Exception as e:
print(e)
sys.exit(4)
#sys.exit(4)

if r.encoding is None:
r.encoding = 'UTF-8'
Expand Down Expand Up @@ -276,7 +276,10 @@ def checkDomain(value):
print(green("[+] Searching everywhere"))
for search_engine in plugins:
if search_engine not in excluded:
all_emails += plugins[search_engine]['search'](domain, limit)
try:
all_emails += plugins[search_engine]['search'](domain, limit)
except Exception as ex:
print("Error")
elif engine not in plugins:
print(red("[-] Search engine plugin not found"))
sys.exit(3)
Expand Down