312-50V11 · Question #275
A pentester gains access to a Windows application server and needs to determine the settings of the built- in Windows firewall. Which command would be used?
The correct answer is A. Netsh firewall show config. The netsh command-line tool is the built-in Windows utility for displaying and configuring network settings including Windows Firewall rules and state.
Question
A pentester gains access to a Windows application server and needs to determine the settings of the built- in Windows firewall. Which command would be used?
Options
- ANetsh firewall show config
- BWMIC firewall show config
- CNet firewall show config
- DIpconfig firewall show config
How the community answered
(21 responses)- A86% (18)
- B10% (2)
- D5% (1)
Why each option
The netsh command-line tool is the built-in Windows utility for displaying and configuring network settings including Windows Firewall rules and state.
netsh (Network Shell) is the native Windows command-line scripting utility that interfaces with network components including Windows Firewall. The subcommand 'netsh firewall show config' retrieves the current firewall profile settings, exceptions, and enabled/disabled state on older Windows versions, making it the correct tool for this task.
WMIC (Windows Management Instrumentation Command-line) does not have a 'firewall' alias or subcommand and cannot be used to query firewall configuration directly in this syntax.
The 'net' command manages network shares, services, and user accounts but has no firewall subcommand and cannot display firewall configuration.
ipconfig is used exclusively to display and manage IP address configuration such as IP, subnet, and gateway - it has no firewall functionality.
Concept tested: Windows netsh command for firewall configuration review
Source: https://learn.microsoft.com/en-us/windows-server/networking/technologies/netsh/netsh-contexts
Topics
Community Discussion
No community discussion yet for this question.