Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

对issues#8问题进行修改 #9

Open
wants to merge 3 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions AndroidCodeCheck.py
Original file line number Diff line number Diff line change
Expand Up @@ -163,7 +163,7 @@ def fastScanEngine(self,task):
crawlresult=aic.Micrawler(packageName)
developer=crawlresult.get('developer')
classify=crawlresult.get('classify')
apkname=os.popen("lib/aapt2 dump badging %s |grep application-label:" % filepath).read().replace("\n","").split(":")[1].replace("'","")
apkname=os.popen("lib/aapt2 dump badging %s |grep application-label:" % filepath).read().replace("\n","").split(":")[0].replace("'","")
donwloads=crawlresult.get('downloads')
history=crawlresult.get('history')
apkfrom=crawlresult.get('from')
Expand Down Expand Up @@ -291,4 +291,4 @@ def startprocess(**kwargs):


if __name__ == '__main__':
startprocess()
startprocess()
6 changes: 3 additions & 3 deletions plugin/manifestAnalysis.py
Original file line number Diff line number Diff line change
Expand Up @@ -34,15 +34,15 @@ def getVersion(self,root):
def getUsesPermission(self, node):
if node.nodeName == "uses-permission":
self.permissionList.append(node.getAttribute('android:name'))
logging.info("- [VulScanEngine] " + "申请的权限名为:" + node.getAttribute('android:name').encode("utf-8"))
logging.info("- [VulScanEngine] " + "申请的权限名为:" + str(node.getAttribute('android:name').encode("utf-8")))
# return node.getAttribute('android:name')
#
# 获得应用自定义权限:权限名,保护级别
# @param node xmlnode
def getPermission(self, node):
if node.nodeName == "permission":
logging.info("- [VulScanEngine] " + "自定义权限名:" + node.getAttribute('android:name').encode("utf-8"))
logging.info("- [VulScanEngine] " + "保护级别为:" + node.getAttribute('android:protectionLevel').encode("utf-8"))
logging.info("- [VulScanEngine] " + "自定义权限名:" + str(node.getAttribute('android:name').encode("utf-8")))
logging.info("- [VulScanEngine] " + "保护级别为:" + str(node.getAttribute('android:protectionLevel').encode("utf-8")))

# return node.getAttribute('android:name')
#
Expand Down
8 changes: 8 additions & 0 deletions requirements.txt
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
certifi
charset-normalizer
click
idna
json2html
lxml
requests
urllib3