Skip to content

Latest commit

 

History

History

DelFirewallRule

DelFirewallRule

Delete a firewall rule using COM..

This operation requires elevated privileges.

Arguments

  • <rule name>: the name of the firewall rule you want to delete.

Usage

  • delfirewallrule "<rule name>"

Example

  • delfirewallrule "ExampleRuleName1"

Compile

  • 1. Make sure Visual Studio is installed and supports C/C++.
  • 2. Open the x64 Native Tools Command Prompt for VS <2019/2022> terminal.
  • 3. Run the bofcompile.bat script to compile the object file.
  • 4. In Cobalt strike, use the script manager to load the .cna script to import the tool.