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

Skip to content

Commit 071f4c8

Browse files
committed
Bug fix (reported privately) - better parsing of file paths (especially for Windows cases)
1 parent 5097a2c commit 071f4c8

1 file changed

Lines changed: 3 additions & 3 deletions

File tree

lib/core/settings.py

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

2121
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22-
VERSION = "1.0.7.22"
22+
VERSION = "1.0.7.23"
2323
REVISION = getRevisionNumber()
2424
STABLE = VERSION.count('.') <= 2
2525
VERSION_STRING = "sqlmap/%s#%s" % (VERSION, "stable" if STABLE else "dev")
@@ -291,7 +291,7 @@
291291
CURRENT_DB = "CD"
292292

293293
# Regular expressions used for finding file paths in error messages
294-
FILE_PATH_REGEXES = (r" in (file )?<b>(?P<result>.*?)</b> on line", r"(?:[>(\[\s])(?P<result>[A-Za-z]:[\\/][\w.\\/-]*)", r"(?:[>(\[\s])(?P<result>/\w[/\w.-]+)", r"href=['\"]file://(?P<result>/[^'\"]+)")
294+
FILE_PATH_REGEXES = (r" in (file )?<b>(?P<result>.*?)</b> on line \d+", r"in (?P<result>[^<>]+?) on line \d+", r"(?:[>(\[\s])(?P<result>[A-Za-z]:[\\/][\w. \\/-]*)", r"(?:[>(\[\s])(?P<result>/\w[/\w.-]+)", r"href=['\"]file://(?P<result>/[^'\"]+)")
295295

296296
# Regular expressions used for parsing error messages (--parse-errors)
297297
ERROR_PARSING_REGEXES = (
@@ -543,7 +543,7 @@
543543
HASHDB_END_TRANSACTION_RETRIES = 3
544544

545545
# Unique milestone value used for forced deprecation of old HashDB values (e.g. when changing hash/pickle mechanism)
546-
HASHDB_MILESTONE_VALUE = "pGBhWXgbtJ" # import random, string; print "".join(random.sample(string.ascii_letters, 10))
546+
HASHDB_MILESTONE_VALUE = "baFJusZrel" # python -c 'import random, string; print "".join(random.sample(string.ascii_letters, 10))'
547547

548548
# Warn user of possible delay due to large page dump in full UNION query injections
549549
LARGE_OUTPUT_THRESHOLD = 1024 ** 2

0 commit comments

Comments
 (0)