[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-ID: <4E79DEF6.1020405@ntlworld.com>
Date: Wed, 21 Sep 2011 13:56:22 +0100
From: Jacqui Caren <jacqui.caren@...world.com>
To: full-disclosure@...ts.grok.org.uk
Subject: Re: Possibility to exploit bash "*" processing
On 21/09/2011 10:39, Cédric Jeanneret wrote:
> Consider using:
> rm ./*
I dont see why someone would know how to use '--' for touch and not for rm...
[jacqui@...ter test]$ touch -- -f -r
[jacqui@...ter test]$ rm *
[jacqui@...ter test]$ ls -l
total 0
-rw-rw-r-- 1 jacqui jacqui 0 Sep 21 12:53 -f
-rw-rw-r-- 1 jacqui jacqui 0 Sep 21 12:53 -r
[jacqui@...ter test]$ rm -- *
[jacqui@...ter test]$ ls -l
total 0
[jacqui@...ter test]$
_______________________________________________
Full-Disclosure - We believe in it.
Charter: http://lists.grok.org.uk/full-disclosure-charter.html
Hosted and sponsored by Secunia - http://secunia.com/
Powered by blists - more mailing lists