My network configuration:
host 1 [h1] - User machine connected via VPN to the main host (host 2). (Win 7)
host 2 [h2] - The gate through other machines of my network. No firewall, no ip rules. (Win XP)
host 3 [h3] - The target machine. (Win XP)
From h1 I'm able to connect via telnet to h2 or start a cmd line session with psexec
. From h2 I can do the same pointing at h3. Now I would like to start a telnet
session from h2 to h3, redirect the interactive output to h1 and send back input from h1 to h3.
What have I done:
suggestions taken from: What's the best way to telnet from a remote Windows PC without using RDP?
h2 cmd started on h1 console through psexec command,
ncat
on h3 through h2 remote cmd line with empty line (return) as result.
I know psexec + telnet is not possible and netcat should be a good alternative, but it seems unable to handle prompt interactivity. Ideas?