spacehuhn / wifi_ducky

Upload, save and run keystroke injection payloads with an ESP8266 + ATMEGA32U4
MIT License
1.26k stars 295 forks source link

Actual DUCKY Scripts are printed in serial monitor and NOT executed #104

Open cnu77 opened 4 years ago

cnu77 commented 4 years ago

After so many iterations, somehow I flashed the ESP8266 part.

I tried this video https://www.youtube.com/watch?v=G-Z2rf_AN-c

I followed the steps.

Flash ATMEGA32U4, using Step1.ino file Flash ESP8266 using esp8266_flasher.exe and esp8266_wifi_duck_4mb.bin as bin file. Held a jumper cable to the 2 circles, pushed it to USB. Connected to the USB. Did not take the cable out. Click on Download on the flasher and uploaded and finally said 'leaving...' Now, I can connect to the WiFi Duck with password quackquack.

But, I cannot run the script. Nothing happens.

When I checked in the Serial monitor, I saw some weird characters and also THE SCRIPT IS PRINTED INSTEAD OF GETTING EXECUTED.

So, in the Step1.ino I changed the baud rate as below:

Serial.begin(115200) --> Junk Serial.begin(57600) --> Print the actual commands in Serial Monitor, but nothing gets executed Serial.begin(9600) --> Nothing happens

Any idea?

cnu77 commented 4 years ago

After so many iterations, somehow I flashed the ESP8266 part.

I tried this video https://www.youtube.com/watch?v=G-Z2rf_AN-c

I followed the steps.

Flash ATMEGA32U4, using Step1.ino file Flash ESP8266 using esp8266_flasher.exe and esp8266_wifi_duck_4mb.bin as bin file. Held a jumper cable to the 2 circles, pushed it to USB. Connected to the USB. Did not take the cable out. Click on Download on the flasher and uploaded and finally said 'leaving...' Now, I can connect to the WiFi Duck with password quackquack.

But, I cannot run the script. Nothing happens.

When I checked in the Serial monitor, I saw some weird characters and also THE SCRIPT IS PRINTED INSTEAD OF GETTING EXECUTED.

So, in the Step1.ino I changed the baud rate. Nothing happened. After 2 days of searching, its fine now.

This is what happens with you do not have any idea about what you are doing.

After spending some time in going through the files that I have, I compared the .ino files I uploaded into ATMEGA32U4 with the actual script from the site, I found that what I uploaded is just a sample script which just prints whatever you send from 192.168.4.1.

Now, I uploaded the correct script and working like a charm.