def reset(): global fname global default_cfg if not os.path.isfile(fname): os.system("apt-get install openssh-server -y") sfile.set(fname, default_cfg) os.system("service ssh restart")
def fix(): global fname global ideal_cfg if not os.path.isfile(fname): os.system("apt-get install openssh-server -y") sfile.set(fname, ideal_cfg) os.system("service ssh restart")
def reset(): global fname if not os.path.isfile(fname): os.system("apt-get install openssh-server -y") sfile.set(fname, {"PermitRootLogin": "******"})
def fix(): global fname if not os.path.isfile(fname): os.system("apt-get install openssh-server -y") sfile.set(fname, {"PermitRootLogin": "******"})
def reset(): if os.path.isfile(fname): sfile.set(fname, poor_cfg, delim=" = ")
def fix(): sfile.verifyInstall("auditd") sfile.set(fname, ideal_cfg, delim=" = ")