Exploit databaseDownload repository ZIP
GH-afc1f11133bb173630b28ae37369ffe9
r0rt1z2/automatedroot
Sources for CVE-2020-0069
4 sourcesPreferred order: Exploit-DB, Metasploit, then GitHub repositories by stars.
Repository files6
r0rt1z2/automatedrootRevision 134b1a527c49
Files from this repository share one source choice. Supporting files may cover other vulnerabilities.
automated_root/utils/logger.py
Python · 392 bytesimport datetime
LOGGING_LEVELS = {
"-1": "[U]", # Unknown (Default)
"0": "[I]", # Info
"1": "[W]", # Warning
"2": "[E]", # Error
"3": "[F]", # Fatal Error
"4": "[D]", # Debug
"5": "[V]", # Verbose
}
def log(buf, prio=0):
print(f"{LOGGING_LEVELS.get(prio, LOGGING_LEVELS[str(prio)])}: {buf}")
def die(msg, ecl):
log(f"{msg}\n", ecl)
exit(ecl)