Subject: Re: ksh need help!!!
To: Wojciech Puchar <>
From: Steven M. Bellovin <>
List: netbsd-users
Date: 12/18/2001 11:54:49
In message <>, Woj
ciech Puchar writes:
>how to generate BINARY file without executing ANY external commands from
>within /bin/ksh?
>i accidentally corrupted ld.elf_so , have everything dynamic, and only one
>thing i left with is ssh session with ksh and i'm able to do cut&paste
>with mouse
>cat echo be used to emit any binary sequences???
>please help!

Yes, I believe you can:

b154$ echo -n '\0\01\0177\0200\0377' | od -c
0000000   \0 001 177 200 377 

Note that you *must* have the leading 0 after the \.

		--Steve Bellovin,
		Full text of "Firewalls" book now at