Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 67b4702

Browse files
committed
Minor cleanup of NULL connection
1 parent d148694 commit 67b4702

3 files changed

Lines changed: 7 additions & 8 deletions

File tree

lib/controller/checks.py

Lines changed: 3 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1454,19 +1454,18 @@ def checkNullConnection():
14541454
if not page and HTTP_HEADER.CONTENT_LENGTH in (headers or {}):
14551455
kb.nullConnection = NULLCONNECTION.HEAD
14561456

1457-
infoMsg = "NULL connection is supported with HEAD method (Content-Length)"
1457+
infoMsg = "NULL connection is supported with HEAD method ('Content-Length')"
14581458
logger.info(infoMsg)
14591459
else:
14601460
page, headers, _ = Request.getPage(auxHeaders={HTTP_HEADER.RANGE: "bytes=-1"})
14611461

14621462
if page and len(page) == 1 and HTTP_HEADER.CONTENT_RANGE in (headers or {}):
14631463
kb.nullConnection = NULLCONNECTION.RANGE
14641464

1465-
infoMsg = "NULL connection is supported with GET method (Range)"
1466-
infoMsg += "'%s'" % kb.nullConnection
1465+
infoMsg = "NULL connection is supported with GET method ('Range')"
14671466
logger.info(infoMsg)
14681467
else:
1469-
_, headers, _ = Request.getPage(skipRead = True)
1468+
_, headers, _ = Request.getPage(skipRead=True)
14701469

14711470
if HTTP_HEADER.CONTENT_LENGTH in (headers or {}):
14721471
kb.nullConnection = NULLCONNECTION.SKIP_READ

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@
1919
from lib.core.enums import OS
2020

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.1.11.9"
22+
VERSION = "1.1.11.10"
2323
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2424
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2525
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -639,7 +639,7 @@
639639
CHECK_ZERO_COLUMNS_THRESHOLD = 10
640640

641641
# Boldify all logger messages containing these "patterns"
642-
BOLD_PATTERNS = ("' injectable", "provided empty", "leftover chars", "might be injectable", "' is vulnerable", "is not injectable", "does not seem to be", "test failed", "test passed", "live test final result", "test shows that", "the back-end DBMS is", "created Github", "blocked by the target server", "protection is involved", "CAPTCHA", "specific response")
642+
BOLD_PATTERNS = ("' injectable", "provided empty", "leftover chars", "might be injectable", "' is vulnerable", "is not injectable", "does not seem to be", "test failed", "test passed", "live test final result", "test shows that", "the back-end DBMS is", "created Github", "blocked by the target server", "protection is involved", "CAPTCHA", "specific response", "NULL connection is supported")
643643

644644
# Generic www root directory names
645645
GENERIC_DOC_ROOT_DIRECTORY_NAMES = ("htdocs", "httpdocs", "public", "wwwroot", "www")

txt/checksum.md5

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,7 +21,7 @@ f96467fc5cd1d87f52dd7966c8ae6e79 extra/shutils/regressiontest.py
2121
5fb9aaf874daa47ea2b672a22740e56b extra/sqlharvest/__init__.py
2222
1fc7772edce5a01c31f3932b2fc4c1c6 extra/sqlharvest/sqlharvest.py
2323
21bf2b3a7a22b8cd5d96a6457a1b4997 lib/controller/action.py
24-
47ea1e8ca54bad024814e4f539738c86 lib/controller/checks.py
24+
7683a078a1766a3ef60fc44701d76ad1 lib/controller/checks.py
2525
91c9ef44927b270ea53b6739ff5b2e76 lib/controller/controller.py
2626
d2cdb9e832e18a81e936ca3348144b16 lib/controller/handler.py
2727
5fb9aaf874daa47ea2b672a22740e56b lib/controller/__init__.py
@@ -46,7 +46,7 @@ ec6a778b0e74749b916caead78ba88b7 lib/core/option.py
4646
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
4747
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
4848
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49-
4092cefeab1270e5f9a987582eb1c099 lib/core/settings.py
49+
206bb2bd089f2cfa017386b85a1e6926 lib/core/settings.py
5050
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
5151
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
5252
7c9f2af3c0a8dd89223cfe07b0a0b826 lib/core/target.py

0 commit comments

Comments
 (0)