SpacehuhnTech / esp8266_deauther

Affordable WiFi hacking platform for testing and learning
http://deauther.com
Other
13.34k stars 2.57k forks source link

Feature: upgrade from web #839

Closed ifengchao closed 5 years ago

ifengchao commented 6 years ago

Is it possible to upgrade the firmware from web interface?

tobozo commented 6 years ago

OTA uses 50% of the flash space and the binary size already exceeds that

ifengchao commented 6 years ago

So it's possible to have the feature if the flash size is 4MB? Upload the firmware from 192.168.4.1 manually?

ghost commented 6 years ago

esp07 flash size only 1MB.

ifengchao commented 6 years ago

1MB devices can be compiled without OTA, let's just ignore it :) But we shoud not limit the possibility of 4MB version.

tobozo commented 6 years ago

The question is: does it add a real value to the deauther?

Since it's not required for the tool to work, it's unlikely it'll land in the source tree, or at most it'll be a chunk of commented code you just uncomment when you're developing.

@spacehuhn will confirm that anyway

spacehuhn commented 6 years ago

My name is @spacehuhn and I approve this message ^

ifengchao commented 6 years ago

Uploading the frmware from a serial console is not that convenient than from the web. Easier for deauthers to upgrade to the latest code, to test, to give a quick feedback.

:)

spacehuhn commented 6 years ago

Hey man if you want it so much, why don't you implement it? :D

ifengchao commented 6 years ago

Well, that's a nice idea, i'm not quite familar with the esp8266 and arduino things actually... :(

ifengchao commented 6 years ago

And i'll try...

ifengchao commented 6 years ago

The idea comes from a issue, when i try to upload the v2.0.5 to confirm last issue, i have to find my micro usb cable, open the computer, find the ESP8266 flash tool (may have to install it if not installed), serial drivers etc.

It's easy to upload from the web!
A cell phone with a otg cable could finish this. Haha too much words. :)

tobozo commented 6 years ago

Sure, it could also be installed via an Amazon dash button that would trigger a MQTT deployment with the help of ESP WiFi Smart Config (c) so the world could finally have the benefits of one-click-buy-and-deauth-all :skull: but I guess this is more of a generic concern and out of the scope of this project.

tobozo commented 6 years ago

@ifengchao if your build has a Micro SDCard reader there's an ongoing test that uses parts of the OTA module to allow flashing on demand from chosen binaries preinstalled on the SDCard.

Currently it's hardwired to the SD Card, but the syntax OTA friendly so it shouldn't be a problem to use it, or make it 'check & download' updated binaries, also I can provide the necessary tech support to help you set it up.

This way you can maintain several versions of the deauther on the same microSD and load them on demand for better testing.

spacehuhn commented 5 years ago

I have to decline this Feature Request for now. Not only is the memory always a bit short on this project, I don't really have the time to implement this. If someone wants to pick up from here, you're welcome to add your comment ann fork this project or make a pull request.