Adam Smith Posted June 7, 2016 Share Posted June 7, 2016 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... Quote Link to comment Share on other sites More sharing options...
0phoi5 Posted June 8, 2016 Share Posted June 8, 2016 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. Quote Link to comment Share on other sites More sharing options...
cooper Posted June 9, 2016 Share Posted June 9, 2016 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. Quote Link to comment Share on other sites More sharing options...
0phoi5 Posted June 9, 2016 Share Posted June 9, 2016 (edited) You could also try NetCat. The syntax mentioned in this article is; upload /usr/share/netcat-1.11/nc.exe C:\\windows\\system32 Edited June 9, 2016 by haze1434 Quote Link to comment Share on other sites More sharing options...
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.