home *** CD-ROM | disk | FTP | other *** search
/ Hacks & Cracks / Hacks_and_Cracks.iso / hackersclub / km / library / hack / directory.txt < prev    next >
Text File  |  1998-03-25  |  3KB  |  74 lines

  1. 16. How to I change to directories with strange characters in them?
  2.  
  3. These directories are often used by people trying to hide information, most
  4. often warez (commercial software).
  5. There are several things you can do to determine what these strange
  6. characters are. One is to use the arguments to the ls command that cause ls
  7. to give you more information:
  8. From the man page for ls:
  9.  
  10.     -F   Causes directories to be marked with a trailing ``/'',
  11.          executable files to be marked with a trailing ``*'', and
  12.          symbolic links to be marked with a trailing ``@'' symbol.
  13.  
  14.     -q   Forces printing of non-graphic characters in filenames as the
  15.          character ``?''.
  16.  
  17.     -b   Forces printing of non-graphic characters in the \ddd
  18.          notation, in octal.
  19.  
  20. Perhaps the most useful tool is to simply do an "ls -al filename" to save
  21. the directory of the remote ftp site as a file on your local machine. Then
  22. you can do a "cat -t -v -e filename" to see exactly what those bizarre
  23. little characters are.
  24. From the man page for cat:
  25.  
  26.     -v  Causes non-printing characters (with the exception of tabs,
  27.         newlines, and form feeds) to be displayed.  Control characters
  28.         are displayed as ^X (x), where X is the key pressed with
  29.         the  key (for example, m is displayed as ^M).  The
  30.          character (octal 0177) is printed as ^?.  Non-ASCII
  31.         characters (with the high bit set) are printed as M -x, where
  32.         x is the character specified by the seven low order bits.
  33.  
  34.     -t  Causes tabs to be printed as ^I and form feeds as ^L.  This
  35.         option is ignored if the -v option is not specified.
  36.  
  37.     -e  Causes a ``$'' character to be printed at the end of each line
  38.         (prior to the new-line).  This option is ignored if the -v
  39.         option is not set.
  40.  
  41. If the directory name includes a or a you will need to enclose the entire
  42. directory name in quotes. Example:
  43.  
  44. cd ".."
  45.  
  46. On an IBM-PC, you may enter these special characters by holding down the
  47. key and entering the decimal value of the special character on your numeric
  48. keypad. When you release the key, the special character should appear on
  49. your screen. An ASCII chart can be very helpful.
  50. Sometimes people will create directories with some of the standard stty
  51. control characters in them, such as ^Z (suspend) or ^C (intr). To get into
  52. those directories, you will first need to user stty to change the control
  53. character in qustion to another character.
  54. From the man page for stty:
  55.  
  56.     Control assignments
  57.  
  58.     control-character C
  59.                                   Sets control-character to C, where control-character is
  60.                                   erase, kill, intr (interrupt), quit, eof, eol, swtch
  61.                                   (switch), start, stop or susp.
  62.  
  63.                                   start and stop are available as possible control char-
  64.                                   acters for the control-character C assignment.
  65.  
  66.                                   If C is preceded by a caret (^) (escaped from the
  67.                                   shell), then the value used is the corresponding con-
  68.                                   trol character (for example, ^D is a d; ^? is
  69.                                   interpreted as DELETE and ^- is interpreted as unde-
  70.                                   fined).
  71.  
  72. Use the stty -a command to see your current stty settings, and to determine
  73. which one is causing you problems.
  74.