Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Real-time collaboration for Jupyter Notebooks, Linux Terminals, LaTeX, VS Code, R IDE, and more,
all in one place.
Path: blob/master/documentation/modules/post/windows/gather/enum_hostfile.md
Views: 11788
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