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

Skip to content

Commit 08d3228

Browse files
committed
Minor improvement of --forms (jquery)
1 parent 5cc36b4 commit 08d3228

2 files changed

Lines changed: 11 additions & 1 deletion

File tree

lib/core/common.py

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -4471,6 +4471,16 @@ def geturl(self):
44714471
else:
44724472
logger.debug(errMsg)
44734473

4474+
for match in re.finditer(r"\.post\(['\"]([^'\"]*)['\"],\s*\{([^}]*)\}", content):
4475+
url = _urllib.parse.urljoin(url, htmlUnescape(match.group(1)))
4476+
data = ""
4477+
4478+
for name, value in re.findall(r"['\"]?(\w+)['\"]?\s*:\s*(['\"][^'\"]+)?", match.group(2)):
4479+
data += "%s=%s%s" % (name, value, DEFAULT_GET_POST_DELIMITER)
4480+
4481+
data = data.rstrip(DEFAULT_GET_POST_DELIMITER)
4482+
retVal.add((url, HTTPMETHOD.POST, data, conf.cookie, None))
4483+
44744484
if addToTargets and retVal:
44754485
for target in retVal:
44764486
kb.targets.add(target)

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
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.10.1"
21+
VERSION = "1.3.10.2"
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)

0 commit comments

Comments
 (0)