mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 16:24:25 +03:00
Fix for an Issue #228
This commit is contained in:
parent
6e2041bc13
commit
76b793b199
|
@ -60,14 +60,14 @@ class Google:
|
||||||
for _ in self._matches:
|
for _ in self._matches:
|
||||||
_ = urldecode(_)
|
_ = urldecode(_)
|
||||||
if re.search(r"(.*?)\?(.+)", _):
|
if re.search(r"(.*?)\?(.+)", _):
|
||||||
kb.targetUrls.add((_, None, None, None))
|
kb.targetUrls.add((_, conf.method, conf.data, conf.cookie))
|
||||||
elif re.search(URI_INJECTABLE_REGEX, _, re.I):
|
elif re.search(URI_INJECTABLE_REGEX, _, re.I):
|
||||||
if kb.scanOnlyGoogleGETs is None:
|
if kb.scanOnlyGoogleGETs is None:
|
||||||
message = "do you want to scan only results containing GET parameters? [Y/n] "
|
message = "do you want to scan only results containing GET parameters? [Y/n] "
|
||||||
test = readInput(message, default="Y")
|
test = readInput(message, default="Y")
|
||||||
kb.scanOnlyGoogleGETs = test.lower() != 'n'
|
kb.scanOnlyGoogleGETs = test.lower() != 'n'
|
||||||
if not kb.scanOnlyGoogleGETs:
|
if not kb.scanOnlyGoogleGETs:
|
||||||
kb.targetUrls.add((_, None, None, None))
|
kb.targetUrls.add((_, conf.method, conf.data, conf.cookie))
|
||||||
|
|
||||||
def getCookie(self):
|
def getCookie(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user