Re: Do not run this code.

2015-03-05 Thread Ian Kelly
On Thu, Mar 5, 2015 at 12:39 AM, Dave Farrance wrote: > Ben Finney wrote: > >>Chris Angelico writes: >> >>> import base64; exec(…) >> >>That's all I need to know. Code with ‘exec()’ calls, I consider unsafe >>by default. > > Indeed. replacing exec with print... > print(base64.b64decode(b"eD

Re: Do not run this code.

2015-03-04 Thread Chris Angelico
On Thu, Mar 5, 2015 at 5:44 PM, Ben Finney wrote: > Chris Angelico writes: > >> import base64; exec(…) > > That's all I need to know. Code with ‘exec()’ calls, I consider unsafe > by default. Well yes, there is that :) ChrisA -- https://mail.python.org/mailman/listinfo/python-list

Re: Do not run this code.

2015-03-04 Thread Dave Farrance
Ben Finney wrote: >Chris Angelico writes: > >> import base64; exec(…) > >That's all I need to know. Code with ‘exec()’ calls, I consider unsafe >by default. Indeed. replacing exec with print... >>> print(base64.b64decode(b"eD0neD0lcjsgZXhlYyh4JSV4KSc7IGV4ZWMoeCV4KQ==")) x='x=%r; exec(x%%x)'; e

Re: Do not run this code.

2015-03-04 Thread Ben Finney
Chris Angelico writes: > import base64; exec(…) That's all I need to know. Code with ‘exec()’ calls, I consider unsafe by default. -- \ Lucifer: “Just sign the Contract, sir, and the Piano is yours.” | `\ Ray: “Sheesh! This is long! Mind if I sign it now and read it | _o__)

Do not run this code.

2015-03-04 Thread Chris Angelico
import base64; exec(base64.b64decode(b"eD0neD0lcjsgZXhlYyh4JSV4KSc7IGV4ZWMoeCV4KQ==")) Or do, but don't blame me if Python crashes out badly. It seems Py3 is safer than Py2 here. ChrisA -- https://mail.python.org/mailman/listinfo/python-list