Metasploit mailing list archives

Runing application remote server side


From: myx at amex.ro (Leonardo Joicaliuc)
Date: Wed, 21 Jun 2006 21:54:05 +0300

 Nicolas RUFF wrote:

i have a problem about running a ".exe" file remotely in a windows 2003
server.
i have access to server to upload, read, and write some files to server
remotely.
but i need to execute my uploaded ".exe" file remotely on server
(server-side)



Seems you got some disk share:D and hopefully username\password for that 
share ( for windows 2003 i'm allmost sure you needed for accessing the 
share).

OK,  ONLY IF the account has administrative rights you can use Sysinternals 
psexec utility.
http://www.sysinternals.com/Utilities/PsExec.html
After downloading, open a cmd prompt and use it like this:
"psexec ipofthehost -u username -p password net share"
Here you'll see the disk  path of the share you are uploading that 
executable.
Assuming share name is "upload" and the real path is "c:\upload" you need to 
run psexec like this:
psexec -d  ipofthehost -u username -p password "c:\upload\yourexe.exe"


Good luck:))
Leonardo Joicaliuc,
Network Security Systems (NSS) Romania
www.secnet.ro






Current thread: