Skip to content
Open
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Prev Previous commit
Next Next commit
refact: remove internal parameter
  • Loading branch information
pviossat committed Jan 5, 2024
commit 5ae08604854fe196bd62cf8dc7d5f6c74eae2d8c
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