mirror of
https://github.com/k4m4/kickthemout.git
synced 2025-07-03 20:08:15 +02:00
kickALLOff added
This commit is contained in:
parent
c5ca168641
commit
bc3f79a1b3
2 changed files with 111 additions and 24 deletions
10
spoof.py
10
spoof.py
|
@ -17,8 +17,8 @@ from scapy.all import (
|
|||
sendp
|
||||
)
|
||||
|
||||
def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
||||
|
||||
def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
||||
ether = Ether()
|
||||
ether.src = my_mac
|
||||
|
||||
|
@ -35,9 +35,9 @@ def sendPacket(my_mac, gateway_ip, target_ip, target_mac):
|
|||
ether.dst = target_mac
|
||||
|
||||
arp.op = 2
|
||||
|
||||
|
||||
def broadcastPacket():
|
||||
packet = ether/arp
|
||||
sendp(x=packet, verbose=False)
|
||||
|
||||
packet = ether / arp
|
||||
sendp(x=packet, verbose=False)
|
||||
|
||||
broadcastPacket()
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue