tags:

views:

224

answers:

3

Hi,

i want to send the following via netcat:

99||0x00

(4 ascii characters and a zero)

how is this done? im under windows xp.

thank you

A: 

Put the bytes into a file with binary editor and pipe it to netcat. Windows shell too supports input from file redirection via

netcat (options) < (file)

Alternatively, you may be able to input it with keyboard directly via Alt-000, but I doubt it.

Juraj
A: 

Depending on your Unix flavor you can try one of these

echo '99||#' | tr '#' '\000' | netcat <host> <port>

echo -e '99||\000' | netcat <host> <port>
Maglob
A: 
# echo -ne "99||\x00" | nc <host> <port>
Jake Snake