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

Re: [SLUG] print to pdf



Hi jill,

myfile;cat /etc/passwd
can be solved easily with
perl -e 'print  'myfile;cat /etc/passwd' =~ m!(\w+?)$!'
that way file will be saved as 'passwd' at the most no nasty meta characters
for execution

:)

Tom


----- Original Message -----
From: "Jill Rowling" <Rowling@nospam.ali.com.au>
To: <slug@nospam.slug.org.au>
Sent: Thursday, June 14, 2001 12:44 AM
Subject: RE: [SLUG] print to pdf


> hehehe looks like we're all doing it.
>
> The only difference is I have done something similar for various different
> old CAD formats which don't know how to create proper postscript files.
> Sometimes I have to stick a
>  90 rotate
> something somthing translate
> in here and there but mostly it works nicely.
>
> It's particularly wild when teamed up with php or PERL web thingy that
calls
> the appropriate translator....
>
> I put "" round the filename to get round those spaces that M$ programs
seem
> to like generating.
>
> BTW my PERL / web thingy has to be fairly paranoid about filenames it is
> given, so as to avoid things like a filename called: myfile;cat
/etc/passwd
> (or worse)
> which most well behaved ? M$ programs can't generate but someone else
might.
> Keep in mind many people run smbd / nmbd as root so just be careful with
> those passed filenames.
>
> Fun though.
>
> Regards,
>
> Jill.
>
>
> --
> Jill Rowling, Snr Des. Eng. & Unix System Administrator
> Eng. Systems Dept, Aristocrat Technologies Australia
> 3rd Floor, 77 Dunning Ave Rosebery NSW 2018
> Phone: (02) 9697-4484 Fax: (02) 9663-1412 Email: rowling@nospam.ali.com.au
>
>
>
> > -----Original Message-----
> > From: chesty [mailto:chesty@nospam.argus.net.au]
> > Sent: Thursday, 14 June 2001 17:25
> > To: slug@nospam.slug.org.au
> > Subject: [SLUG] print to pdf
> >
>
>
>
> ----------------------
> CONFIDENTIALITY NOTICE
> ----------------------
> This email is intended only to be read or used by the addressee.
> The information contained in this e-mail message may be confidential
> information. If you are not the intended recipient, any use, interference
> with, distribution, disclosure or copying of this material is unauthorised
> and prohibited. Confidentiality attached to this communication is not
waived
> or lost by reason of the mistaken delivery to you.
>
> If you have received this message in error, please delete it and notify us
> by return e-mail or telephone Aristocrat Technologies Australia Pty
Limited
> on +61 2 9413 6300.
>
>


-- 
SLUG - Sydney Linux User Group Mailing List - http://slug.org.au/
More Info: http://lists.slug.org.au/listinfo/slug