File: test-aircrack-ng-0017.sh

package info (click to toggle)
aircrack-ng 1%3A1.7-5
  • links: PTS, VCS
  • area: main
  • in suites: bookworm
  • size: 20,012 kB
  • sloc: ansic: 66,944; cs: 5,392; sh: 3,693; python: 2,647; pascal: 1,074; makefile: 257; cpp: 43
file content (24 lines) | stat: -rwxr-xr-x 539 bytes parent folder | download | duplicates (3)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
#!/bin/sh

set -ef

# Turn our pcap into a hccap
"${abs_builddir}/../aircrack-ng${EXEEXT}" \
    ${AIRCRACK_NG_ARGS} \
    -J "test" \
    -e "linksys" \
    "${abs_srcdir}/wpa2-psk-linksys.cap"

# Make sure we can load it and solve it
# NOTE: We can't load a HCCAP file. Mostly because it doesn't have a magic number
#echo "dictionary" | "${abs_builddir}/../aircrack-ng${EXEEXT}" \
#    ${AIRCRACK_NG_ARGS} \
#    -e "linksys" \
#    -w - \
#    "test.hccap" \
#    -l /dev/null | \
#        ${GREP} "KEY FOUND"

rm -f test.hccap

exit 0