June 2019
Beginner to intermediate
660 pages
14h 30m
English
Let's work out a simple example Meterpreter script, which will check whether we are an admin user, and then find the explorer process and migrate into it automatically.
Before looking into the code, let's see all of the essential methods we will be using:
|
Functions |
Library file |
Usage |
|
is_admin |
/lib/msf/core/post/windows/priv.rb |
Checks if the session has admin privileges or not. |
|
is_in_admin_group |
/lib/msf/core/post/windows/priv.rb |
Checks if a user belongs to an administrator group. |
|
session.sys.process.get_processes() |
/lib/rex/post/meterpreter/extensions/stdapi/sys/process.rb |
Lists all the running processes on the target. |
|
session.core.migrate() |
/lib/rex/post/meterpreter/client_core.rb ... |
Read now
Unlock full access