Path: csiph.com!fu-berlin.de!uni-berlin.de!not-for-mail From: Sean Son Newsgroups: comp.lang.python Subject: Strange Python related errors for androwarn.py. Please help! Date: Tue, 24 May 2016 15:04:05 -0400 Lines: 46 Message-ID: References: Mime-Version: 1.0 Content-Type: text/plain; charset=UTF-8 X-Trace: news.uni-berlin.de mBmMTM3jrAax7OzjotGPVA2W6EtoqbhqmfG84n8WBAfA== Return-Path: X-Original-To: python-list@python.org Delivered-To: python-list@mail.python.org X-Spam-Status: OK 0.006 X-Spam-Evidence: '*H*': 0.99; '*S*': 0.00; 'subject:Python': 0.05; 'valueerror:': 0.07; 'subject:help': 0.07; 'errors:': 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; 'received:io': 0.16; 'received:psf.io': 0.16; 'skip:" 40': 0.20; 'fix': 0.21; 'fixing': 0.22; '(most': 0.24; 'downloaded': 0.24; 'script': 0.25; 'testing': 0.25; 'message-id:@mail.gmail.com': 0.27; "skip:' 70": 0.29; 'url:wiki': 0.30; 'skip:g 30': 0.30; 'skip:s 30': 0.31; 'anyone': 0.32; 'flags': 0.33; 'traceback': 0.33; "skip:' 20": 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; 'but': 0.36; 'should': 0.36; 'received:209.85': 0.36; 'to:addr:python-list': 0.36; 'skip:& 10': 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; 'to:addr:python.org': 0.40; 'called': 0.40; '&': 0.61; 'skip:n 10': 0.62; 'subject:. ': 0.67; 'tasked': 0.84; 'absolutely': 0.88 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:date:message-id:subject:from:to; bh=sjNKWsSK5Q7tQ4DHCg+5ahaTK80JQqLZap5UPxwlU7o=; b=sM+0Nq7sqAkn4VKimvca+iVkia9JjX4hlRwWke8C5NAjOXMGDX0JIvDgwUYupcO9YI 1m8RQEDTSJyceSMWscauntqL51LghLnfGgwgszqhLjYOb5BZErEXHrZfDybkpCxUxQ+X dbjsNo0/7QE/2UxqhPMuQwRa1Usc/f0ZbUATRod9V8jhTAR6UyU4ovTmEF2u/v/3xMio +xH0UBkWQ8H+3OO9pWbUhlnwirECi8WJo3SSTa/uwcf7TpjpLXmy/DdgG4Xq9mPR4vBc /Va+TGt5LgtYvHcgIHEoEH4XKpYZTllBpKvMEq7+PsIbBPViJAg/LMQtiLDKnk9SLZth lNWw== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:mime-version:date:message-id:subject:from:to; bh=sjNKWsSK5Q7tQ4DHCg+5ahaTK80JQqLZap5UPxwlU7o=; b=aFNGXkt5NwP2hTyVxT59e3J7ogZpWUATJJ324TyKMS4YmJIVkL6CIv8IIq72YSFxvq Qg2k4Z+ly+hKvm0L+PfPFAi0/NwTrdfGaCSJKPB/8RzgcXuskrCBmyiKa0XSmR3uiO8j bOWiFp5iAZKy5P7HlyldaqxNBObySs53bvbvoBvBQNoRLlGJhzcVflQgC+1vYJO/JtnQ kPYZCaZKFmjyuWFciY6wgSE/Q2Y+T6A1IJlqFYSe8vb7JDYsLNn9nWbZk7a2HEiwYsxX x790Zw4IKoW5o1yLJX3hq0/NP+CYIB/Rf/p/hfQ4XVZlVAQyuVIv8WxCxsj1sojTlwj1 ALyQ== X-Gm-Message-State: ALyK8tJLICIVYU7GAB0eVgpJETNONhPoh58+FzgHgBMKfw0XCgN3TJvU/8N4GVVO9KL2bZRPRu1uY/GRKnSwNQ== X-Received: by 10.176.3.20 with SMTP id 20mr3409202uat.102.1464116645818; Tue, 24 May 2016 12:04:05 -0700 (PDT) X-Mailman-Approved-At: Tue, 24 May 2016 15:13:30 -0400 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: Xref: csiph.com comp.lang.python:109084 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!