Attacker → Ubuntu → Windows
Windows server will start a listener and bind to a particular port.
Attacker creates a bind shell payload for windows and execute it on the Windows host.
Socat redirector on Ubuntu will pass the bind connection coming from the metasploit to windows host.
Create Windows Payload
Start Socat Bind Shell Listener
We will start socat bind shell listener on PivotHost:
Start mult-handler