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

Skip to content

Commit 0db8b8e

Browse files
committed
Minor renaming
1 parent 468eed8 commit 0db8b8e

2 files changed

Lines changed: 4 additions & 4 deletions

File tree

lib/core/settings.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.3.6.39"
21+
VERSION = "1.3.6.40"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
@@ -691,7 +691,7 @@
691691
MAX_BISECTION_LENGTH = 50 * 1024 * 1024
692692

693693
# Mark used for trimming unnecessary content in large connection reads
694-
LARGE_CHUNK_TRIM_MARKER = "__TRIMMED_CONTENT__"
694+
LARGE_READ_TRIM_MARKER = "__TRIMMED_CONTENT__"
695695

696696
# Generic SQL comment formation
697697
GENERIC_SQL_COMMENT = "-- [RANDSTR]"

lib/request/connect.py

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -96,7 +96,7 @@ class WebSocketException(Exception):
9696
from lib.core.settings import HTTP_ACCEPT_HEADER_VALUE
9797
from lib.core.settings import IPS_WAF_CHECK_PAYLOAD
9898
from lib.core.settings import IS_WIN
99-
from lib.core.settings import LARGE_CHUNK_TRIM_MARKER
99+
from lib.core.settings import LARGE_READ_TRIM_MARKER
100100
from lib.core.settings import MAX_CONNECTION_READ_SIZE
101101
from lib.core.settings import MAX_CONNECTIONS_REGEX
102102
from lib.core.settings import MAX_CONNECTION_TOTAL_SIZE
@@ -219,7 +219,7 @@ def _connReadProxy(conn):
219219
if len(part) == MAX_CONNECTION_READ_SIZE:
220220
warnMsg = "large response detected. This could take a while"
221221
singleTimeWarnMessage(warnMsg)
222-
part = re.sub(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start), "%s%s%s" % (kb.chars.stop, LARGE_CHUNK_TRIM_MARKER, kb.chars.start), part)
222+
part = re.sub(r"(?si)%s.+?%s" % (kb.chars.stop, kb.chars.start), "%s%s%s" % (kb.chars.stop, LARGE_READ_TRIM_MARKER, kb.chars.start), part)
223223
retVal += part
224224
else:
225225
retVal += part

0 commit comments

Comments
 (0)