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


Groups > comp.lang.python > #5036

Re: Finding the bitness of an arbitrary executable with Python

Path csiph.com!x330-a1.tempe.blueboxinc.net!aioe.org!feeder.news-service.com!xlned.com!feeder5.xlned.com!newsfeed.xs4all.nl!newsfeed6.news.xs4all.nl!xs4all!post.news.xs4all.nl!not-for-mail
Return-Path <bahamutzero8825@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.084
X-Spam-Evidence '*H*': 0.83; '*S*': 0.00; 'subject:Python': 0.04; 'received:192.168.1.3': 0.09; 'struct': 0.09; 'pm,': 0.11; 'wrote:': 0.14; 'complicated,': 0.16; 'code': 0.22; 'header:In- Reply-To:1': 0.22; 'work.': 0.27; "doesn't": 0.28; 'message- id:@gmail.com': 0.30; 'to:addr:python-list': 0.32; 'thank': 0.32; 'using': 0.34; 'received:192.168.1': 0.34; 'received:192': 0.34; 'header:User-Agent:1': 0.35; 'executable': 0.35; 'received:192.168': 0.37; 'received:209.85': 0.37; 'subject:with': 0.37; 'received:google.com': 0.38; 'but': 0.38; 'to:addr:python.org': 0.39; 'could': 0.39; 'received:209': 0.39; 'header:Received:5': 0.40; 'might': 0.40; 'you.': 0.61; 'soon.': 0.72; '04:10': 0.84; 'received:209.85.210.174': 0.84; 'received :mail-iy0-f174.google.com': 0.84; 'terribly': 0.84
DKIM-Signature v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:message-id:date:from:user-agent:mime-version:to :subject:references:in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; bh=OAj9qPqHQNSSok3Y71ubKEg3sQaGbTwBopO2/kNxTT4=; b=DLYMuUI4FXJMActWbT+m4CNglsEtsuH72R6nc1YVrXfVNoBEBFTgWmoHCAVHL8o9rt EBYPmpzl3FdxMN4tyKHFNrhNnhATemS0XYW8+N8H4DFMtcj8D5QOjmN/gsxuo19YnzKT XsVI0wWHdXYOh9K7OvMhRzrmD9mzARo9dNr+0=
DomainKey-Signature a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=message-id:date:from:user-agent:mime-version:to:subject:references :in-reply-to:x-enigmail-version:content-type :content-transfer-encoding; b=kfoB3GM+mf4li+iZvFoYxdYvCFfqqcZrL+wa7g9RF9mHqSm5OaxCnQFJxo9rx3G9og DmEXwGeUqZ+bCxs8kY15cCY3+XloYSt/gUEDEDBx8EzNRoUJBZvbHNcVwmNITFqs/GTe 1jgNEjRN8mUKag5Om6plLRfFD+7BZxWKiwEUk=
Date Mon, 09 May 2011 16:44:41 -0500
From Andrew Berg <bahamutzero8825@gmail.com>
User-Agent Mozilla/5.0 (Windows; U; Windows NT 6.1; en-US; rv:1.9.2.15) Gecko/20110303 Thunderbird/3.1.9 ThunderBrowse/3.3.5
MIME-Version 1.0
To python-list@python.org
Subject Re: Finding the bitness of an arbitrary executable with Python
References <mailman.1358.1304974381.9059.python-list@python.org> <4dc85842$0$81484$e4fe514c@news.xs4all.nl>
In-Reply-To <4dc85842$0$81484$e4fe514c@news.xs4all.nl>
X-Enigmail-Version 1.1.1
Content-Type text/plain; charset=ISO-8859-1
Content-Transfer-Encoding 7bit
X-BeenThere python-list@python.org
X-Mailman-Version 2.1.12
Precedence list
List-Id General discussion list for the Python programming language <python-list.python.org>
List-Unsubscribe <http://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 <http://mail.python.org/mailman/listinfo/python-list>, <mailto:python-list-request@python.org?subject=subscribe>
Newsgroups comp.lang.python
Message-ID <mailman.1361.1304977489.9059.python-list@python.org> (permalink)
Lines 6
NNTP-Posting-Host 82.94.164.166
X-Trace 1304977490 news.xs4all.nl 41110 [::ffff:82.94.164.166]:41733
X-Complaints-To abuse@xs4all.nl
Xref x330-a1.tempe.blueboxinc.net comp.lang.python:5036

Show key headers only | View raw


On 2011.05.09 04:10 PM, Irmen de Jong wrote:
> http://stackoverflow.com/questions/1345632/determine-if-an-executable-or-library-is-32-or-64-bits-on-windows
The code using struct doesn't look terribly complicated, so that could
work. I might need to inspect other executable types, but I don't see it
being any time soon.
Thank you.

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


Thread

Finding the bitness of an arbitrary executable with Python Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-09 15:52 -0500
  Re: Finding the bitness of an arbitrary executable with Python Richard Thomas <chardster@gmail.com> - 2011-05-09 14:02 -0700
  Re: Finding the bitness of an arbitrary executable with Python Irmen de Jong <irmen.NOSPAM@xs4all.nl> - 2011-05-09 23:10 +0200
    Re: Finding the bitness of an arbitrary executable with Python Andrew Berg <bahamutzero8825@gmail.com> - 2011-05-09 16:44 -0500

csiph-web