Page 1 of 1

Firewall Blocker for Windows - Using netsh.exe

Posted: 19 Sep 2020 15:55
by hacxx
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

Re: Firewall Blocker for Windows - Using netsh.exe

Posted: 19 Sep 2020 16:41
by OJBakker
The opposite of 'add rule' is 'delete rule'

See

Code: Select all

netsh advfirewall firewall delete rule /?

Re: Firewall Blocker for Windows - Using netsh.exe

Posted: 19 Sep 2020 17:14
by hacxx