I am using bash script to send hex values to my network.
I need to send 0001000011050000FF00
hex value to IP: 192.168.1.5 Port# 502 using netcat
.
I tried
$ echo '0001000011050000FF00' | xxd -r -p | nc -l 192.168.1.5 502
and it seems to be wrong.
Can you help me with that?
Thank you,
nc
to understand the options you're using?) – Aug 07 '19 at 23:06echo ... | xxd...
tohexdump -C
to verify it is correctly turned into hex. Then look at the man page fornc
to see what options it expects. – Aug 07 '19 at 23:53