Ekultek / Ekultek/Zeus-Scanner

Unhandled exception (dc652125)

Open
#807 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:
`(56, 0)`

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

Error info:
```Traceback (most recent call last):
File "/root/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/root/zeus-scanner/var/search/selenium_search.py", line 72, in get_urls
query = query.decode('unicode_escape').encode('utf-8')
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 17: \ at end of string
```

Running details:
`Linux-5.2.0-kali3-amd64-x86_64-with-Kali-kali-rolling-kali-rolling`

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

Log file info:
```2019-10-20 06:10:30,182;zeus-log;INFO;log file being saved to '/root/zeus-scanner/log/zeus-log-1590.log'
2019-10-20 06:10:30,183;zeus-log;INFO;using default search engine
2019-10-20 06:10:30,183;zeus-log;INFO;using random dork 'inurl:default.asp\' as the search query
2019-10-20 06:10:30,183;zeus-log;INFO;attempting to gather query URL
2019-10-20 06:10:30,184;zeus-log;ERROR;selenium_search.pyc failed to gather the URL from search engine, caught exception ''unicodeescape' codec can't decode byte 0x5c in position 17: \ at end of string' exception has been logged to current log file
Traceback (most recent call last):
File "/root/zeus-scanner/var/search/selenium_search.py", line 268, in parse_search_results
tor=tor, batch=batch, xforward=forward_for
File "/root/zeus-scanner/var/search/selenium_search.py", line 72, in get_urls
query = query.decode('unicode_escape').encode('utf-8')
UnicodeDecodeError: 'unicodeescape' codec can't decode byte 0x5c in position 17: \ at end of string

2019-10-20 06:10:44,281;zeus-log;INFO;Zeus got an unexpected error and will automatically create an issue for this error, please wait
2019-10-20 06:10:44,281;zeus-log;INFO;getting authorization
2019-10-20 06:10:44,293;zeus-log;INFO;extracting traceback from log file
2019-10-20 06:10:44,294;zeus-log;INFO;attempting to get firefox browser version
```

Contributor guide

Open the contributing guide

Research direction

Start in var/search/selenium_search.py at get_urls line 72 and inspect how the random dork from the log is decoded. Reproduce with `zeus.py -r -W -E` and the shown query, then check parse_search_results around line 268. Done means this input no longer produces the reported UnicodeDecodeError or an unhandled search failure.

Written by the indexing model from the issue text.

Assessment

Tech stack
python
Domain
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.