From 83c9cf63b283a04f6027a0dc3b2363125c1dc4c2 Mon Sep 17 00:00:00 2001 From: evilsocket Date: Thu, 8 Feb 2018 06:14:19 +0100 Subject: [PATCH] balls --- firewall/firewall_windows.go | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) diff --git a/firewall/firewall_windows.go b/firewall/firewall_windows.go index 345d5894..de495432 100644 --- a/firewall/firewall_windows.go +++ b/firewall/firewall_windows.go @@ -5,6 +5,7 @@ import ( "strings" "github.com/evilsocket/bettercap-ng/core" + "github.com/evilsocket/bettercap-ng/log" "github.com/evilsocket/bettercap-ng/net" ) @@ -68,6 +69,7 @@ func (f WindowsFirewall) generateRule(r *Redirection, enabled bool) []string { } func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error { + log.Warning("Port redirection is not supported on Windows, packets will NOT be automatically forwarded to the proxy.") /* TODO: This doesn't work :/ @@ -87,7 +89,7 @@ func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error return fmt.Errorf("Unexpected netsh output: %s", out) } */ - return fmt.Errorf("Port redirection is not supported on Windows.") + return nil } func (f WindowsFirewall) Restore() {