[Dshield] CAUTION email about shell scripting...
chris.meidinger at badenit.de
Wed Oct 13 20:09:58 GMT 2004
Yes, that what what i meant by:
> This, of course, goes for all binaries used in the script.
That means: ps, ssh, grep and mail should be sanity checked.
> -----Original Message-----
> From: list-bounces at lists.dshield.org
> [mailto:list-bounces at lists.dshield.org] On Behalf Of Schneelocke
> Sent: Wednesday, October 13, 2004 21:29
> To: General DShield Discussion List
> Subject: Re: [Dshield] CAUTION email about shell scripting...
> > #!/bin/bash
> > [ -x /bin/ps ] && PS_CMD=/bin/ps || mail -s "problem
> finding ps binary"
> > foo at foo.com
> Shouldn't you do something similar for mail, too, before using it? ;)
> DShield and the Internet Storm Center are sponsored by the
> SANS Institute.
> To learn more about current SANS training, see http://www.sans.org .
> send all posts to list at lists.dshield.org To change your
> subscription options (or unsubscribe), see:
More information about the list