mirror of
https://github.com/SpacehuhnTech/esp8266_deauther.git
synced 2026-04-26 00:05:55 +03:00
[GH-ISSUE #1610] Web-Console for v2 #903
Labels
No labels
best of
bug
development
discussion
documentation
duplicate
feature request
help wanted
help wanted
improvement
pinned
pull-request
question
stale
translation
v3
wontfix
No milestone
No project
No assignees
1 participant
Notifications
Due date
No due date set.
Dependencies
No dependencies set.
Reference
starred/esp8266_deauther#903
Loading…
Add table
Add a link
Reference in a new issue
No description provided.
Delete branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Originally created by @WaGi-Coding on GitHub (Dec 8, 2022).
Original GitHub issue: https://github.com/SpacehuhnTech/esp8266_deauther/issues/1610
Do similar feature requests issues already exist (open and closed)?
Didn't found any
Is your feature request related to a problem? Please describe.
No
Describe the solution you'd like
I like the Webinterface, but I like using CLI even more. I am not sure if it's possible already, but i'd like if i could use the AP for CLI.
Basically, serving a Website offering a output-textbox, command-textbox, send button and some configurable macro buttons. Also i am not sure if i am the only one who would use it.
Describe alternatives you've considered
Instead of adding it to the existing Web-Interface, offer a branch where instead of the current Web interface, it uses the Web-Console described above
Additional context

Here a screenshot of my current Serial Monitor to visualize the features a bit
@welcome[bot] commented on GitHub (Dec 8, 2022):
Congrats on opening your first issue on this repository! 🎉
This is a automated message to help you avoid common pitfalls when asking for help online.
👉 Be sure to:
* 🇬🇧 Communicate in English so everybody can understand you
* 📖 Have a look at the Wiki and README for information
* 🔍 Search for similar issues (open and closed)
* ✍️ Provide enough information to understand, recreate and help out with your problem
* ℹ️ Let us know if you find a solution and please share it with us
* 📕 Close the issue when your problem has been solved
@WaGi-Coding commented on GitHub (Dec 8, 2022):
Or maybe we can connect to a CLI port with any Terminal supporting WiFi? (Serial-WiFi-Bridge)
@NurTasin commented on GitHub (Dec 8, 2022):
I found these pieces of code in
wifi.cppthis takes CLI input as
cmdargument on/runpath. Something like/run?cmd=help.I don't know I could be totally wrong. But it doesn't send the CLI output back. It only sends the word
OKas a response.@WaGi-Coding commented on GitHub (Dec 8, 2022):
oh cool, many thanks for letting me know, that way i could at least add some simple form i guess. I think a Bridge (idk if you can actually call it like that) would be great, but i guess thats a bit more work than building on the webserver part you just posted.
I'll test if it works by editing a line in the autostart file or so.
@WaGi-Coding commented on GitHub (Dec 8, 2022):
Okay, it works. You can see the output over serial monitor tho. If you want to send commands with spaces, use %20 instead of space, for example
192.168.4.1/run?cmd=replace%20autostart.txt%200%20helpwould replace the first line (0) of the autostart.txt (by default sysinfo) with the "help" commandBut for sure you do not get the output as response unfortunately, which then is not very helpful in that matter :/ Anyway, very good to know
@NurTasin commented on GitHub (Dec 8, 2022):
Yeah, argument values must be URL escaped. Thats why we have to use %20 instead of space.
I think I can make some progress on sending the cli output as response. I am currently reading the
cli.cpp. There I've found thevoid CLI::runCommand(String input)function. I was wondering if somehow we override theprntlnandprntfunction so that they print on Serial monitor as well as sending the texts as a response to the web console, we will be able to achieve our goal. I'll try to make that happen :-)And maybe it will be another feature for the deauther v3 :-D
I'll be describing my progresses in this Issue if can make some.
(Sorry for my terrible English)
@WaGi-Coding commented on GitHub (Dec 8, 2022):
Would be great if you manage something like that ^^ I am lacking the skills for this language and do not really know how i could even achieve this properly. Personally so far for just the deauther, i enjoy v2 more than v3, maybe i missed something with v3, but i was not able to set it up the way i had with v2. Anyway, would be great for any version. And no worries, my english isn't the best either as you might can see ._.
Greetings
@ra1n08 commented on GitHub (Dec 10, 2022):
oh, im finding such thing, if this possible, it will helpful for some apps on android and ios device
like click deauth button on app GUI (not web gui) and it send request https://<deauther_ip>/run?=deauth <wifi_name>
@ra1n08 commented on GitHub (Dec 10, 2022):
but i think need a esp8266 have >4mb flash for web_cli, web_gui and some json config file
that big
@NurTasin commented on GitHub (Dec 10, 2022):
Hey buddies, I have made some progresses towards making the web console thing real.
I have added a
/consoleendpoint to the server, that sends the raw console output.Here I ran the code through the
/runendpointAnd after running that. I made a HTTP_GET request at
/consoleendpoint. And the output looks like thisNow I just have to make a web page for the WebConsole using some HTML,CSS,JS. This might take some time.
But you guys can take a look at my fork of this repo and try it your self if you want.
@NurTasin commented on GitHub (Dec 12, 2022):
Added
/webconsole.htmlendpoint.Hey, I have added the necessary HTML,JS and CSS files. And now you can control the deauther through a web console.
For now it has some flaws. Like:
I'll fix these problems in next release. You can get the releases here.
Make sure that you have starred my fork of this project to stay updated.
@ra1n08 commented on GitHub (Jan 15, 2023):
nice you're maked api for deauther, so now i can access to deauther via python code