Skip to content

Commit b78749b

Browse files
committed
Land rapid7#8221, move autoroute
2 parents 7e2dab4 + 843f148 commit b78749b

File tree

4 files changed

+222
-104
lines changed

4 files changed

+222
-104
lines changed

documentation/modules/post/windows/manage/autoroute.md renamed to documentation/modules/post/multi/manage/autoroute.md

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -18,6 +18,8 @@ Netmask Examples `set NETMASK 255.255.255.0` or `set NETMASK /24`
1818
### delete
1919
This CMD option is used to remove a route from Metasploit's routing table. The IPv4 subnet and netmask (IPv4 or CIDR) of the route to be removed are required. The session number of the Meterpreter session to run the module on is also required. Use `route print` or the print CMD option to display the current Metasploit routing table.
2020

21+
To remove all routes associated with the specified session, use CMD delete and leave the subnet option blank.
22+
2123
### print
2224
This CMD option is used to display Metasploit's routing table. This option has the same functionality as the `route print` command.
2325

@@ -84,13 +86,13 @@ You need a Windows Meterpreter session on a host that has a different public IP
8486
First set up a default route for the Meterpreter session.
8587

8688
```
87-
meterpreter > run post/windows/manage/autoroute CMD=default
89+
meterpreter > run post/multi/manage/autoroute CMD=default
8890
```
8991

9092
or
9193

9294
```
93-
msf > use post/windows/manage/autoroute
95+
msf > use post/multi/manage/autoroute
9496
msf post(autoroute) > set SESSION session-id
9597
msf post(autoroute) > set CMD default
9698
msf post(autoroute) > exploit

lib/msf/base/sessions/scriptable.rb

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -56,7 +56,7 @@ def execute_file
5656
#
5757
def legacy_script_to_post_module(script_name)
5858
{
59-
'autoroute' => 'post/windows/manage/autoroute',
59+
'autoroute' => 'post/multi/manage/autoroute',
6060
'checkvm' => 'post/windows/gather/checkvm',
6161
'duplicate' => 'post/windows/manage/multi_meterpreter_inject',
6262
'enum_chrome' => 'post/windows/gather/enum_chrome',
@@ -68,7 +68,7 @@ def legacy_script_to_post_module(script_name)
6868
'file_collector' => 'post/windows/gather/enum_files',
6969
'get_application_list' => 'post/windows/gather/enum_applications',
7070
'get_filezilla_creds' => 'post/windows/gather/credentials/filezilla_server',
71-
'get_local_subnets' => 'post/windows/manage/autoroute',
71+
'get_local_subnets' => 'post/multi/manage/autoroute',
7272
'get_valid_community' => 'post/windows/gather/enum_snmp',
7373
'getcountermeasure' => 'post/windows/manage/killav',
7474
'getgui' => 'post/windows/manage/enable_rdp',

0 commit comments

Comments
 (0)