mirror of
https://github.com/bettercap/bettercap
synced 2025-08-14 02:36:57 -07:00
new: this should complete windows firewall support?
This commit is contained in:
parent
a2425e7cff
commit
296fbbf74b
1 changed files with 3 additions and 2 deletions
|
@ -84,13 +84,14 @@ func (f *WindowsFirewall) EnableRedirection(r *Redirection, enabled bool) error
|
|||
rule = append([]string{"interface", "portproxy", "delete", "v4tov4"}, rule...)
|
||||
}
|
||||
|
||||
fmt.Printf("%v\n", rule)
|
||||
out, err := core.Exec("netsh", rule)
|
||||
if err != nil {
|
||||
return err
|
||||
}
|
||||
|
||||
fmt.Printf("enableredir=%s\n", out)
|
||||
if core.Trim(out) != "" {
|
||||
return fmt.Errorf("Unexpected netsh output: %s", out)
|
||||
}
|
||||
|
||||
return nil
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue