From bf55ec5e318faee439fa1ef4016b274146551b4b Mon Sep 17 00:00:00 2001 From: xaoyaoo Date: Tue, 2 Jan 2024 10:45:52 +0800 Subject: [PATCH] =?UTF-8?q?=E5=91=BD=E4=BB=A4=E8=A1=8C=E6=B7=BB=E5=8A=A0?= =?UTF-8?q?=E4=BF=9D=E5=AD=98info=E4=BF=A1=E6=81=AF=E5=88=B0json=E6=96=87?= =?UTF-8?q?=E4=BB=B6=E9=80=89=E9=A1=B9?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pywxdump/cli.py | 4 ---- pywxdump/wx_info/get_wx_info.py | 1 + 2 files changed, 1 insertion(+), 4 deletions(-) diff --git a/pywxdump/cli.py b/pywxdump/cli.py index 93d4709..8b47806 100644 --- a/pywxdump/cli.py +++ b/pywxdump/cli.py @@ -39,10 +39,6 @@ class MainBiasAddr(): return sb_bias_addr def run(self, args): - # 判断是否至少输入一个参数 - # if not args.key and not args.db_path: - # self.sb_bias_addr.error("必须至少指定 --key 或 --db_path 参数中的一个") - # 从命令行参数获取值 mobile = args.mobile name = args.name diff --git a/pywxdump/wx_info/get_wx_info.py b/pywxdump/wx_info/get_wx_info.py index 024fa15..892431e 100644 --- a/pywxdump/wx_info/get_wx_info.py +++ b/pywxdump/wx_info/get_wx_info.py @@ -208,6 +208,7 @@ def read_info(version_list: dict, is_logging: bool = False, save_path: str = Non print(f"[+] {k:>8}: {v}") print(end="-" * 32 + "\n" if i != len(result) - 1 else "") print("=" * 32) + if save_path: try: infos = json.load(open(save_path, "r", encoding="utf-8")) if os.path.exists(save_path) else []