• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 359
  • Last Modified:

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?  

1 Solution
amlpAuthor Commented:
ok turned out to be amazingly, non-intuitively simple:

$ netcat <ip address> <port> | hexdump

duh.  I just don't expect things to be easy and straightforward.
this only works as long as the TCP/IP connection is kept alive, otherwise netcat dies
Closed, 250 points refunded.

Community Support Moderator

Featured Post

Free Tool: Subnet Calculator

The subnet calculator helps you design networks by taking an IP address and network mask and returning information such as network, broadcast address, and host range.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Tackle projects and never again get stuck behind a technical roadblock.
Join Now