mirror of
https://github.com/rapid7/metasploit-framework
synced 2024-11-12 11:52:01 +01:00
Meterpreter version check, only supported at the moment on Windows targets withe win32 and win64 version of Meterpreter
git-svn-id: file:///home/svn/framework3/trunk@10250 4d416f70-5f16-0410-b530-b9f4589650da
This commit is contained in:
parent
d3ee74f3f9
commit
161dd40463
@ -309,12 +309,15 @@ def xenchk(session)
|
||||
end
|
||||
return vm
|
||||
end
|
||||
|
||||
print_status("Checking if target is a Virtual Machine .....")
|
||||
found = hypervchk(session)
|
||||
found = vmwarechk(session) if not found
|
||||
found = checkvrtlpc(session) if not found
|
||||
found = vboxchk(session) if not found
|
||||
found = xenchk(session) if not found
|
||||
print_status("It appears to be physical host.") if not found
|
||||
|
||||
if client.platform =~ /win32|win64/
|
||||
print_status("Checking if target is a Virtual Machine .....")
|
||||
found = hypervchk(session)
|
||||
found = vmwarechk(session) if not found
|
||||
found = checkvrtlpc(session) if not found
|
||||
found = vboxchk(session) if not found
|
||||
found = xenchk(session) if not found
|
||||
print_status("It appears to be physical host.") if not found
|
||||
else
|
||||
print_error("This version of Meterpreter is not supported with this Script!")
|
||||
raise Rex::Script::Completed
|
||||
end
|
||||
|
Loading…
Reference in New Issue
Block a user