File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1919from lib .core .enums import OS
2020
2121# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
22- VERSION = "1.1.9.1 "
22+ VERSION = "1.1.9.2 "
2323TYPE = "dev" if VERSION .count ('.' ) > 2 and VERSION .split ('.' )[- 1 ] != '0' else "stable"
2424TYPE_COLORS = {"dev" : 33 , "stable" : 90 , "pip" : 34 }
2525VERSION_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 @@ -469,6 +469,10 @@ def option_set(taskid):
469469 logger .warning ("[%s] Invalid task ID provided to option_set()" % taskid )
470470 return jsonize ({"success" : False , "message" : "Invalid task ID" })
471471
472+ if request .json is None :
473+ logger .warning ("[%s] Invalid JSON options provided to option_set()" % taskid )
474+ return jsonize ({"success" : False , "message" : "Invalid JSON options" })
475+
472476 for option , value in request .json .items ():
473477 DataStore .tasks [taskid ].set_option (option , value )
474478
@@ -486,6 +490,10 @@ def scan_start(taskid):
486490 logger .warning ("[%s] Invalid task ID provided to scan_start()" % taskid )
487491 return jsonize ({"success" : False , "message" : "Invalid task ID" })
488492
493+ if request .json is None :
494+ logger .warning ("[%s] Invalid JSON options provided to scan_start()" % taskid )
495+ return jsonize ({"success" : False , "message" : "Invalid JSON options" })
496+
489497 # Initialize sqlmap engine's options with user's provided options, if any
490498 for option , value in request .json .items ():
491499 DataStore .tasks [taskid ].set_option (option , value )
Original file line number Diff line number Diff line change @@ -46,7 +46,7 @@ c5f09788ee8ff9c9d12a052986875bc6 lib/core/option.py
4646d8e9250f3775119df07e9070eddccd16 lib/core/replication.py
4747785f86e3f963fa3798f84286a4e83ff2 lib/core/revision.py
484840c80b28b3a5819b737a5a17d4565ae9 lib/core/session.py
49- 5b2ab1550ddae49f5f4473db28b48a1c lib/core/settings.py
49+ 5c4f3ca6d7e34e0c004c45cef1019e4a lib/core/settings.py
5050d91291997d2bd2f6028aaf371bf1d3b6 lib/core/shell.py
51512ad85c130cc5f2b3701ea85c2f6bbf20 lib/core/subprocessng.py
52524a6ecdd8a6e44bb4737bd9bc7f9b5743 lib/core/target.py
@@ -98,7 +98,7 @@ d3da4c7ceaf57c4687a052d58722f6bb lib/techniques/dns/use.py
9898310efc965c862cfbd7b0da5150a5ad36 lib/techniques/union/__init__.py
9999d71e48e6fd08f75cc612bf8b260994ce lib/techniques/union/test.py
100100db3090ff9a740ba096ba676fcf44ebfc lib/techniques/union/use.py
101- 720e899d5097d701d258bdc30eb8aa51 lib/utils/api.py
101+ 431a0bb6b25cdabd881ca182f3a2dc9d lib/utils/api.py
1021027d10ba0851da8ee9cd3c140dcd18798e lib/utils/brute.py
103103c08d2487a53a1db8170178ebcf87c864 lib/utils/crawler.py
104104ba12c69a90061aa14d848b8396e79191 lib/utils/deps.py
You can’t perform that action at this time.
0 commit comments