mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-24 08:14:24 +03:00
minor update
This commit is contained in:
parent
2ad43411ba
commit
030c57a0c8
|
@ -1473,6 +1473,7 @@ def __setKnowledgeBaseAttributes(flushAll=True):
|
||||||
|
|
||||||
if flushAll:
|
if flushAll:
|
||||||
kb.keywords = set(getFileItems(paths.SQL_KEYWORDS))
|
kb.keywords = set(getFileItems(paths.SQL_KEYWORDS))
|
||||||
|
kb.scanOnlyGoogleGETs = None
|
||||||
kb.tamperFunctions = []
|
kb.tamperFunctions = []
|
||||||
kb.targetUrls = oset()
|
kb.targetUrls = oset()
|
||||||
kb.testedParams = set()
|
kb.testedParams = set()
|
||||||
|
|
|
@ -14,6 +14,7 @@ import socket
|
||||||
import urllib2
|
import urllib2
|
||||||
|
|
||||||
from lib.core.common import getUnicode
|
from lib.core.common import getUnicode
|
||||||
|
from lib.core.common import readInput
|
||||||
from lib.core.convert import htmlunescape
|
from lib.core.convert import htmlunescape
|
||||||
from lib.core.convert import urlencode
|
from lib.core.convert import urlencode
|
||||||
from lib.core.data import conf
|
from lib.core.data import conf
|
||||||
|
@ -63,7 +64,12 @@ class Google:
|
||||||
if re.search(r"(.*?)\?(.+)", match):
|
if re.search(r"(.*?)\?(.+)", match):
|
||||||
kb.targetUrls.add(( htmlunescape(htmlunescape(match)), None, None, None ))
|
kb.targetUrls.add(( htmlunescape(htmlunescape(match)), None, None, None ))
|
||||||
elif re.search(URI_INJECTABLE_REGEX, match, re.I):
|
elif re.search(URI_INJECTABLE_REGEX, match, re.I):
|
||||||
kb.targetUrls.add(( htmlunescape(htmlunescape("%s" % match)), None, None, None ))
|
if kb.scanOnlyGoogleGETs is None:
|
||||||
|
message = "do you want to scan only results containing GET parameters? [Y/n] "
|
||||||
|
test = readInput(message, default="Y")
|
||||||
|
kb.scanOnlyGoogleGETs = test.lower() != 'n'
|
||||||
|
if not kb.scanOnlyGoogleGETs:
|
||||||
|
kb.targetUrls.add(( htmlunescape(htmlunescape("%s" % match)), None, None, None ))
|
||||||
|
|
||||||
def getCookie(self):
|
def getCookie(self):
|
||||||
"""
|
"""
|
||||||
|
|
Loading…
Reference in New Issue
Block a user