小毛

一个很垃圾的脚本
import os print(" =========================...
扫描右侧二维码阅读全文
18
2019/07

一个很垃圾的脚本

import os


print("        =================================================")
print("                                                         ")
print("                    APP-backup-CheckList(Android)        ")
print("                                                         ")
print("                         Author : 小毛                   ")
print("                                                         ")
print("                   Join US : www.ianquan.org.cn          ")
print("                                                         ")
print("        =================================================")

get_cwd = os.getcwd()
b = r'java -jar tools/AXMLPrinter3.jar {}  > {}{}'.format("AndroidManifest.xml",get_cwd,"\AndroidManifest.txt")
os.system(b)
class app_ceshi():
    def app_get_backup():
        with open("AndroidManifest.txt","r+",encoding="utf-8") as f:
            get_backup=f.read()
            if 'android:allowBackup="true"' in get_backup:
                print('android:allowBackup="True"')
                print("存在任意数据备份漏洞\n")
            elif 'android:allowBackup="Flase"' in get_backup:
                print('android:allowBackup="Flase"')
                print("不存在任意数据备份漏洞\n")
            else:
                print("未找到android:allowBackup字段")
        c = input("输入任意字符退出:")
ceshi_shuru = input("请输入你要测试的内容:\n1:测试数据备份漏洞\n2:退出:\n")
if ceshi_shuru=="1":
    shili = app_ceshi()
    app_ceshi.app_get_backup()
else:
    print("输入错误,退出")
#主函数,定义工具位置

脚本效果、.png

Last modification:July 18th, 2019 at 03:36 pm
如果觉得我的文章对你有用,请随意赞赏

Leave a Comment