[Top][All Lists]

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Naming files after command arguments...

From: Security Analyst
Subject: Naming files after command arguments...
Date: Wed, 08 Oct 2003 21:48:42 +0800

simply name files after common command arguments... below i made an executable 
and named it "--help" wich just happens to be one of the "rm" arguments. so- 
whenever i try to delete this file from the command line, i just get the "rm" 
help menu 

*-------------COPIED TEXT BELOW---------------*

address@hidden ls

--help           Floppy             Trash  dcom2.c  nmap_198.192.89-112.txt
CD-ROM [cdrom1]  r00t.desktop    a.out  hda1     scan198.txt
CD-ROM [cdrom]   SelfLinux.desktop  dcom2  hdb1     socks4.exe

address@hidden rm --help

Usage: rm [OPTION]... FILE...
Remove (unlink) the FILE(s).

  -d, --directory       unlink FILE, even if it is a non-empty directory
                          (super-user only)
  -f, --force           ignore nonexistent files, never prompt
  -i, --interactive     prompt before any removal
  -r, -R, --recursive   remove the contents of directories recursively
  -v, --verbose         explain what is being done
      --help     display this help and exit
      --version  output version information and exit

To remove a file whose name starts with a `-', for example `-foo',
use one of these commands:
  rm -- -foo

  rm ./-foo

Note that if you use rm to remove a file, it is usually possible to recover
the contents of that file.  If you want more assurance that the contents are
truly unrecoverable, consider using shred.

Report bugs to <address@hidden>.

*----------END OF COPIED TEXT-----------*
Get your free email from http://www.hackermail.com

Powered by Outblaze

reply via email to

[Prev in Thread] Current Thread [Next in Thread]