Path: blob/master/documentation/modules/post/windows/gather/enum_hostfile.md
25656 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_hostfileDo:
set session [#]Do:
runYou should get the hosts file