sqlmap/lib/utils
Tomas Zellerin a6c26fe792 Python 3 binary-character fixes for two urllib requests (#4077)
* Fix python3 binary - character mismatch in api.py

Convert between text and binary data in api.py call to urllib.request
and response from it.

In python3 sqlmapapi -c it fixes, at least
- not nice output from log/list commands
- any command that POSTs data (including new) crashing sqlmapapi

* Fix python3 binary - character mismatch in search.py

Before:
python3 sqlmap.py -g <long random string>
(...)
[18:35:17] [INFO] using search result page #1
no usable links found. What do you want to do?
[1] (re)try with DuckDuckGo (default)
[2] (re)try with Bing
[3] quit
> 1
[18:35:21] [CRITICAL] unable to connect

After:
python3 sqlmap.py -g asfafw2fwesvzsdvaw
(...)
[18:37:30] [INFO] using search result page #1
no usable links found. What do you want to do?
[1] (re)try with DuckDuckGo (default)
[2] (re)try with Bing
[3] quit
> 1
[18:37:34] [INFO] found 26 results for your search dork expression, 16 of them are testable targets
[18:37:34] [INFO] found a total of 16 targets
URL 1:
GET https:...
do you want to test this URL? [Y/n/q]
2020-01-15 22:36:49 +01:00
..
__init__.py Copyright year bump 2020-01-01 13:25:15 +01:00
api.py Python 3 binary-character fixes for two urllib requests (#4077) 2020-01-15 22:36:49 +01:00
brute.py Copyright year bump 2020-01-01 13:25:15 +01:00
crawler.py Copyright year bump 2020-01-01 13:25:15 +01:00
deps.py Copyright year bump 2020-01-01 13:25:15 +01:00
getch.py Copyright year bump 2020-01-01 13:25:15 +01:00
har.py Copyright year bump 2020-01-01 13:25:15 +01:00
hash.py Removing some dead code (vulture) 2020-01-10 11:44:24 +01:00
hashdb.py Copyright year bump 2020-01-01 13:25:15 +01:00
httpd.py Copyright year bump 2020-01-01 13:25:15 +01:00
pivotdumptable.py Copyright year bump 2020-01-01 13:25:15 +01:00
progress.py Removing obsolete code 2020-01-05 22:43:25 +01:00
purge.py Copyright year bump 2020-01-01 13:25:15 +01:00
safe2bin.py Copyright year bump 2020-01-01 13:25:15 +01:00
search.py Python 3 binary-character fixes for two urllib requests (#4077) 2020-01-15 22:36:49 +01:00
sgmllib.py Minor style updates 2019-05-09 15:47:23 +02:00
sqlalchemy.py Copyright year bump 2020-01-01 13:25:15 +01:00
timeout.py Copyright year bump 2020-01-01 13:25:15 +01:00
versioncheck.py Copyright year bump 2020-01-01 13:25:15 +01:00
xrange.py Copyright year bump 2020-01-01 13:25:15 +01:00