{"action":"closed","issue":{"url":"https://api.github.com/repos/AndroBugs/AndroBugs_Framework/issues/1","labels_url":"https://api.github.com/repos/AndroBugs/AndroBugs_Framework/issues/1/labels{/name}","comments_url":"https://api.github.com/repos/AndroBugs/AndroBugs_Framework/issues/1/comments","events_url":"https://api.github.com/repos/AndroBugs/AndroBugs_Framework/issues/1/events","html_url":"https://github.com/AndroBugs/AndroBugs_Framework/issues/1","id":118364142,"number":1,"title":"Error unpack requires string argument of length 4","user":{"login":"priscila225","id":458188,"avatar_url":"https://avatars.githubusercontent.com/u/458188?v=3","gravatar_id":"","url":"https://api.github.com/users/priscila225","html_url":"https://github.com/priscila225","followers_url":"https://api.github.com/users/priscila225/followers","following_url":"https://api.github.com/users/priscila225/following{/other_user}","gists_url":"https://api.github.com/users/priscila225/gists{/gist_id}","starred_url":"https://api.github.com/users/priscila225/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/priscila225/subscriptions","organizations_url":"https://api.github.com/users/priscila225/orgs","repos_url":"https://api.github.com/users/priscila225/repos","events_url":"https://api.github.com/users/priscila225/events{/privacy}","received_events_url":"https://api.github.com/users/priscila225/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":1,"created_at":"2015-11-23T11:40:02Z","updated_at":"2015-11-23T14:39:07Z","closed_at":"2015-11-23T14:39:07Z","body":"Hi,\r\nThe error occured when I was running the command line : \r\nAndroBugs_Framework-master$ **python androbugs.py -f /home/user/Test.apk**\r\n\r\nThis Error unpack requires string argument of length 4 appears, i think this is a zipfile.py issue (https://bugs.python.org/issue14315):\r\nFolder:  ./tools/modified/androguard/patch/zipfile.py: \r\n**Python version: 2.7.3**\r\n\r\nAlso, i found a **workaround** for this error by unpacking and repacking the APK using zip/unzip on Ubuntu.\r\n\r\nError log:\r\n*************************************************************************\r\n**   AndroBugs Framework - Android App Security Vulnerability Scanner  **\r\n**                            version: 1.0.0                           **\r\n**     author: Yu-Cheng Lin (@AndroBugs, http://www.AndroBugs.com)     **\r\n**               contact: androbugs.framework@gmail.com                **\r\n*************************************************************************\r\nTraceback (most recent call last):\r\n  File \"androbugs.py\", line 3576, in main\r\n    __analyze(writer, args)\r\n  File \"androbugs.py\", line 1062, in __analyze\r\n    a = apk.APK(apk_Path)\r\n  File \"/home/user/AndroBugs_Framework-master/tools/modified/androguard/core/bytecodes/apk.py\", line 189, in __init__\r\n    self.zip = zipfile.ZipFile(StringIO.StringIO(self.__raw), mode=mode)\r\n  File \"/usr/lib/python2.7/zipfile.py\", line 714, in __init__\r\n    self._GetContents()\r\n  File \"/usr/lib/python2.7/zipfile.py\", line 748, in _GetContents\r\n    self._RealGetContents()\r\n  File \"/usr/lib/python2.7/zipfile.py\", line 807, in _RealGetContents\r\n    x._decodeExtra()\r\n  File \"/usr/lib/python2.7/zipfile.py\", line 373, in _decodeExtra\r\n    tp, ln = unpack('<HH', extra[:4])\r\nerror: unpack requires a string argument of length 4"}}