Closed Mili-NT closed 2 years ago
Added logging to file for better troubleshooting, preserved original format [%(levelname)s]:%(message)s
[%(levelname)s]:%(message)s
Swapped instances of format() to use fstrings for readability, as some of the format calls were convoluted:
"".join("%{0:0>2}".format(format(ord(char), "x")) for char in string)
"".join([f"%{ord(char):0>2x}" for char in string])
logging.info("Original file length: {}".format('{0:0{1}X}'.format(len(webshell_data),8)))
logging.info(f"Original file length: {len(webshell_data):08X}")
Added missing 'module launched' message for SMTP
Added logging to file for better troubleshooting, preserved original format
[%(levelname)s]:%(message)s
Swapped instances of format() to use fstrings for readability, as some of the format calls were convoluted:
"".join("%{0:0>2}".format(format(ord(char), "x")) for char in string)
=>"".join([f"%{ord(char):0>2x}" for char in string])
logging.info("Original file length: {}".format('{0:0{1}X}'.format(len(webshell_data),8)))
=>logging.info(f"Original file length: {len(webshell_data):08X}")
Added missing 'module launched' message for SMTP