ToolsFebruary 9, 20261 min readby 0xt0pus

Netsh

Windows network configuration tool used for port forwarding and firewall management


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