ForgedInception Posted April 24, 2018 Posted April 24, 2018 Hi , I am trying to use ReVdK3-r1.sh but no success. The terminal auto close after i input Enter on Quote xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx x REAVER COMMAND LINE YOU HAVE CHOOSEN x xxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxxx reaver -i mon0 -b 70:4F:57:AA:6D:62 -S -l 10 -N -vv Are you satisified with this configuration? if not, input 'r' and you will be returned to Reaver's Configuration Wizard: . any solution ? Quote
0phoi5 Posted April 24, 2018 Posted April 24, 2018 For other's info, this is the script and the below is the lines directly after the 'Are you satisified with this configuration?' bit. https://github.com/0x90/wps-scripts/blob/master/ReVdK3-r1.sh read -p "Are you satisified with this configuration? if not, input 'r' and you will be returned to Reaver's Configuration Wizard": SATISFIED_OPTION; done if [ -e /etc/reaver_tmp.txt ]; then rm -f /etc/reaver_tmp.txt fi if [ -e /etc/aireplay_tmp.txt ]; then rm -f /etc/aireplay_tmp.txt fi clear Quote
0phoi5 Posted April 24, 2018 Posted April 24, 2018 (edited) I would assume 'done' or 'clear' are closing your terminal, unsure why though. Edited April 24, 2018 by haze1434 Quote
ForgedInception Posted April 24, 2018 Author Posted April 24, 2018 4 hours ago, haze1434 said: For other's info, this is the script and the below is the lines directly after the 'Are you satisified with this configuration?' bit. https://github.com/0x90/wps-scripts/blob/master/ReVdK3-r1.sh read -p "Are you satisified with this configuration? if not, input 'r' and you will be returned to Reaver's Configuration Wizard": SATISFIED_OPTION; done if [ -e /etc/reaver_tmp.txt ]; then rm -f /etc/reaver_tmp.txt fi if [ -e /etc/aireplay_tmp.txt ]; then rm -f /etc/aireplay_tmp.txt fi clear I'm using BT5R3 Gnome 32 bit , is there i need anything to work this ? and what is the satisfied command ? -p ? Actully i am very noob to this. Quote
0phoi5 Posted April 24, 2018 Posted April 24, 2018 Can you add an echo message just before and after the 'done' and the 'clear' lines? That way, you can narrow down which lines successfully run and therefore work out where the script stops. Quote
ForgedInception Posted April 24, 2018 Author Posted April 24, 2018 The terminal does not close after inputing -p ? Thanks how can i add an echo message? Quote
0phoi5 Posted April 24, 2018 Posted April 24, 2018 4 minutes ago, ForgedInception said: The terminal does not close after inputing -p ? Thanks I'm confused. You advised earlier that the terminal closes after you press return/enter on the line "Are you satisfied with this configuration? if not, input 'r' and you will be returned to Reaver's Configuration Wizard:". Does it close or not? I thought that was the issue? 5 minutes ago, ForgedInception said: how can i add an echo message? If you are uncertain how to do a simple thing like adding an echo/Write-Host message, it's probably not a good idea to try and work with a long, complicated shell script. You should learn basic PowerShell before continuing. 1 Quote
ForgedInception Posted April 24, 2018 Author Posted April 24, 2018 Quote I'm confused. You advised earlier that the terminal closes after you press return/enter on the line "Are you satisfied with this configuration? if not, input 'r' and you will be returned to Reaver's Configuration Wizard:". Does it close or not? I thought that was the issue? Yes the terminal close and thats the issue , now instead of enter i input -p & terminal did not close. Quote
ForgedInception Posted April 25, 2018 Author Posted April 25, 2018 On 4/24/2018 at 7:49 AM, haze1434 said: Have you tried pressing y then enter? Pressing 'y' or 'p' doesn't close the terminal. but after the attack method command nothing appears in terminal. I am using this as a reference & using 1 attack method. where i am wrong now ? Due to a limit of reply i was unable to post yesterday. Quote
0phoi5 Posted April 26, 2018 Posted April 26, 2018 You need to narrow down the exact line in the script that it fails/ends on. What's the last output that you see on your screen before the terminal closes? Quote
ForgedInception Posted April 26, 2018 Author Posted April 26, 2018 1 hour ago, haze1434 said: You need to narrow down the exact line in the script that it fails/ends on. What's the last output that you see on your screen before the terminal closes? Which Attack You Prefer to carry out(Input No.)? I entered 1, then the terminal close & new blank terminal open. Quote
0phoi5 Posted April 27, 2018 Posted April 27, 2018 (edited) So it might be failing on the following line (259); while [[ "$MDK3_MAIN_MENU_OPTION" != @(1|2|3) ]]; do After it fails, can you echo $MDK3_MAIN_MENU_OPTION? If it isn't set to 1, 2 or 3, the script will hang here indefinitely, as the writer hasn't added an 'else'. Scratch that, sorry. It's stating if the option isn't one of those. Between line 256 and 278, can you add an echo between each line? e.g; echo 1, echo 2 echo 3.... That way, you can see which echo is the last to show up before the script ends. Edited April 27, 2018 by haze1434 1 Quote
Glowinghot666 Posted May 6, 2018 Posted May 6, 2018 Here's a few resources for learning PS https://github.com/PowerShell/PowerShell/tree/master/docs/learning-powershell 1 Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.