nerdexam
EC-Council

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.

System Hacking

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)
  • A
    86% (18)
  • B
    10% (2)
  • D
    5% (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.

ANetsh firewall show configCorrect

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.

BWMIC firewall show config

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.

CNet firewall show config

The 'net' command manages network shares, services, and user accounts but has no firewall subcommand and cannot display firewall configuration.

DIpconfig firewall show config

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

#Windows firewall#netsh#post-exploitation#firewall enumeration

Community Discussion

No community discussion yet for this question.

Full 312-50V11 Practice