We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Hi. How can I send requests to the Ducky? like: http://192.168.4.1/run?script=DOWN
THX
The text was updated successfully, but these errors were encountered:
I added my own feature, that works fine!
Sorry, something went wrong.
Maybe someone may need it. server.on("/live", HTTP_GET, [](AsyncWebServerRequest *request){ if(request->hasArg("string")){ String _name = request->arg("string"); File f = SPIFFS.open("/tmp", "w"); if(f) { f.print(_name); script = SPIFFS.open("/tmp", "r"); runScript = true; runLine = true; } else request->send(200, "text/plain", "false"); request->send(200, "text/plain", "true"); } else send404(request); }); Test the request: http://192.168.4.1/live?string=123456 or http://192.168.4.1/live?string=GUI r%0D%0ADELAY 500%0D%0ASTRING%20notepad.exe%0D%0AENTER%0D%0ADELAY%201000%0D%0ASTRING%20Hello%20World!
server.on("/live", HTTP_GET, [](AsyncWebServerRequest *request){ if(request->hasArg("string")){ String _name = request->arg("string"); File f = SPIFFS.open("/tmp", "w"); if(f) { f.print(_name); script = SPIFFS.open("/tmp", "r"); runScript = true; runLine = true; } else request->send(200, "text/plain", "false"); request->send(200, "text/plain", "true"); } else send404(request); });
No branches or pull requests
Hi. How can I send requests to the Ducky?
like: http://192.168.4.1/run?script=DOWN
THX
The text was updated successfully, but these errors were encountered: