Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Provide option to add a list of pins in .wpc "format" #356

Open
lcharles123 opened this issue Apr 17, 2022 · 1 comment
Open

Provide option to add a list of pins in .wpc "format" #356

lcharles123 opened this issue Apr 17, 2022 · 1 comment

Comments

@lcharles123
Copy link

Hello
I suggest a command line option to add a file with the list of the pins in a order defined by user. So they can add guesses they think are most probable to be chosen in the first positions.
Thank you!

@feitoi
Copy link
Contributor

feitoi commented Jul 20, 2023

Solution with shell script:

#!/bin/sh

# set the target BSSID
bssid='00:00:00:00:00:00'

# set monitor interface
wmon='wlan0mon'

# set your pin list, 4/7/8 digits or string
pins='1234
1234567
12345678
'

# set the path of .wpc file
wpc=$(printf "/usr/local/var/lib/reaver/%s.wpc" "$bssid" | sed 's/://g')

for pin in $pins ; do
	printf "\n[+] Trying your pin \"%s\"\n" "$pin"
	if reaver -i $wmon -b $bssid -vN -p $pin -g 1 -s "$wpc" ; then
		echo "[!] Bingo!!!"
		break
	fi
done

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants