[ Avaa Bypassed ]




Upload:

Command:

hmhc3928@13.58.252.71: ~ $
#!/bin/sh

CLI=wpa_cli

pbc()
{
	echo "Starting PBC mode"
	echo "Push button on the station within two minutes"
	if ! $CLI wps_pbc | grep -q OK; then
		echo "Failed to enable PBC mode"
	fi
}

enter_pin()
{
	echo "Enter a PIN from a station to be enrolled to the network."
	echo -n "Enrollee PIN: "
	read pin
	cpin=`$CLI wps_check_pin "$pin" | tail -1`
	if [ "$cpin" = "FAIL-CHECKSUM" ]; then
		echo "Checksum digit is not valid"
		echo -n "Do you want to use this PIN (y/n)? "
		read resp
		case "$resp" in
			y*)
				cpin=`echo "$pin" | sed "s/[^1234567890]//g"`
				;;
			*)
				return 1
				;;
		esac
	fi
	if [ "$cpin" = "FAIL" ]; then
		echo "Invalid PIN: $pin"
		return 1
	fi
	echo "Enabling Enrollee PIN: $cpin"
	$CLI wps_pin any "$cpin"
}

show_config()
{
	$CLI status wps
}

main_menu()
{
	echo "WPS AP"
	echo "------"
	echo "1: Push button (activate PBC)"
	echo "2: Enter Enrollee PIN"
	echo "3: Show current configuration"
	echo "0: Exit wps-ap-cli"

	echo -n "Command: "
	read cmd

	case "$cmd" in
		1)
			pbc
			;;
		2)
			enter_pin
			;;
		3)
			show_config
			;;
		0)
			exit 0
			;;
		*)
			echo "Unknown command: $cmd"
			;;
	esac

	echo
	main_menu
}


main_menu

Filemanager

Name Type Size Permission Actions
p2p Folder 0755
60_wpa_supplicant File 267 B 0755
dbus-listen-preq.py File 1.53 KB 0644
ieee8021x.conf File 269 B 0644
openCryptoki.conf File 1.12 KB 0644
p2p-action-udhcp.sh File 1.68 KB 0755
p2p-action.sh File 2.63 KB 0755
p2p-nfc.py File 19.73 KB 0644
plaintext.conf File 133 B 0644
udhcpd-p2p.conf File 2.86 KB 0644
wep.conf File 170 B 0644
wpa-psk-tkip.conf File 181 B 0644
wpa2-eap-ccmp.conf File 284 B 0644
wpas-dbus-new-getall.py File 1.7 KB 0644
wpas-dbus-new-signals.py File 5.93 KB 0644
wpas-dbus-new-wps.py File 2.17 KB 0644
wpas-dbus-new.py File 4.17 KB 0644
wpas-test.py File 2.51 KB 0644
wps-ap-cli File 1.15 KB 0755
wps-nfc.py File 15.31 KB 0644