[GLLUG] Netcat Bash prompt
Michael P. Flaga
michael at flaga.net
Thu Dec 4 16:02:01 EST 2014
I have closed source programs that telnet on windows boxes. Where I am
constrained to Linux Jump servers. That now only have SSH. The Telnet is
GONE on the jump servers. The closed source programs once connected
(formerly via telnet) to the jump servers then know who to issue the
commands to ssh into the remote targets.
I need a way to translate Telnet to SSH on the jump servers.
The netcat on the jump servers do not have the -e option, so I cannot run nc
in telnet mode into /bin/bash.
I have found
mkfifo pipe_name_in
mkfifo pipe_name_out
nc -l 5555 < pipe_name_out | /bin/bash > pipe_name_in
which kind of works. However, the Standard Error does not go down the pipe.
So I don't get any echo or prompts, only the response.
nc -l 5555 < pipe_name_out | /bin/bash 2> pipe_name_in
does get the some of the prompts but then no responses.
nc -l 5555 < pipe_name_out | /bin/bash 2>&1 pipe_name_in
fails to allow connections.
Any suggestions or solutions?
Michael P. Flaga, <mailto:michael at flaga.net> michael at flaga.net
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.egr.msu.edu/mailman/public/linux-user/attachments/20141204/8b6ceab8/attachment.html>
More information about the linux-user
mailing list