amlp
asked on
netcat to a non-nc-capable device
I've got a box (lantronix 32 port terminal server) that takes serial ports and TCP'izes them so that one can telnet into the ip-port.
What I'd like to do is capture the datastream coming out of the ip-port, and pipe it into a binary to hex converter.
It seems this is something netcat can do (that is, use netcat instead of telnet so that stdout is generated), but I've only used netcat <--> netcat connections.
Is it possible to tell netcat to "go connect to this port on this ip and stream the data to stdout"? If so, what 's the syntax?
Secondly, is there a streaming binary to hexadecimal converter? What's it called?
Thanks!
What I'd like to do is capture the datastream coming out of the ip-port, and pipe it into a binary to hex converter.
It seems this is something netcat can do (that is, use netcat instead of telnet so that stdout is generated), but I've only used netcat <--> netcat connections.
Is it possible to tell netcat to "go connect to this port on this ip and stream the data to stdout"? If so, what 's the syntax?
Secondly, is there a streaming binary to hexadecimal converter? What's it called?
Thanks!
this only works as long as the TCP/IP connection is kept alive, otherwise netcat dies
ASKER CERTIFIED SOLUTION
membership
This solution is only available to members.
To access this solution, you must be a member of Experts Exchange.
ASKER
$ netcat <ip address> <port> | hexdump
duh. I just don't expect things to be easy and straightforward.