Netsh
Description
Netsh is a Windows built-in command-line tool for network configuration. In penetration testing, it is used for firewall enumeration and port forwarding on Windows machines.
Usage 1: Dump Firewall Configuration
Command:
netsh advfirewall firewall dump
Usage 2: Show Firewall State
Command:
netsh firewall show state
Usage 3: Show Firewall Config
Command:
netsh firewall show config