On 2012-12-17, sven falempin <[email protected]> wrote:
> Hello misc readers,
>
> First, openBSD threads are awesome for debugging.
> The trivial topic,
> echo -ne "\x00" | nc XXXX port
> send a null byte with a GNU echo.
>
> Echo in openbsd does not have -e (and does not warn whan i try it ..)
>
> Noob question:
> How to send a null byte over netcat ? am i forced to use perl ?

you can use octal with echo(1) or printf(1).

$ echo -n '\000' | hexdump -C
00000000  00                                                |.|
00000001

$ printf '\000' | hexdump -C
00000000  00                                                |.|
00000001

Reply via email to