def android(inputs: str, rules: str, sniffer: bool, no_resource: bool, all: bool, threads: int, output, package: str) -> None: try: bootstrapper = Bootstrapper(__file__, output, all, no_resource) bootstrapper.init() BaseTask("Android", inputs, rules, sniffer, threads, package).start() except Exception as e: raise e
def web(inputs: str, rules: str, sniffer: bool, no_resource: bool, all: bool, threads: int, output: str) -> None: try: bootstrapper = Bootstrapper(__file__, output, all, no_resource) bootstrapper.init() BaseTask("Web", inputs, rules, sniffer, threads).start() except Exception as e: raise e
def web(input: str, rules: str, all: bool, threads: int) -> None: try: # 初始化全局对象 bootstrapper = Bootstrapper(__file__) bootstrapper.init() task = WebTask(input, rules, all, threads) # 让内层代码直接抛出异常,不做rollback。 task.start() except Exception as e: raise e
def wechat(user_name: str, password: str, cookie: str, name: str, website_url: str, threads:str, out_path:str) -> None: try: # 初始化全局对象 bootstrapper = Bootstrapper(__file__,out_path) out_dir = bootstrapper.init("wechat") task = WechatTask(user_name, password, cookie,name,website_url,threads,out_dir) task.start() except Exception as e: raise e log.error(e)
def android(inputs: str, rules: str, net_sniffer: bool, no_resource: bool, package: str, all_str: bool, threads: int) -> None: try: # 初始化全局对象 bootstrapper = Bootstrapper(__file__) bootstrapper.init() BaseTask("Android", inputs, rules, net_sniffer, no_resource, package, all_str, threads).start() except Exception as e: raise e
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, net_sniffer, threads).start() except Exception as e: raise e
def ios(input: str, rules: str, net_sniffer: bool, no_resource: bool, all: bool, threads: int) -> None: try: # 初始化全局对象 bootstrapper = Bootstrapper(__file__) bootstrapper.init() task = iOSTask(input, rules, net_sniffer, no_resource, all, threads) # 让内层代码直接抛出异常,不做rollback。 task.start() except Exception as e: raise e
def wechat(uname: str, password: str, cookie: str, name: str, website_url: str, threads: str, out_path: str) -> None: try: # 初始化全局对象 bootstrapper = Bootstrapper(__file__) bootstrapper.init() task = WechatTask(uname, password, cookie, name, website_url, threads, out_path) task.start() except Exception as e: raise e