def run(web_file_path: str = ''): """ fwpf Search writable php files from target system. eg: fwpf {web_file_path=webroot} """ web_file_path = web_file_path if (len(web_file_path)) else gget( "webshell.root", "webshell") php = get_php(web_file_path) res = send(php) if (not res): return file_tree = res.r_json print_tree(web_file_path, file_tree)
def run(web_file_path: str = "/var"): """ fl Search log file (access.log,error.log) from target system. eg: fl {web_file_path="/var"} """ php = get_php(web_file_path) try: res = send(php) if (not res): return file_tree = res.r_json() except JSONDecodeError: print(color.red("Parse Error")) return print_tree(web_file_path, file_tree)
def run(web_file_path: str = ''): """ fwpf Search writable php files from target system. eg: fwpf {web_file_path=webroot} """ web_file_path = web_file_path if (len(web_file_path)) else gget("webshell.root", "webshell") php = get_php(web_file_path) try: res = send(php) if (not res): return file_tree = res.r_json() except JSONDecodeError: print(color.red("Parse Error")) return print_tree(web_file_path, file_tree)
def run(web_file_path: str = ""): """ fc Search config file from target system. eg: fc {web_file_path=webroot} """ web_file_path = web_file_path if (len(web_file_path)) else gget( "webshell.root", "webshell") php = get_php(web_file_path) try: res = send(php) if (not res): return file_tree = res.r_json except JSONDecodeError: print(color.red("Null Error")) return print_tree(web_file_path, file_tree)