Meterpreter Tricks

Always migrate to common apps for persistence shell.

https://jlajara.gitlab.io/process-migration

Migrate meterpreter to another process

execute new notepad

meterpreter> execute -H -f notepad

# Output: Process 1234 created.

migrate connection to notepad

meterpreter> migrate 1234

# Output: Migration completed successfully

or you can search some reliable program to migrate to.

meterpreter> ps -S spoolsv
# OR
meterpreter> ps -S explorer

run migration with this format migrate <Target PID>

Manage multi session

example

make sure you listen in msfconsole and have last connection shell

  1. ctrl + z to background current session

  1. you will back to meterpreter>, then background again.

  1. run listener but as a background

  1. back to the session 1

If you need to perform another shell, you can run channel 2 in session 1

launch new shell, to get another shell in channel 2 in session 1.

wanna get back to the session 2?

make sure you background the current channel in session 1

Interact with session 2

Last updated