def init(root, cmdline): cinit(autoreset=True) banner() _set_path(root) _init_conf() _merge_options(cmdline) _set_conf() _init_kb() _init_plugins() patch_all()
def init(root, cmdline): cinit(autoreset=True) setPaths(root) banner() _init_conf() # 从config.py读取配置信息 _merge_options(cmdline) # 从cmdline读取配置 _set_conf() initKb() initPlugins() _init_stdout() patch_all()
def init(root, cmdline): # 一个命令行输入彩色文字的模块 cinit(autoreset=True) # 设置各种目录变量 setPaths(root) banner() _init_conf() # 从config.py读取配置信息 # 将命令行中的参数合并进 lib.core.data.conf AttribDict _merge_options(cmdline) # 从cmdline读取配置 # 配置监听接口和 代理 _set_conf() initKb() # 初始化插件 initPlugins() _init_stdout() patch_all()
to functions (and would be classes that aren't present here). Email: [email protected] GitHub: https://github.com/users/JoshuaRoseGithub """ # Random is a module that allows random selections of variables and numbers import random # Colorama is a color module for the console from colorama import Fore, init as cinit # Define author for credibility purposes __author__ = "Joshua Rose" # Initialize the colorama module (allows color as a unicode console feature) cinit() # Choose the number def choose(): """ Function that chooses a number between 1 and 100""" return random.randint(1, 100) def main(): """ The main program""" # Set a variable to a random number (see line 9) number = choose() # Return the following message print(Fore.MAGENTA + "\nGuess a number between the range of 1 & 100 -->" +
@app.route('/pushall', methods=['POST']) def push_all(): nopass = rq.get_data().decode() if nopass != spass: return 'Error :(' for muid in rid: rid[muid] = 'Scan' return 'Success' @app.route('/pcli', methods=['POST']) def print_clients(): tmp = [] nopass = rq.get_data().decode() if nopass != spass: return 'Error :(' for muid in rid: tmp.append(muid) print('|||'.join(tmp)) return '|||'.join(tmp) ### Pages for server console ### if __name__ == '__main__': cinit(strip=not sys.stdout.isatty()) print('') cprint(figlet_format(' DetExploit'), 'red', attrs=['bold'], end='') main()
def __init__(self): cinit()