is_admin? Meterpreter Mixin call for win32 and win64 versions of Meterpreter
git-svn-id: file:///home/svn/framework3/trunk@10452 4d416f70-5f16-0410-b530-b9f4589650daunstable
parent
ae48757fd5
commit
b3d5e4ddf7
|
@ -78,6 +78,10 @@ def eventlog_clear(evt = "")
|
|||
return evntlog
|
||||
end
|
||||
|
||||
#Returns true if user is admin and false if not.
|
||||
def is_admin?
|
||||
return client.railgun.shell32.IsUserAnAdmin()["return"]
|
||||
end
|
||||
|
||||
end
|
||||
end
|
||||
|
|
Loading…
Reference in New Issue