Firewall Blocker for Windows - Using netsh.exe

Discussion forum for all Windows batch related topics.

Moderator: DosItHelp

Post Reply
Message
Author
hacxx
Posts: 46
Joined: 09 Apr 2015 13:18

Firewall Blocker for Windows - Using netsh.exe

#1 Post by hacxx » 19 Sep 2020 15:55

Hi,

I have release my own Firewall Blocker for Windows batch program and basically it asks the user for a exe name and full path to block.
(This will add a firewall rule using netsh.exe to block that file from accessing the internet).

Here is the thread:
https://goldenhackz.smfnew2.com/hacking ... -internet/

What i'm looking for is a way to reverse this netsh.exe change. I have tried modifying action=block to action=allow but it doesn't work.

Here is a working full command line...

Code: Select all

netsh.exe advfirewall firewall add rule name="rundll32" dir=out action=block protocol=any program="c:\windows\system32\rundll32.exe"
Thanks

OJBakker
Expert
Posts: 39
Joined: 12 Aug 2011 13:57

Re: Firewall Blocker for Windows - Using netsh.exe

#2 Post by OJBakker » 19 Sep 2020 16:41

The opposite of 'add rule' is 'delete rule'

See

Code: Select all

netsh advfirewall firewall delete rule /?


Post Reply