Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (a1078d8b)

Open
#981 0 comments 0 reactions 0 assignees View on GitHub
Dominant language
Python
Stars
999
Forks
245
PR merge metrics
No merged PRs in 30d

Description

Zeus version:
`1.5.2.21b875`

Firefox version:
`(57, 0)`

Geckodriver version:
`geckodriver-v0.19.0-linux64.tar.gz`

Error info:
```Traceback (most recent call last):
File "zeus.py", line 288, in
tor=opt.useTor, batch=opt.runInBatch
File "/home/inbell1s/zeus-scanner/var/search/selenium_search.py", line 210, in parse_search_results
parse_blacklist(query, BLACKLIST_FILE_PATH, batch=batch)
File "/home/inbell1s/zeus-scanner/lib/core/settings.py", line 1053, in parse_blacklist
with open(full_path, "a+") as log:
IOError: [Errno 13] Permission denied: '/home/inbell1s/zeus-scanner/log/blacklist/.blacklist'
```

Running details:
`Linux-5.8.0-kali2-amd64-x86_64-with-debian-kali-rolling`

Commands used:
`zeus.py -r -W -E`

Log file info:
```2020-10-05 06:45:46,673;zeus-log;INFO;log file being saved to '/home/inbell1s/zeus-scanner/log/zeus-log-49.log'
2020-10-05 06:45:46,674;zeus-log;INFO;using default search engine
2020-10-05 06:45:46,675;zeus-log;INFO;using random dork 'inurl:”/axs/ax-admin.pl” -s?ri?t site:nl' as the search query
2020-10-05 06:45:46,675;zeus-log;ERROR;ran into exception '[Errno 13] Permission denied: '/home/inbell1s/zeus-scanner/log/blacklist/.blacklist'' and cannot continue, saved to current log file
Traceback (most recent call last):
File "zeus.py", line 288, in
tor=opt.useTor, batch=opt.runInBatch
File "/home/inbell1s/zeus-scanner/var/search/selenium_search.py", line 210, in parse_search_results
parse_blacklist(query, BLACKLIST_FILE_PATH, batch=batch)
File "/home/inbell1s/zeus-scanner/lib/core/settings.py", line 1053, in parse_blacklist
with open(full_path, "a+") as log:
IOError: [Errno 13] Permission denied: '/home/inbell1s/zeus-scanner/log/blacklist/.blacklist'

2020-10-05 06:45:49,334;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2020-10-05 06:45:49,334;zeus-log;INFO;getting authorization
2020-10-05 06:45:49,335;zeus-log;INFO;extracting traceback from log file
2020-10-05 06:45:49,335;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start with zeus.py and trace the reported call through var/search/selenium_search.py:210 into lib/core/settings.py:1053. Run `zeus.py -r -W -E` in the reported Linux environment and inspect the blacklist path and its permissions. Done means this permission failure is handled without the unhandled exception stopping the scan.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
cli, security
Issue type
Bug
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
35/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.