Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.python > #86936

Re: Do not run this code.

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!feeds.phibee-telecom.net!newsfeed.xs4all.nl!newsfeed3.news.xs4all.nl!xs4all!newsgate.cistron.nl!newsgate.news.xs4all.nl!post.news.xs4all.nl!not-for-mail
Return-Path <rosuav@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.024
X-Spam-Evidence '*H*': 0.95; '*S*': 0.00; 'subject:not': 0.03; 'default.': 0.09; 'cc:addr:python-list': 0.11; 'finney': 0.16; 'from:addr:rosuav': 0.16; 'from:name:chris angelico': 0.16; 'subject:run': 0.16; 'unsafe': 0.16; 'wrote:': 0.18; 'thu,': 0.19; 'import': 0.22; 'cc:addr:python.org': 0.22; 'cc:2**0': 0.24; 'header:In-Reply-To:1': 0.27; 'chris': 0.29; 'message- id:@mail.gmail.com': 0.30; 'code': 0.31; 'writes:': 0.31; 'know.': 0.32; 'received:google.com': 0.35; 'there': 0.35; 'ben': 0.38; 'pm,': 0.38; 'mar': 0.68; 'subject:this': 0.83; '2015': 0.84; 'calls,': 0.84; 'to:none': 0.92
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:cc :content-type:content-transfer-encoding; bh=zvy7WPTW2w5cPeeTHxt3SN7KTrODXYnra1DebY9WyTI=; b=NFqCZCUu1Trh/haX3kHST794wIrTkR8X7Mx1xXhIoP/pvkc70XHmwsfo9yF0cZBr+T hiyo9B9tDQbH6McvSqIQV+8rhEee2Kst2dueEsTYYGluL1D04qLbkkb8eqJYr8oQzntw QAPOJVtpHY5E/JbZKZfT8R9pErWWy1HtZ/C1aPxu1JkHjylPlc6ZUOEDFZNAMdGzUPh8 rIvua7KCPayJB+m4bJKlqPxT6VJ8egEXlIghYj+tyf1V28AdwHTWPjBHfh+M6YjRBePI qZzJTAgC/SIUV9SAWJDxhd3100rmPyCYOZAAKqz0bQ9YbWd19YYcve8SOZ9L3r/3jIa7 LktA==
MIME-Version 1.0
X-Received by 10.107.128.219 with SMTP id k88mr17959327ioi.27.1425542241388; Wed, 04 Mar 2015 23:57:21 -0800 (PST)
In-Reply-To <854mq00wq9.fsf@benfinney.id.au>
References <CAPTjJmoSgX6_HO16b2WB=vT+y8tys0ZyvcD-XVS+=6hj=gtUTQ@mail.gmail.com> <854mq00wq9.fsf@benfinney.id.au>
Date Thu, 5 Mar 2015 18:57:21 +1100
Subject Re: Do not run this code.
From Chris Angelico <rosuav@gmail.com>
Cc "python-list@python.org" <python-list@python.org>
Content-Type text/plain; charset=UTF-8
Content-Transfer-Encoding quoted-printable
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.19
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <https://mail.python.org/mailman/options/python-list>, <mailto:python-list-request@python.org?subject=unsubscribe>
List-Archive <http://mail.python.org/pipermail/python-list/>
List-Post <mailto:python-list@python.org>
List-Help <mailto:python-list-request@python.org?subject=help>
List-Subscribe <https://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.57.1425542249.21433.python-list@python.org> (permalink)
Lines 13
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1425542249 news.xs4all.nl 2924 [2001:888:2000:d::a6]:49115
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:86936

Show key headers only | View raw


On Thu, Mar 5, 2015 at 5:44 PM, Ben Finney <ben+python@benfinney.id.au> wrote:
> Chris Angelico <rosuav@gmail.com> 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

Back to comp.lang.python | Previous | Next | Find similar | Unroll thread


Thread

Re: Do not run this code. Chris Angelico <rosuav@gmail.com> - 2015-03-05 18:57 +1100

csiph-web