wifi_ducky icon indicating copy to clipboard operation
wifi_ducky copied to clipboard

Question: Send Request to the Ducky

Open ghost opened this issue 4 years ago • 2 comments

Hi. How can I send requests to the Ducky? like: http://192.168.4.1/run?script=DOWN

THX

ghost avatar Aug 14 '19 01:08 ghost

I added my own feature, that works fine!

ghost avatar Aug 19 '19 15:08 ghost

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!

ghost avatar Aug 23 '19 02:08 ghost