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
|
|
|
```
|