[comp.unix.wizards] Hidden directories

daveh@marob.masa.com (Dave Hammond) (04/09/90)

sabi@vax1.acs.udel.EDU writes:

>Another way to give trouble to anyone wanting to look inside, is to embed a 
>control character inside the name.  I typically use a backspace, for example:
>abc\bde
>[...]

Of course, anyone capable of using `od' can short circuit any of these
tricks by simply typing:

	od -c <directory>

In fact, if the system uses SYSV-like directories, the output will read
like a road map of the directory contents:

0000020 026  \t   .  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0  \0
	  ^^^^^^^   ^^
        inode,    filename (.)
0000040 024 037   .   h   i   s   t   o   r   y  \0  \0  \0  \0  \0  \0
	  ^^^^^^^   ^^^^^^^^^^^^^^^^^^^^^^^^^^^^^^
        inode,    filename (.history)
0000440   N 027 030 031 032   1   2   3  \0  \0  \0  \0  \0  \0  \0  \0
	  ^^^^^^^ ^^^^^^^^^^^^^^^^^^^^^^^^
	  inode,	filename (^X^Y^Z123)


--
Dave Hammond
daveh@marob.masa.com
uunet!masa.com!marob!daveh

goudreau@larrybud.rtp.dg.com (Bob Goudreau) (04/11/90)

In article <261FC9B3.583F@marob.masa.com>, daveh@marob.masa.com (Dave
Hammond) writes:
> 
> >Another way to give trouble to anyone wanting to look inside, is to embed a 
> >control character inside the name.  I typically use a backspace, for
example:
> >abc\bde
> >[...]
> 
> Of course, anyone capable of using `od' can short circuit any of these
> tricks by simply typing:
> 
> 	od -c <directory>
> 
> In fact, if the system uses SYSV-like directories, the output will read
> like a road map of the directory contents:

Of course, if you have a System V OS, it's probably easier to
use "ls -b" (force printing of non-graphic characters in octal \ddd
notation) in the first place.

------------------------------------------------------------------------
Bob Goudreau				+1 919 248 6231
Data General Corporation
62 Alexander Drive			goudreau@dg-rtp.dg.com
Research Triangle Park, NC  27709	...!mcnc!rti!xyzzy!goudreau
USA