File: verify_inject.py

package info (click to toggle)
aircrack-ng 1%3A1.6%2Bgit20210130.91820bc-1
  • links: PTS, VCS
  • area: main
  • in suites: bullseye
  • size: 19,056 kB
  • sloc: ansic: 67,045; cs: 5,392; sh: 3,773; python: 2,565; pascal: 1,074; asm: 570; makefile: 253; cpp: 46
file content (14 lines) | stat: -rw-r--r-- 350 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
#!/usr/bin/env python
# Usage: https://github.com/aircrack-ng/aircrack-ng/pull/21

from scapy.all import *

conf.verbf = 1

interface = "at0"

rpkt = Ether( dst = "[AP mac]", src = "[STA mac]" )/\
       IP( dst = "[AP ip]", src = "[STA ip]" )/\
       UDP( )/\
       DNS(rd=1,qd=DNSQR(qname="www.aircrack-ng.org"))
sendp( rpkt, iface = interface )