File tree Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Expand file tree Collapse file tree 3 files changed +8
-5
lines changed Original file line number Diff line number Diff line change @@ -1488,8 +1488,8 @@ def _setHTTPUserAgent():
1488
1488
1489
1489
userAgent = random .sample (kb .userAgents or [_defaultHTTPUserAgent ()], 1 )[0 ]
1490
1490
1491
- infoMsg = "fetched random HTTP User-Agent header from "
1492
- infoMsg += "file '%s': '%s' " % ( paths .USER_AGENTS , userAgent )
1491
+ infoMsg = "fetched random HTTP User-Agent header value '%s' from " % userAgent
1492
+ infoMsg += "file '%s'" % paths .USER_AGENTS
1493
1493
logger .info (infoMsg )
1494
1494
1495
1495
conf .httpHeaders .append ((HTTP_HEADER .USER_AGENT , userAgent ))
@@ -1661,6 +1661,9 @@ def _cleanupOptions():
1661
1661
if conf .delay :
1662
1662
conf .delay = float (conf .delay )
1663
1663
1664
+ if conf .url :
1665
+ conf .url = conf .url .strip ()
1666
+
1664
1667
if conf .rFile :
1665
1668
conf .rFile = ntToPosixSlashes (normalizePath (conf .rFile ))
1666
1669
Original file line number Diff line number Diff line change 19
19
from lib .core .enums import OS
20
20
21
21
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22
- VERSION = "1.1.12.2 "
22
+ VERSION = "1.1.12.3 "
23
23
TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
24
24
TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
25
25
VERSION_STRING = "sqlmap/%s#%s" % ('.' .join (VERSION .split ('.' )[:- 1 ]) if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] == '0' else VERSION , TYPE )
Original file line number Diff line number Diff line change @@ -40,13 +40,13 @@ d3ed5f9baa074df33390d33164d9d8b5 lib/core/defaults.py
40
40
5fb9aaf874daa47ea2b672a22740e56b lib/core/__init__.py
41
41
f872699e948d0692ce11b54781da814c lib/core/log.py
42
42
5adb07b2771f26822e94c75c2cb9db0b lib/core/optiondict.py
43
- e1c000db9be27f973569b1a430629037 lib/core/option.py
43
+ 3775628ac4ee0e4e2d0247cd93de05aa lib/core/option.py
44
44
8764d2d8610fff5f4aef897b2b1f1006 lib/core/profiling.py
45
45
2de91262fcc6bd51c987fd2f8a59ff31 lib/core/readlineng.py
46
46
760d9df2a27ded29109b390ab202e72d lib/core/replication.py
47
47
a2466b62e67f8b31736bac4dac590e51 lib/core/revision.py
48
48
02d4762140a72fd44668d3dab5eabda9 lib/core/session.py
49
- faf4f1fadbe9ab2c911e8e8b9e382c11 lib/core/settings.py
49
+ 224b57f959c54810598ac661872aa3cf lib/core/settings.py
50
50
35bffbad762eb9e03db9e93b1c991103 lib/core/shell.py
51
51
a59ec28371ae067a6fdd8f810edbee3d lib/core/subprocessng.py
52
52
d93501771b41315f9fb949305b6ed257 lib/core/target.py
You can’t perform that action at this time.
0 commit comments