sqlmapproject / sqlmap

Automatic SQL injection and database takeover tool
http://sqlmap.org
Other
31.99k stars 5.68k forks source link

bug? #3060

Closed 687766616e closed 6 years ago

687766616e commented 6 years ago

[18:13:01] [INFO] retrieved: userlogin [18:13:01] [INFO] tried 736/2642 items (28%) [18:13:01] [ERROR] thread 8: 'NoneType' object has no attribute 'lower' Traceback (most recent call last): File "/data/data/com.termux/files/home/sql/lib/core/threads.py", line 89, in exceptionHandledFunction threadFunction() File "/data/data/com.termux/files/home/sql/lib/utils/brute.py", line 233, in columnExistsThread result = inject.checkBooleanExpression(safeStringFormat(BRUTE_COLUMN_EXISTS_TEMPLATE, (column, table))) File "/data/data/com.termux/files/home/sql/lib/request/inject.py", line 506, in checkBooleanExpression return getValue(expression, expected=EXPECTED.BOOL, charsetType=CHARSETTYPE.BINARY, suppressOutput=True, expectingNone=expectingNone) File "/data/data/com.termux/files/home/sql/lib/core/decorators.py", line 34, in result = f(*args, *kwargs) File "/data/data/com.termux/files/home/sql/lib/request/inject.py", line 432, in getValue value = _goBooleanProxy(booleanExpression) File "/data/data/com.termux/files/home/sql/lib/request/inject.py", line 317, in goBooleanProxy output = Request.queryPage(payload, timeBasedCompare=timeBasedCompare, raise404=False) File "/data/data/com.termux/files/home/sql/lib/core/decorators.py", line 34, in result = f(args, **kwargs) File "/data/data/com.termux/files/home/sql/lib/request/connect.py", line 1234, in queryPage page, headers, code = Connect.getPage(url=uri, get=get, post=post, method=method, cookie=cookie, ua=ua, referer=referer, host=host, silent=silent, auxHeaders=auxHeaders, response=response, raise404=raise404, ignoreTimeout=timeBasedCompare) File "/data/data/com.termux/files/home/sql/lib/request/connect.py", line 498, in getPage page = decodePage(page, responseHeaders.get(HTTP_HEADER.CONTENT_ENCODING), responseHeaders.get(HTTP_HEADER.CONTENT_TYPE)) File "/data/data/com.termux/files/home/sql/lib/request/basic.py", line 337, in decodePage if kb.pageEncoding and kb.pageEncoding.lower() == "utf-8-sig": AttributeError: 'NoneType' object has no attribute 'lower' [18:13:01] [INFO] retrieved: userpw

從我的 MI6,使用 FastHub 發送。

stamparm commented 6 years ago

I made a patch for this, although I don't see a theoretical way how this could be provoked. Anyway, it shouldn't not happen again with the latest revision