afsaldigitalart/WiPhi ? reverse-engineered prompt
Reverse engineered prompt
Build me a Linux only WiFi captive portal demo that I can run as root for ethical testing in a lab.
I want it to create a fake access point with a custom SSID, optional password, selectable channel, and a limit on connected clients. When someone connects, it should use a Flask web server to show a simple login page, then capture whatever they submit and save it to a text file, and also show a fake success page after the form is sent. Use the web folder for the HTML pages, generate the needed configs in a configs folder, and make sure it logs connections and disconnections with MAC addresses. Please include a clean shutdown so Ctrl+C stops everything and restores the network settings safely. It should work with a wireless adapter that supports access point mode and use the usual Linux tools for DHCP and DNS redirection. If you need to check current setup details online, go ahead and do that.
Are you gonna build this?
make sure you review the code using coderabbit