mirror of
https://github.com/sqlmapproject/sqlmap.git
synced 2026-06-15 14:22:59 +00:00
Minor code refactoring
This commit is contained in:
parent
f6bffb61d3
commit
a21a7fc56d
5 changed files with 42 additions and 33 deletions
|
|
@ -323,7 +323,7 @@ def __setMetasploit():
|
|||
if conf.osSmb:
|
||||
isAdmin = False
|
||||
|
||||
if "linux" in PLATFORM or "darwin" in PLATFORM:
|
||||
if PLATFORM in ( "posix", "mac" ):
|
||||
isAdmin = os.geteuid()
|
||||
|
||||
if isinstance(isAdmin, (int, float, long)) and isAdmin == 0:
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue