mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-11-20 07:00:25 +00:00
Adding check for --priv-esc without corresponding takeover switch
This commit is contained in:
parent
937f2b11b1
commit
6206e15d13
2 changed files with 5 additions and 1 deletions
|
|
@ -3058,6 +3058,10 @@ def _basicOptionValidation():
|
|||
errMsg = "option '--crawl-exclude' requires usage of switch '--crawl'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.privEsc and not any((conf.osPwn, conf.osSmb, conf.osBof)):
|
||||
errMsg = "switch '--priv-esc' requires usage of switch '--os-pwn', '--os-smbrelay' or '--os-bof'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
||||
if conf.safePost and not conf.safeUrl:
|
||||
errMsg = "option '--safe-post' requires usage of option '--safe-url'"
|
||||
raise SqlmapSyntaxException(errMsg)
|
||||
|
|
|
|||
|
|
@ -19,7 +19,7 @@ from lib.core.enums import OS
|
|||
from thirdparty import six
|
||||
|
||||
# sqlmap version (<major>.<minor>.<month>.<monthly commit>)
|
||||
VERSION = "1.10.11.74"
|
||||
VERSION = "1.10.11.75"
|
||||
TYPE = "dev" if VERSION.count('.') > 2 and VERSION.split('.')[-1] != '0' else "stable"
|
||||
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)
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue