Jump to content

Problems using "upload" in Meterpreter

Adam Smith

Recommended Posts


I've been trying to upload a .vbs file to a remote machine in a meterpreter session without success. This problem also occurs with .exe files so it's not the .vbs file type not being supported.

I've tried this:

upload root/Desktop/program.vbs c:\\Users\\i7479\\Desktop

This returns:

[-] Error running command upload: Errno:ENOENT No such file or directory @ rb__file_s__stat - root/Desktop/program.vbs

The paths for these files are both correct, it just can't find the program to be uploaded...

Does anyone know how to carry this out? Should such a basic command be so tricky to execute? This doesn't work on Armitage (GUI) either btw...


Link to comment
Share on other sites

You need to either change directory (cd) in to the Desktop folder manually, or use;


You don't need to use the folder 'root' in the path. If you put a forward slash at the start of the path, Linux will know to start at the root directory.

Link to comment
Share on other sites

He's uploading from Linux to Windows.

Probably should use either "/root/Desktop/program.vbs" or "~/Desktop/program.vbs" where the former is the more portable of the two.

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.

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.

  • Recently Browsing   0 members

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