Thanks to visit codestin.com
Credit goes to github.com

Skip to content

Commit 7ab82de

Browse files
committed
Minor update (usage of cookie in --eval)
1 parent 93399ab commit 7ab82de

2 files changed

Lines changed: 3 additions & 2 deletions

File tree

lib/core/settings.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@
1818
from thirdparty.six import unichr as _unichr
1919

2020
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
21-
VERSION = "1.4.5.6"
21+
VERSION = "1.4.5.7"
2222
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
2323
TYPE_COLORS = {"dev": 33, "stable": 90, "pip": 34}
2424
VERSION_STRING = "sqlmap/%s#%s" % ('.'.join(VERSION.split('.')[:-1]) if VERSION.count('.') > 2 and VERSION.split('.')[-1] == '0' else VERSION, TYPE)

lib/request/connect.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1150,7 +1150,7 @@ def _randomizeParameter(paramString, randomParameter):
11501150

11511151
if conf.evalCode:
11521152
delimiter = conf.paramDel or DEFAULT_GET_POST_DELIMITER
1153-
variables = {"uri": uri, "lastPage": threadData.lastPage, "_locals": locals()}
1153+
variables = {"uri": uri, "lastPage": threadData.lastPage, "_locals": locals(), "cookie": cookie}
11541154
originals = {}
11551155

11561156
if not get and PLACE.URI in conf.parameters:
@@ -1218,6 +1218,7 @@ def _randomizeParameter(paramString, randomParameter):
12181218
variables[unsafeVariableNaming(variable)] = value
12191219

12201220
uri = variables["uri"]
1221+
cookie = variables["cookie"]
12211222

12221223
for name, value in variables.items():
12231224
if name != "__builtins__" and originals.get(name, "") != value:

0 commit comments

Comments
 (0)