[Esd-l] ANN: Sanitizer 1.133 released

John D. Hardin jhardin at impsec.org
Sat Jan 5 19:29:00 PST 2002


On Sat, 5 Jan 2002, Brett Glass wrote:

> >Now truncate stripped and poisoned filespecs at space to allow for comments
> >in the poisoned- and stripped-filenames lists - if you are poisoning or
> >stripping filespecs containing spaces, MAKE SURE you use \s instead of a
> >literal space!
> 
> Will "\ " work?

No, the parser isn't that sophisticated. It does "s/\s.*$//"

> Also, which Perl metacharacters (e.g. \w) work?

., * and ? don't work - they have been remapped from RE semantics to
file glob semantics because of the context they're being used in:

	. -> \.  (a literal period)
	* -> .*  (zero or more of anything)
	? -> .   (any character)

Apart from that, everything else *should* work because it's not being
altered; however I haven't tried much that's very complicated apart
from the (?...) examples that are in the recommended poison list.

> Oh, and do backreferences work?

I haven't tried them. Can you give me a useful example of a
backreference in a filespec?

--
 John Hardin KA7OHZ    ICQ#15735746    http://www.impsec.org/~jhardin/
 jhardin at impsec.org                       pgpk -a jhardin at wolfenet.com
  768: 0x41EA94F5 - A3 0C 5B C2 EF 0D 2C E5  E9 BF C8 33 A7 A9 CE 76 
 1024: 0xB8732E79 - 2D8C 34F4 6411 F507 136C  AF76 D822 E6E6 B873 2E79
-----------------------------------------------------------------------
  Monty Python's Star Trek Voyager:
  A successful trans-warp experiment turns Paris and Janeway into
  newts, but they get better.
  ...wait a minute... It's already been done...
-----------------------------------------------------------------------
   14 days until Babylon 5: the Legend of the Rangers



More information about the esd-l mailing list