mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-07-29 20:46:36 +00:00
Minor refactoring
This commit is contained in:
parent
62fc2e1e17
commit
a16663f9a1
4 changed files with 7 additions and 9 deletions
|
|
@ -368,9 +368,8 @@ def start():
|
|||
conf.data = urldecode(conf.data) if conf.data and urlencode(DEFAULT_GET_POST_DELIMITER, None) not in conf.data else conf.data
|
||||
|
||||
else:
|
||||
if targetUrl.find("?") > -1:
|
||||
firstPart = targetUrl[:targetUrl.find("?")]
|
||||
secondPart = targetUrl[targetUrl.find("?") + 1:]
|
||||
if '?' in targetUrl:
|
||||
firstPart, secondPart = targetUrl.split('?', 1)
|
||||
message = "Edit GET data [default: %s]: " % secondPart
|
||||
test = readInput(message, default=secondPart)
|
||||
test = _randomFillBlankFields(test)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue