命令行添加保存info信息到json文件选项
This commit is contained in:
parent
9e5c1902af
commit
bf55ec5e31
@ -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
|
||||
|
@ -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 []
|
||||
|
Loading…
Reference in New Issue
Block a user