Dec 21, 2012 07:15 AM
(This post was last modified: Feb 22, 2013 12:09 AM by Rafe_D.)
HF Default Font (Click to View)
Ok so using this Method you can have Reaver run pins 3 ways.
Things you'll need:
For simplicity this Method is designed to test against your own AP and written with noobs in mind.
Getting Started
The first thing we need to do is create a file.
Reaver will do this for us.
Run your normal reaver command against a WPS enabled AP.
When Reaver try's the Second pin press CTRL + C.
Reaver will save the session.
Take note of the BSSID of the AP.
Open a New Terminal.
In this next command where I have written ENTER BSSID HERE.wpc you will need to change it to the BSSID of the AP you used without entering the colon's.
EG: If your BSSID was 11:22:33:44:55:66 then the command will be gedit '/usr/local/etc/reaver/112233445566.wpc'
![[Image: 8rU3O.png]](https://i.imgur.com/8rU3O.png)
What you should now be seeing is the file reaver use's to run the pin's.
![[Image: k9R9d.png]](https://i.imgur.com/k9R9d.png)
The first line tell's reaver what pin it is up to. Change it back to 0 so reaver will start from the begining.
Now Back up the file so you can use it in the future.
If you want reaver to start and continue from a certain pin, let's use 0130, scroll down to that pin and check the bottom right corner for the Ln X, Col X and then -4.
EG: If you scroll down to 0130 it's on Ln 144.
144 - 4 is 140.
If we change the first line to 140 then reaver will run the session from pin 0130 upwards.
The second line tells reaver were to start the second half of the Pin minus the checksum. So you only need the first three digit's.
Scroll down to your desired Pin. I'll use 011. It's on Ln 10024. Now - 10004.
EG: If you scroll down to 011 it's on Ln 10024.
10024 - 10004 = 20.
If we change the second line to 20 then reaver will now start our session with the Pin 0130011.
To Run Reaver Backwards.
The 4th line tell's reaver the order of the pin's to try. These are what we will be altering.
Go back to the Terminal and press CTRL + C
Now enter the command cd /pentest/passwords/crunch/
![[Image: O8E43.png]](https://i.imgur.com/O8E43.png)
Now enter the command ./crunch 4 4 9876543210 -d 3% -o Rafe_D
![[Image: grxd2.png]](https://i.imgur.com/grxd2.png)
Now enter the command gedit '/pentest/passwords/crunch/Rafe_D'
![[Image: XJ810.png]](https://i.imgur.com/XJ810.png)
Now you need to scroll down the file and locate and delete the numbers 0123 and 1234.
Make sure not to leave any blank lines between the numbers before or after.
Any extra lines and the file wont run properly.
Not enough lines and the file wont run properly.
It should look the same as when you opened it
Once you have done this press CTRL + A to highlight all then CTRL + C to Copy it to the clipboard.
Now go to your Original BSSID.wpc file and check that the first line is 0. Then scroll down to Ln 16 or 0001 and highlight to Ln 10003 or 9998 and delete them all.
Now press CTRL + V and paste the crunch file in it's place.
The number's should now go from 9998 down to 0001.
Check this file from top to bottom making sure there are no blank lines.
Click on the save button.
Now backup this file somewhere you can find and use it in the future.
![[Image: xxZSH.png]](https://i.imgur.com/xxZSH.png)
Using the file.
Whenever you want to use this file it need's to be in the reaver directory.
The same location that we found the original file.
You can navigate there with File System/usr/local/etc/reaver then Copy and Paste or Drag and Drop the file.
Unless you want to use the -s command it must be named with the BSSID (without the colon's) of the AP your testing.
EG: 112233445566.wpc
Run airodump-ng and then rename the file to the BSSID of the AP you want to test.
Run reaver as per normal.
EG: reaver -i mon0 -b 11:22:33:44:55:66 -S -vv
Reaver should now ask Restore previous session for BSSID HERE (Mine was 11:22:33:44:55:66) [n/Y]?
Type y then press enter.
Reaver should start with 12345670.
This is the most common default pin.
That's why we haven't changed the first few.
It will then start running the pins backwards.
![[Image: 4Pdis.png]](https://i.imgur.com/4Pdis.png)
Trouble Shooting
If reaver start's with 1234XXXX and not 12345670 then you either have to many or not enough lines in the file you made.
If reaver start's with anything but 1234 then you have forgotten to change the first line of the file to a 0.
As a bit of research I would be interested to know if running the pins backwards would have been quicker for anybody. IE: WPS pins above 5000 0000
Ok so using this Method you can have Reaver run pins 3 ways.
- Backwards
- Any order you choose
- Start AND CONTINUE from a pin you choose
Things you'll need:
- To keep this simple I'm just using a live USB with BackTrack 5R3. If you have any form of persistence set then there are a couple of step's you can skip.
- The Ability to use Reaver.
- The Ability to save and recover the file even after a reboot.
For simplicity this Method is designed to test against your own AP and written with noobs in mind.
Getting Started
The first thing we need to do is create a file.
Reaver will do this for us.
Run your normal reaver command against a WPS enabled AP.
When Reaver try's the Second pin press CTRL + C.
Reaver will save the session.
Take note of the BSSID of the AP.
Open a New Terminal.
In this next command where I have written ENTER BSSID HERE.wpc you will need to change it to the BSSID of the AP you used without entering the colon's.
EG: If your BSSID was 11:22:33:44:55:66 then the command will be gedit '/usr/local/etc/reaver/112233445566.wpc'
![[Image: 8rU3O.png]](https://i.imgur.com/8rU3O.png)
What you should now be seeing is the file reaver use's to run the pin's.
![[Image: k9R9d.png]](https://i.imgur.com/k9R9d.png)
The first line tell's reaver what pin it is up to. Change it back to 0 so reaver will start from the begining.
Now Back up the file so you can use it in the future.
If you want reaver to start and continue from a certain pin, let's use 0130, scroll down to that pin and check the bottom right corner for the Ln X, Col X and then -4.
EG: If you scroll down to 0130 it's on Ln 144.
144 - 4 is 140.
If we change the first line to 140 then reaver will run the session from pin 0130 upwards.
The second line tells reaver were to start the second half of the Pin minus the checksum. So you only need the first three digit's.
Scroll down to your desired Pin. I'll use 011. It's on Ln 10024. Now - 10004.
EG: If you scroll down to 011 it's on Ln 10024.
10024 - 10004 = 20.
If we change the second line to 20 then reaver will now start our session with the Pin 0130011.
To Run Reaver Backwards.
The 4th line tell's reaver the order of the pin's to try. These are what we will be altering.
Go back to the Terminal and press CTRL + C
Now enter the command cd /pentest/passwords/crunch/
![[Image: O8E43.png]](https://i.imgur.com/O8E43.png)
Now enter the command ./crunch 4 4 9876543210 -d 3% -o Rafe_D
![[Image: grxd2.png]](https://i.imgur.com/grxd2.png)
Now enter the command gedit '/pentest/passwords/crunch/Rafe_D'
![[Image: XJ810.png]](https://i.imgur.com/XJ810.png)
Now you need to scroll down the file and locate and delete the numbers 0123 and 1234.
Make sure not to leave any blank lines between the numbers before or after.
Any extra lines and the file wont run properly.
Not enough lines and the file wont run properly.
It should look the same as when you opened it
Once you have done this press CTRL + A to highlight all then CTRL + C to Copy it to the clipboard.
Now go to your Original BSSID.wpc file and check that the first line is 0. Then scroll down to Ln 16 or 0001 and highlight to Ln 10003 or 9998 and delete them all.
Now press CTRL + V and paste the crunch file in it's place.
The number's should now go from 9998 down to 0001.
Check this file from top to bottom making sure there are no blank lines.
Click on the save button.
Now backup this file somewhere you can find and use it in the future.
![[Image: xxZSH.png]](https://i.imgur.com/xxZSH.png)
Using the file.
Whenever you want to use this file it need's to be in the reaver directory.
The same location that we found the original file.
You can navigate there with File System/usr/local/etc/reaver then Copy and Paste or Drag and Drop the file.
Unless you want to use the -s command it must be named with the BSSID (without the colon's) of the AP your testing.
EG: 112233445566.wpc
Run airodump-ng and then rename the file to the BSSID of the AP you want to test.
Run reaver as per normal.
EG: reaver -i mon0 -b 11:22:33:44:55:66 -S -vv
Reaver should now ask Restore previous session for BSSID HERE (Mine was 11:22:33:44:55:66) [n/Y]?
Type y then press enter.
Reaver should start with 12345670.
This is the most common default pin.
That's why we haven't changed the first few.
It will then start running the pins backwards.
![[Image: 4Pdis.png]](https://i.imgur.com/4Pdis.png)
Trouble Shooting
If reaver start's with 1234XXXX and not 12345670 then you either have to many or not enough lines in the file you made.
If reaver start's with anything but 1234 then you have forgotten to change the first line of the file to a 0.
As a bit of research I would be interested to know if running the pins backwards would have been quicker for anybody. IE: WPS pins above 5000 0000


