Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]
Groups > comp.lang.python > #72420
| 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> <CALwzidmCjMLk7TrgY7J0H-_75fge_GyKJXgucc_Gs_mLRcQY2g@mail.gmail.com> |
|---|---|
| Date | 2014-06-03 01:56 +1000 |
| Subject | Re: Obfuscated Python hack |
| From | Chris Angelico <rosuav@gmail.com> |
| Newsgroups | comp.lang.python |
| Message-ID | <mailman.10564.1401724608.18130.python-list@python.org> (permalink) |
On Tue, Jun 3, 2014 at 1:47 AM, Ian Kelly <ian.g.kelly@gmail.com> wrote: > 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. My test was a 32-bit Python 2.7.4, for what it's worth. ChrisA
Back to comp.lang.python | Previous | Next — Previous in thread | Find similar | Unroll 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