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


Groups > comp.lang.python > #109154

Re: Strange Python related errors for androwarn.py. Please help!

Path csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail
From Sean Son <linuxmailinglistsemail@gmail.com>
Newsgroups comp.lang.python
Subject Re: Strange Python related errors for androwarn.py. Please help!
Date Thu, 26 May 2016 13:25:43 -0400
Lines 87
Message-ID <mailman.10.1464283551.2277.python-list@python.org> (permalink)
References <CAOKpjz84NvMxLbVKovDQW=f5NXQLUfJUw3PWggTRH50oPmZMzw@mail.gmail.com> <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> <CAOKpjz8eddsotG_WSU=UFsLQkUDTMF+O5qFjupGJ63QrY9UTPw@mail.gmail.com> <CAOKpjz9VVvLrJ9ueMi6Hh08-mXSHhA4NhHNHFW3aCfkrmP-uJg@mail.gmail.com>
Mime-Version 1.0
Content-Type text/plain; charset=UTF-8
X-Trace news.uni-berlin.de 2qe8MNm8aLqy/Aa1+dDWTALLl/BAoj13+jIXQpWqFRhQ==
Return-Path <linuxmailinglistsemail@gmail.com>
X-Original-To python-list@python.org
Delivered-To python-list@mail.python.org
X-Spam-Status OK 0.001
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; '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; '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; '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; 'test': 0.39; 'data': 0.39; 'from:': 0.39; 'url:mail': 0.40; 'called': 0.40; 'son': 0.61; 'skip:u 10': 0.61; '&amp;': 0.61; 'skip:n 10': 0.62; 'here': 0.66; 'subject:. ': 0.67; 'url:10': 0.79; '257': 0.84; 'received,': 0.84; 'tasked': 0.84; 'url:master': 0.84; 'absolutely': 0.88; 'dating': 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=G3rC15Xbfp9AClvxf79RR8qEJAC0pNke4VmnhBCfxjk=; b=0c8o80frqtuvkbwhXtQ3fwvxiSIYwMdzkck1H8vuseiPRd8y/2lDnTAowRSCnuHsF1 DDmFsN5WZKAHVpNE/YItLjHwwR8E258IJ4hOMQw484ZIQ9xh16MscDfOxDlJbR2fKS0P kY4wD+wwkMQI8OTuqF3wi13ry4f71dzCrN4OJ6o2qYaV/mSioNB9mm8b+lgBffJ1tw05 jHhW4F96dGaC+ZaCRLM+DByJH1RQTVwNqI0gTReWx1+LkIQPQ0iYGl9kz6mSR3t7b7fp vKy5ThDLKVbQ7QoYT4XWiy56S4+7W77cuA3VUC01fvp2oSDS5v8AzOEwrVdiCHAtjExC XzFw==
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=G3rC15Xbfp9AClvxf79RR8qEJAC0pNke4VmnhBCfxjk=; b=ekCtTYRQF/G/2EAXK3vS1ZuvU0lHf6CLreDoL3a0Y3d9eiMP3Tjd7hTscD5ZZI9VCJ OgFlXkdoWrSBFLtc72KudLeEOQdCxVMLBHBRT5WBJ6h/2tdGym49irs+PG1UIUasmCNS tMc23sGrfkwblzchkltZj76cNRaPAYv6z0fUKLRZtT58zmeaP2csx9O535/4rywTYtCZ amOkAPzzxI/b8fWmLOyKUsL/Tl9EJPFzYsy/7pBc2rr/poTll12EyD1utmruUJCNKM8L 9IP2/q3ZjjGTA99LnoF0VobiWueP38bRbQ2gF4fIgqBOp6V40ZRmmsVfTaOxUH7Q17+Q 63hg==
X-Gm-Message-State ALyK8tL4Y/geo+TbbsIsBsvq/Tv1p82/ppNI8oFkeqb450uSIoOcS6ayuIXFzT+3VvHo69vjVwdmB6nfZ3xkfg==
X-Received by 10.176.3.20 with SMTP id 20mr6307413uat.102.1464283543217; Thu, 26 May 2016 10:25:43 -0700 (PDT)
In-Reply-To <CAOKpjz8eddsotG_WSU=UFsLQkUDTMF+O5qFjupGJ63QrY9UTPw@mail.gmail.com>
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 <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>
X-Mailman-Original-Message-ID <CAOKpjz9VVvLrJ9ueMi6Hh08-mXSHhA4NhHNHFW3aCfkrmP-uJg@mail.gmail.com>
X-Mailman-Original-References <CAOKpjz84NvMxLbVKovDQW=f5NXQLUfJUw3PWggTRH50oPmZMzw@mail.gmail.com> <64b92fce-be57-c7ec-3be9-8a5272035b80@mrabarnett.plus.com> <CAOKpjz8eddsotG_WSU=UFsLQkUDTMF+O5qFjupGJ63QrY9UTPw@mail.gmail.com>
Xref csiph.com comp.lang.python:109154

Show key headers only | View raw


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 <python@mrabarnett.plus.com> 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 <module>
>>>     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
>>
>
>

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


Thread

Re: Strange Python related errors for androwarn.py. Please help! Sean Son <linuxmailinglistsemail@gmail.com> - 2016-05-26 13:25 -0400

csiph-web