Path: blob/master/documentation/modules/post/windows/gather/enum_hostfile.md
19592 views
Vulnerable Application
This module reads the hosts file on Windows systems, located at: C:\\Windows\\System32\\drivers\\etc\\hosts
. Any content lines are printed and the file is stored in loot.
Verification Steps
Start msfconsole
Get a session on Windows
Do:
use post/windows/gather/enum_hostfile
Do:
set session [#]
Do:
run
You should get the hosts file