works for meterpreter, too (tested with java)

git-svn-id: file:///home/svn/framework3/trunk@13175 4d416f70-5f16-0410-b530-b9f4589650da
unstable
James Lee 2011-07-14 20:29:19 +00:00
parent 39c20b2935
commit 6c8bde17b0
1 changed files with 3 additions and 2 deletions

View File

@ -35,7 +35,7 @@ class Metasploit3 < Msf::Post
], ],
'Version' => '$Revision$', 'Version' => '$Revision$',
'Platform' => [ 'linux' ], 'Platform' => [ 'linux' ],
'SessionTypes' => [ "shell" ] 'SessionTypes' => [ "shell", "meterpreter" ]
)) ))
register_options( register_options(
@ -56,7 +56,8 @@ class Metasploit3 < Msf::Post
cron_data += execute("crontab -u #{user} -l") + "\n\n" cron_data += execute("crontab -u #{user} -l") + "\n\n"
end end
else else
user = execute("/usr/bin/whomai") user = execute("/usr/bin/whoami")
user.strip! if user
print_status("Enumerating as #{user}") print_status("Enumerating as #{user}")
cron_data = "***** Listing cron jobs for #{user} *****\n\n" cron_data = "***** Listing cron jobs for #{user} *****\n\n"
cron_data += execute("crontab -l") cron_data += execute("crontab -l")