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-b9f4589650da
unstable
Carlos Perez 2010-09-24 00:08:05 +00:00
parent ae48757fd5
commit b3d5e4ddf7
1 changed files with 4 additions and 0 deletions

View File

@ -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