Jump to content

Archived

This topic is now archived and is closed to further replies.

Adam Smith

Problems using "upload" in Meterpreter

Recommended Posts

Hi,

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...

 

Share this post


Link to post
Share on other sites

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

/Desktop/program.vbs

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.

Share this post


Link to post
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.

Share this post


Link to post
Share on other sites

You could also try NetCat.

 

The syntax mentioned in this article is;

upload /usr/share/netcat-1.11/nc.exe C:\\windows\\system32

 

Share this post


Link to post
Share on other sites

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...