Skip to content

Commit

Permalink
modules/arp_spoof: use net.IP to compare addresses
Browse files Browse the repository at this point in the history
  • Loading branch information
alrs committed Apr 14, 2020
1 parent 318029c commit bc05ed5
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion modules/arp_spoof/arp_spoof.go
Original file line number Diff line number Diff line change
Expand Up @@ -252,7 +252,7 @@ func (mod *ArpSpoofer) arpSpoofTargets(saddr net.IP, smac net.HardwareAddr, chec
isSpoofing := false

// are we spoofing the gateway IP?
if bytes.Equal(saddr, gwIP) {
if net.IP.Equal(saddr, gwIP) {
isGW = true
// are we restoring the original MAC of the gateway?
if !bytes.Equal(smac, gwHW) {
Expand Down

0 comments on commit bc05ed5

Please sign in to comment.