Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Sean Son Newsgroups: comp.lang.python Subject: Re: Strange Python related errors for androwarn.py. Please help! Date: Thu, 26 May 2016 13:31:05 -0400 Lines: 107 Message-ID: References: <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de ZY6gXxuA3Rvz2FrY/VdrrgmlyE8zY0xDAN1jemLTljxA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.002 X-Spam-Evidence: '*H*': 1.00; '*S*': 0.00; 'subject:Python': 0.05; 'mrab': 0.05; 'valueerror:': 0.07; 'subject:help': 0.07; 'cc:addr :python-list': 0.09; 'scripts': 0.09; 'errors:': 0.09; 'issue:': 0.09; 'literal': 0.09; 'skip:" 80': 0.09; 'subject:related': 0.09; 'subject:skip:a 10': 0.09; 'url:github': 0.09; 'python': 0.10; 'causing': 0.13; 'thu,': 0.15; '2014': 0.16; '2016': 0.16; '24,': 0.16; 'appreciated!': 0.16; 'received:io': 0.16; 'received:psf.io': 0.16; 'url:issues': 0.16; 'url:py': 0.16; 'wrote:': 0.16; '>>>': 0.20; 'developer': 0.20; 'cc:2**0': 0.20; 'cc:addr:python.org': 0.20; 'skip:" 40': 0.20; 'fix': 0.21; 'fixing': 0.22; 'sean': 0.22; 'cc:no real name:2**0': 0.22; 'dec': 0.23; '(most': 0.24; 'downloaded': 0.24; 'header:In-Reply-To:1': 0.24; 'script': 0.25; 'testing': 0.25; 'error': 0.27; 'message- id:@mail.gmail.com': 0.27; 'idea': 0.28; 'looks': 0.29; 'url:wiki': 0.30; 'url:mailman': 0.30; 'skip:g 30': 0.30; 'error.': 0.31; 'skip:s 30': 0.31; 'anyone': 0.32; 'url:python': 0.33; 'flags': 0.33; 'hopefully': 0.33; 'traceback': 0.33; 'url:listinfo': 0.34; "skip:' 20": 0.34; 'tue,': 0.34; 'file': 0.34; 'skip:d 20': 0.34; 'skip:& 20': 0.35; 'received:google.com': 0.35; 'skip:" 50': 0.35; 'skip:& 60': 0.35; 'reply.': 0.35; 'but': 0.36; 'should': 0.36; 'url:org': 0.36; 'received:209.85': 0.36; 'pm,': 0.36; 'subject:: ': 0.37; 'skip:& 10': 0.37; 'thanks': 0.37; 'received:209.85.213': 0.37; 'skip:5 10': 0.37; 'guys': 0.38; 'received:209': 0.38; 'loss': 0.38; 'skip:p 20': 0.38; 'thank': 0.38; 'test': 0.39; 'data': 0.39; 'from:': 0.39; 'url:mail': 0.40; 'called': 0.40; 'son': 0.61; 'skip:u 10': 0.61; '&': 0.61; 'skip:n 10': 0.62; 'here': 0.66; 'subject:. ': 0.67; '26,': 0.72; 'url:10': 0.79; 'url:search': 0.83; '257': 0.84; 'me!': 0.84; 'received,': 0.84; 'tasked': 0.84; 'url:analysis': 0.84; 'url:master': 0.84; 'absolutely': 0.88; 'dating': 0.91; 'messages:': 0.91 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:to :cc; bh=Aij+0TZ/Y5doPgTPhCIW7rBmQ74NwkKyMRD9VSftcs8=; b=PQXOmHqn0fj14ZucoP7rUS0SMyj29L9ry3/MUKwekEnV7CQMpf1Z9CbGT1Wb8OBpFx NAgxi/SOTvZo4tdBmwAVNk/c9npVqiYN3mUMLNqEUP//4epLFGBMksvu5C6NTfgE8BJW N69ErwDhnMq91XpJov6BfTqVpYHpc8byTb/EKhndbzxWEvVoejrHfNnlFcs0vmauhwc9 0+U30qNcRweFuesUAV5bRzM2kvHYx4r60QY8i8F35f8ag05+plE9cpixrpoGJvUDJDSX sNBcLCkLsLR26iYx6A2Q8az+skcMxRr2U3PBg9dFUUaTZE+ky+4spqBfXGA2km/nTLok Fxew== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:in-reply-to:references:date :message-id:subject:from:to:cc; bh=Aij+0TZ/Y5doPgTPhCIW7rBmQ74NwkKyMRD9VSftcs8=; b=bU/aNm6UpNzH4E9/Vb4rAHPiID4wVuRpTGlRyJvLOdCmVcA9UnPtMVQL+TzOIJmLlu 0RPdXLgwwW/vDZUuGIftf7qLVGECNsQtMz9LQ9fELlBXYcP9a14AsP4cXzLrM0k9ol3R 6ZxJ36Us5AlDoZA7DCJAFQYkU+EKJvDOGUAlMgritzcw+1ftmT+1qEC+Xj4jvpkBBe/i yuAnfKfABZ4SDQ1j3yB0qSRCuFD4KvB+ogE071Uqt5V9SkEL8+6NNRlj/IIvUK7yu5E7 bOcUFGhp+0rhLF5gQjoftOBgiSoDJ4JM2KIdAKizWhVO5mAlbVBPVKiAL3YWix6ZrwY2 ey7g== X-Gm-Message-State: ALyK8tL9KUrF+pCSkB2dUjTZ9tv0DYMwLhJVdixQZJl3akXJ7+qvAkePLAPJ2r/C5RhnUCYPtQi0L16s1yOPsQ== X-Received: by 10.159.55.142 with SMTP id q14mr1882575uaq.16.1464283865205; Thu, 26 May 2016 10:31:05 -0700 (PDT) In-Reply-To: X-Content-Filtered-By: Mailman/MimeDel 2.1.22 X-BeenThere: python-list@python.org X-Mailman-Version: 2.1.22 Precedence: list List-Id: General discussion list for the Python programming language List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-Mailman-Original-Message-ID: X-Mailman-Original-References: <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> Xref: csiph.com comp.lang.python:109155 Here are the links to the other scripts mentioned in the error messages: https://github.com/maaaaz/androwarn/blob/master/androwarn/search/malicious_behaviours/device_settings.py https://github.com/maaaaz/androwarn/blob/master/androwarn/analysis/analysis.py and the main androwarn.py script: https://github.com/maaaaz/androwarn/blob/master/androwarn.py Hopefully those help in any troubleshooting steps that you all recommend to me! Thank you! On Thu, May 26, 2016 at 1:25 PM, Sean Son wrote: > Hello all > > From what I can tell from the error message that I received, line 257 of > the util.py script is causing the error. Here is a link to this script: > > https://github.com/maaaaz/androwarn/blob/master/androwarn/util/util.py > > I am not a python developer myself, unfortunately, so I have no idea how I > should fix this error. All help is greaaaaaaaaaaaaaaaaatly appreciated! > > Thanks > > On Tue, May 24, 2016 at 3:46 PM, Sean Son < > linuxmailinglistsemail@gmail.com> wrote: > >> Thanks for the reply. >> >> Looks like I am screwed on this one lol >> >> On Tue, May 24, 2016 at 3:31 PM, MRAB wrote: >> >>> On 2016-05-24 20:04, Sean Son wrote: >>> >>>> hello all >>>> >>>> I am testing out a script called androwarn.py, which I downloaded from: >>>> >>>> https://github.com/maaaaz/androwarn >>>> >>>> using the instructions found on: >>>> >>>> https://github.com/maaaaz/androwarn/wiki/Installation >>>> >>>> When I ran the following commands to test the APK for AirBNB: >>>> >>>> >>>> python androwarn.py -i SampleApplication/bin/"Airbnb 5.19.0.apk" -v 3 >>>> -r >>>> html -n >>>> >>>> >>>> I received the following errors: >>>> >>>> Traceback (most recent call last): >>>> File "androwarn.py", line 116, in >>>> main(options, arguments) >>>> File "androwarn.py", line 99, in main >>>> data = perform_analysis(APK_FILE, a, d, x, no_connection) >>>> File "/home/dost/androwarn/androwarn/analysis/analysis.py", line 115, >>>> in >>>> perform_analysis >>>> ( 'device_settings_harvesting', >>>> gather_device_settings_harvesting(x) ), >>>> File >>>> >>>> "/home/dost/androwarn/androwarn/search/malicious_behaviours/device_settings.py", >>>> line 96, in gather_device_settings_harvesting >>>> result.extend( detect_get_package_info(x) ) >>>> File >>>> >>>> "/home/dost/androwarn/androwarn/search/malicious_behaviours/device_settings.py", >>>> line 79, in detect_get_package_info >>>> flags = recover_bitwise_flag_settings(flag, >>>> PackageManager_PackageInfo) >>>> File "/home/dost/androwarn/androwarn/util/util.py", line 257, in >>>> recover_bitwise_flag_settings >>>> if (int(flag) & option_value) == option_value : >>>> ValueError: invalid literal for int() with base 10: >>>> >>>> 'Lcom/google/android/gms/common/GooglePlayServicesUtil;->zzad(Landroid/content/Context;)V' >>>> >>>> >>>> I am absolutely at a loss as to how I should fix these errors? Anyone >>>> have >>>> any ideas? Sorry for just throwing this at you guys without warning, but >>>> Ive been tasked with fixing this at work and I need assistance please! >>>> >>>> It looks like this issue: >>> >>> https://github.com/maaaaz/androwarn/issues/10 >>> >>> dating from 11 Dec 2014 and as yet unanswered. >>> >>> -- >>> https://mail.python.org/mailman/listinfo/python-list >>> >> >> >