mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2025-01-23 15:54:24 +03:00
Minor patch
This commit is contained in:
parent
220dffbcfa
commit
91bffe988b
|
@ -1488,8 +1488,8 @@ def _setHTTPUserAgent():
|
||||||
|
|
||||||
userAgent = random.sample(kb.userAgents or [_defaultHTTPUserAgent()], 1)[0]
|
userAgent = random.sample(kb.userAgents or [_defaultHTTPUserAgent()], 1)[0]
|
||||||
|
|
||||||
infoMsg = "fetched random HTTP User-Agent header from "
|
infoMsg = "fetched random HTTP User-Agent header value '%s' from " % userAgent
|
||||||
infoMsg += "file '%s': '%s'" % (paths.USER_AGENTS, userAgent)
|
infoMsg += "file '%s'" % paths.USER_AGENTS
|
||||||
logger.info(infoMsg)
|
logger.info(infoMsg)
|
||||||
|
|
||||||
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
|
conf.httpHeaders.append((HTTP_HEADER.USER_AGENT, userAgent))
|
||||||
|
@ -1661,6 +1661,9 @@ def _cleanupOptions():
|
||||||
if conf.delay:
|
if conf.delay:
|
||||||
conf.delay = float(conf.delay)
|
conf.delay = float(conf.delay)
|
||||||
|
|
||||||
|
if conf.url:
|
||||||
|
conf.url = conf.url.strip()
|
||||||
|
|
||||||
if conf.rFile:
|
if conf.rFile:
|
||||||
conf.rFile = ntToPosixSlashes(normalizePath(conf.rFile))
|
conf.rFile = ntToPosixSlashes(normalizePath(conf.rFile))
|
||||||
|
|
||||||
|
|
|
@ -19,7 +19,7 @@ from lib.core.enums import DBMS_DIRECTORY_NAME
|
||||||
from lib.core.enums import OS
|
from lib.core.enums import OS
|
||||||
|
|
||||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||||
VERSION = "1.1.12.2"
|
VERSION = "1.1.12.3"
|
||||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||||
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
|
||||||
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)
|
||||||
|
|
|
@ -40,13 +40,13 @@ d3ed5f9baa074df33390d33164d9d8b5 lib/core/defaults.py
|
||||||
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
|
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
|
||||||
f872699e948d0692ce11b54781da814c lib/core/log.py
|
f872699e948d0692ce11b54781da814c lib/core/log.py
|
||||||
5adb07b2771f26822e94c75c2cb9db0b lib/core/optiondict.py
|
5adb07b2771f26822e94c75c2cb9db0b lib/core/optiondict.py
|
||||||
e1c000db9be27f973569b1a430629037 lib/core/option.py
|
3775628ac4ee0e4e2d0247cd93de05aa lib/core/option.py
|
||||||
8764d2d8610fff5f4aef897b2b1f1006 lib/core/profiling.py
|
8764d2d8610fff5f4aef897b2b1f1006 lib/core/profiling.py
|
||||||
2de91262fcc6bd51c987fd2f8a59ff31 lib/core/readlineng.py
|
2de91262fcc6bd51c987fd2f8a59ff31 lib/core/readlineng.py
|
||||||
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
|
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
|
||||||
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
|
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
|
||||||
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
|
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
|
||||||
faf4f1fadbe9ab2c911e8e8b9e382c11 lib/core/settings.py
|
224b57f959c54810598ac661872aa3cf lib/core/settings.py
|
||||||
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
|
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
|
||||||
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
|
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
|
||||||
d93501771b41315f9fb949305b6ed257 lib/core/target.py
|
d93501771b41315f9fb949305b6ed257 lib/core/target.py
|
||||||
|
|
Loading…
Reference in New Issue
Block a user