System Enumeration
Enumerating Quick Fixes
Enumerate Drives
User Enumeration
Current User Privileges
Current User Groups
Users on Current Machine
Details about a single user including group memberships
Enumerate Groups
Check the members of a group
Network Enumeration
Check arp table
Check Routing Table
Check Open Ports
AV and Firewall Enumeration
List all services
This lists all active services on the machine, including their process IDs (PIDs) and status. We can manually check if some antivirus is running on target.
Firewall Enumeration
Displays or "dumps" the entire current configuration and rule set of the Windows Defender Firewall.
If it does not work use the older command.
netsh: A command-line utility that allows you to display or modify the network configuration of a computer that is currently running.
firewall: Enters the context for managing the Windows Firewall.
show state: Specifically requests the current operational status of the firewall.
Cleartext Passwords
Search for them
These are common files to find them in. They might be base64-encoded. So look out for that.
Service only available from inside
Sometimes there are services that are only accessible from inside the network. For example a MySQL server might not be accessible from the outside, for security reasons. It is also common to have different administration applications that is only accessible from inside the network/machine. Like a printer interface, or something like that. These services might be more vulnerable since they are not meant to be seen from the outside.
Example output:
Look for LISTENING/LISTEN. Compare that to the scan you did from the outside.
Does it contain any ports that are not accessible from the outside?
If that is the case, maybe you can make a remote forward to access it.
So how should we interpret the netstat output?
Local address 0.0.0.0
Local address 0.0.0.0 means that the service is listening on all interfaces. This means that it can receive a connection from the network card, from the loopback interface or any other interface. This means that anyone can connect to it.
Local address 127.0.0.1
Local address 127.0.0.1 means that the service is only listening for connection from the your PC. Not from the internet or anywhere else. This is interesting to us!
Local address 192.168.1.9
Local address 192.168.1.9 means that the service is only listening for connections from the local network. So someone in the local network can connect to it, but not someone from the internet. This is also interesting to us!