@click.group(help="Python script for automatically retrieving key information in app.")
@click.group(help="Python script for automatically retrieving key information in app.")
defcli():
defcli():
pass
pass
# 创建Android任务
# 创建Android任务
@cli.command(help="Get the key information of Android system.")
@cli.command(help="Get the key information of Android system.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter the APK file or DEX file to be scanned or the corresponding APK download address.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter the APK file or DEX file to be scanned or the corresponding APK download address.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")
@click.option("-p",'--package',required=False,type=str,default="",help="Specifies the package name information that needs to be scanned.")
@click.option("-p",'--package',required=False,type=str,default="",help="Specifies the package name information that needs to be scanned.")
@cli.command(help="Get the key information of iOS system.")
@cli.command(help="Get the key information of iOS system.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter IPA file or ELF file to scan or corresponding IPA download address. App store is not supported at present.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter IPA file or ELF file to scan or corresponding IPA download address. App store is not supported at present.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")
@cli.command(help="Get the key information of Web system.")
@cli.command(help="Get the key information of Web system.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter the site directory or site file to scan or the corresponding site download address.")
@click.option("-i","--inputs",required=True,type=str,help="Please enter the site directory or site file to scan or the corresponding site download address.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-r","--rules",required=False,type=str,default="",help="Please enter a rule for temporary scanning of file contents.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-s","--sniffer",is_flag=True,default=False,help="Enable the network sniffer function. It is on by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-n",'--no-resource',is_flag=True,default=False,help="Ignore all resource files, including network sniffing. It is not enabled by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-a",'--all',is_flag=True,default=False,help="Output the string content that conforms to the scan rules.It is on by default.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-t",'--threads',required=False,type=int,default=10,help="Set the number of concurrency. The larger the concurrency, the faster the speed. The default value is 10.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")
@click.option("-o",'--output',required=False,type=str,default=None,help="Specify the result set output directory.")