spacehuhn / wifi_ducky

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

[Feature Request] OTA Update #15

Closed tobozo closed 7 years ago

tobozo commented 7 years ago

I found a practical use to this toy: Retropie shortcuts! No more keyboard required, now I can send pause/play, insert-coin, exit, and other emulator related shortkeys from the phone.

Problem: version 1.1 requires to reflash the ESP, but reflashing ESP is impossible when rx/tx are soldered.

Since I'll have to cut the wires anyway (damnit why did I remove the switch ?), I'll add the OTA capability to the code before reflashing.

My question is: if I want to be able to start the WifiDucky OTA update state from the web controls, all I need is to add a HTML button, a web handler and implement the OTA logic, right ?

spacehuhn commented 7 years ago

https://github.com/spacehuhn/wifi_ducky#update-esp8266-over-the-webinterface

Go to 192.168.4.1/update and upload the new .bin file.

tobozo commented 7 years ago

okay thanks that did it \o/