Skip to content

Commit

Permalink
refact: remove internal parameter
Browse files Browse the repository at this point in the history
  • Loading branch information
pviossat committed Sep 10, 2021
1 parent 7f450fa commit f161061
Showing 1 changed file with 0 additions and 8 deletions.
8 changes: 0 additions & 8 deletions modules/arp_spoof/arp_spoof.go
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ type ArpSpoofer struct {
wMacs []net.HardwareAddr
uAdresses []net.IP
fullDuplex bool
internal bool
ban bool
skipRestore bool
forward bool
Expand All @@ -36,7 +35,6 @@ func NewArpSpoofer(s *session.Session) *ArpSpoofer {
wMacs: make([]net.HardwareAddr, 0),
uAdresses: make([]net.IP, 0),
ban: false,
internal: false,
fullDuplex: false,
skipRestore: false,
forward: true,
Expand All @@ -51,10 +49,6 @@ func NewArpSpoofer(s *session.Session) *ArpSpoofer {

mod.AddParam((session.NewStringParameter("arp.spoof.usurpate", session.ParamGatewayAddress, "", "IP addresses to usurpate, also supports nmap style IP ranges.")))

mod.AddParam(session.NewBoolParameter("arp.spoof.internal",
"false",
"If true, local connections among computers of the network will be spoofed, otherwise only connections going to and coming from the external network."))

mod.AddParam(session.NewBoolParameter("arp.spoof.fullduplex",
"false",
"If true, both the targets and the gateway will be attacked, otherwise only the target (if the router has ARP spoofing protections in place this will make the attack fail)."))
Expand Down Expand Up @@ -125,8 +119,6 @@ func (mod *ArpSpoofer) Configure() error {

if err, mod.fullDuplex = mod.BoolParam("arp.spoof.fullduplex"); err != nil {
return err
} else if err, mod.internal = mod.BoolParam("arp.spoof.internal"); err != nil {
return err
} else if err, mod.forward = mod.BoolParam("arp.spoof.forwarding"); err != nil {
return err
} else if err, targets = mod.StringParam("arp.spoof.targets"); err != nil {
Expand Down

0 comments on commit f161061

Please sign in to comment.