Subject: Re: ksh need help!!!
To: Wojciech Puchar <wojtek@chylonia.3miasto.net>
From: Steven M. Bellovin <smb@research.att.com>
List: netbsd-users
Date: 12/18/2001 11:54:49
In message <Pine.NEB.4.33.0112181743180.17681-100000@chylonia.3miasto.net>, 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, http://www.research.att.com/~smb
		Full text of "Firewalls" book now at http://www.wilyhacker.com