|
|
|
@ -17,7 +17,7 @@ def cli(): |
|
|
|
|
@cli.command(help="Get the key information of Android system.") |
|
|
|
|
@click.option("-i", "--inputs", required=True, type=str, help="Input APK file or DEX directory.") |
|
|
|
|
@click.option("-r", "--rules", required=False, type=str, default="", help="Add regular search rule.") |
|
|
|
|
@click.option("-s", "--net-sniffer", is_flag=True, default=False, help="Whether to enable network sniffing.") |
|
|
|
|
@click.option("-s", "--net-sniffer", is_flag=True, default=True, help="Whether to enable network sniffing.") |
|
|
|
|
@click.option("-n", '--no-resource', is_flag=True, default=False,help="Ignore resource files.") |
|
|
|
|
@click.option("-p", '--package',required=False,type=str,default="",help="Specifies the retrieval package name.") |
|
|
|
|
@click.option("-a", '--all-str',is_flag=True, default=False,help="Output all strings.") |
|
|
|
@ -36,7 +36,7 @@ def android(inputs: str, rules: str, net_sniffer: bool,no_resource:bool,package: |
|
|
|
|
@cli.command(help="Get the key information of iOS system.") |
|
|
|
|
@click.option("-i", "--inputs", required=True, type=str, help="Input IPA file or ELF file.") |
|
|
|
|
@click.option("-r", "--rules", required=False, type=str, default="", help="Add regular search rule.") |
|
|
|
|
@click.option("-s", "--net-sniffer", is_flag=True, default=False, help="Whether to enable network sniffing.") |
|
|
|
|
@click.option("-s", "--net-sniffer", is_flag=True, default=True, help="Whether to enable network sniffing.") |
|
|
|
|
@click.option("-n", '--no-resource', is_flag=True, default=False,help="Ignore resource files.") |
|
|
|
|
@click.option("-a", '--all-str',is_flag=True, default=False,help="Output all strings.") |
|
|
|
|
@click.option("-t", '--threads',required=False, type=int,default=10,help="Set the number of threads to 10 by default") |
|
|
|
@ -57,16 +57,14 @@ def ios(inputs: str, rules: str, net_sniffer: bool,no_resource:bool,all_str:bool |
|
|
|
|
@click.option("-r", "--rules", required=False, type=str, default="", help="Add regular search rule.") |
|
|
|
|
@click.option("-a", '--all-str',is_flag=True, default=False,help="Output all strings.") |
|
|
|
|
@click.option("-t", '--threads',required=False, type=int,default=10,help="Set the number of threads to 10 by default") |
|
|
|
|
def web(inputs: str, rules: str, all_str:bool,threads:int) -> None: |
|
|
|
|
@click.option("-s", "--net-sniffer", is_flag=True, default=True, help="Whether to enable network sniffing.") |
|
|
|
|
def web(inputs: str, rules: str, all_str:bool,threads:int,net_sniffer) -> None: |
|
|
|
|
try: |
|
|
|
|
# 初始化全局对象 |
|
|
|
|
bootstrapper = Bootstrapper(__file__) |
|
|
|
|
bootstrapper.init() |
|
|
|
|
|
|
|
|
|
BaseTask("Web", inputs, rules,all_str, threads).start() |
|
|
|
|
|
|
|
|
|
# task = WebTask(input, rules,all,threads) |
|
|
|
|
# task.start() |
|
|
|
|
BaseTask("Web", inputs, rules,all_str, net_sniffer,threads).start() |
|
|
|
|
|
|
|
|
|
except Exception as e: |
|
|
|
|
raise e |
|
|
|
|