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


Groups > comp.lang.python > #72418

Re: Obfuscated Python hack

Path csiph.com!v102.xanadu-bbs.net!xanadu-bbs.net!feeder.erje.net!eu.feeder.erje.net!newsfeed.xs4all.nl!newsfeed4a.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <ian.g.kelly@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.022
X-Spam-Evidence '*H*': 0.96; '*S*': 0.00; 'subject:Python': 0.06; '64-bit': 0.07; 'restart': 0.09; 'bug': 0.12; 'windows': 0.15; 'idle,': 0.16; 'idle.': 0.16; 'segfault': 0.16; 'supplied': 0.16; 'wrote:': 0.18; '>>>': 0.22; 'issue.': 0.22; 'mon,': 0.24; 'header :In-Reply-To:1': 0.27; 'chris': 0.29; 'am,': 0.29; 'tim': 0.29; 'message-id:@mail.gmail.com': 0.30; 'work.': 0.31; 'code': 0.31; 'chase': 0.31; "d'aprano": 0.31; 'steven': 0.31; 'probably': 0.32; 'linux': 0.33; 'but': 0.35; 'received:google.com': 0.35; 'to:addr :python-list': 0.38; 'pm,': 0.38; 'to:addr:python.org': 0.39; "you're": 0.61; 'transparent': 0.68; 'results': 0.69; 'caused': 0.69; '=====': 0.84; 'actually,': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:from:date:message-id:subject:to :content-type; bh=zLxXFoZXI/XPysDnYkrZVrRPU/pWbmiASGs8qwdJQng=; b=VbRqDwY1LDrEj2d2LlWVjyNIayHbAQd3AbiguGTElynTE6LHRYmspaMlto6K4IM9Ot DJpYo0pJ3eweCylBCNV53E9jVvyl22EhkRilJcJzXKiLGMGQnP/4DLCT56c42mFqyobV glblaXNmrgDWENxmQcq1br0sZFmrrCYmmHosVal5SWTHuJxBGOX9lHaT3KtoA5T8y7aw YDpOe8KCsXw3WK0awN3QgF1JPqi/JbRhQHl79nOuhbml9J2O1SaGvARI8E9XrHN191OS j9LT9pW/bO95TjgyY7Yw0CoEDBysdWt1gcG06MTeZnzjJaDQY+HAfkcxkfAJOGgU56eG fJMA==
X-Received by 10.236.157.40 with SMTP id n28mr53586502yhk.29.1401724089878; Mon, 02 Jun 2014 08:48:09 -0700 (PDT)
MIME-Version 1.0
In-Reply-To <538c9a78$0$29978$c3e8da3$5496439d@news.astraweb.com>
References <538c69d5$0$29978$c3e8da3$5496439d@news.astraweb.com> <20140602072718.071feab3@bigbox.christie.dr> <mailman.10558.1401715441.18130.python-list@python.org> <538c9a78$0$29978$c3e8da3$5496439d@news.astraweb.com>
From Ian Kelly <ian.g.kelly@gmail.com>
Date Mon, 2 Jun 2014 09:47:29 -0600
Subject Re: Obfuscated Python hack
To Python <python-list@python.org>
Content-Type text/plain; charset=UTF-8
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.15
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.10562.1401724099.18130.python-list@python.org> (permalink)
Lines 21
NNTP-Posting-Host 2001:888:2000:d::a6
X-Trace 1401724099 news.xs4all.nl 2959 [2001:888:2000:d::a6]:33597
X-Complaints-To abuse@xs4all.nl
Xref csiph.com comp.lang.python:72418

Show key headers only | View raw


On Mon, Jun 2, 2014 at 9:38 AM, Steven D'Aprano
<steve+comp.lang.python@pearwood.info> wrote:
> On Mon, 02 Jun 2014 23:23:53 +1000, Chris Angelico wrote:
>
>> On Mon, Jun 2, 2014 at 10:27 PM, Tim Chase
>> <python.list@tim.thechases.com> wrote:
>>> Stripping off the exec() call makes it pretty transparent that you're
>>> attempting (successfully on some platforms) to set the value of "4" to
>>> "5".  But a cute hack.
>>
>> And not on Windows inside IDLE, where attempting to use 4 results in a
>> ===== RESTART ===== crash.
>
> Sounds like a bug in IDLE.
>
> What happens if you try it in Windows without IDLE, just using the
> standard interactive interpreter?

Actually, probably a 32/64-bit issue.  The code as supplied caused a
segfault on my 64-bit Linux install.  I had to change the offset to 16
to see it work.

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


Thread

Obfuscated Python hack Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-02 12:11 +0000
  Re: Obfuscated Python hack Tim Chase <python.list@tim.thechases.com> - 2014-06-02 07:27 -0500
    Re: Obfuscated Python hack Gregory Ewing <greg.ewing@canterbury.ac.nz> - 2014-06-03 17:40 +1200
  Re: Obfuscated Python hack Chris Angelico <rosuav@gmail.com> - 2014-06-02 23:23 +1000
    Re: Obfuscated Python hack Steven D'Aprano <steve+comp.lang.python@pearwood.info> - 2014-06-02 15:38 +0000
      Re: Obfuscated Python hack Ian Kelly <ian.g.kelly@gmail.com> - 2014-06-02 09:47 -0600
      Re: Obfuscated Python hack Chris Angelico <rosuav@gmail.com> - 2014-06-03 01:55 +1000
      Re: Obfuscated Python hack Chris Angelico <rosuav@gmail.com> - 2014-06-03 01:56 +1000

csiph-web