\x89PNG\r\n\x1a\n\x00\x00\x00\x0DIHDR\x00\x00\x00\x01\x00 \x00\x00\x01\x08\x06\x00\x00\x00\x1F\x15\xC4\x89\x00\x00\x00 \x0AIDATx\x9Ccb\x00\x00\x00\x06\x00\x03\x1A\x05\x9D\x00\x00 \x00\x00IEND\xAE\x42\x60\x82
| Path : /tmp/ |
|
B-Con CMD Config cPanel C-Rdp D-Log Info Jump Mass Ransom Symlink vHost Zone-H |
| Current File : //tmp/fix2.py |
with open('/root/email-ai/obmailai.py', 'r') as f:
code = f.read()
old = " cs = part.get_content_charset() or \"utf-8\"\n decoded = payload.decode(cs, errors=\"replace\")"
new = " cs = (part.get_content_charset() or \"utf-8\").strip('\"\\' ').split('=')[-1].strip('\"\\' ') or \"utf-8\"\n decoded = payload.decode(cs, errors=\"replace\")"
old2 = " cs = msg.get_content_charset() or \"utf-8\"\n decoded = payload.decode(cs, errors=\"replace\")"
new2 = " cs = (msg.get_content_charset() or \"utf-8\").strip('\"\\' ').split('=')[-1].strip('\"\\' ') or \"utf-8\"\n decoded = payload.decode(cs, errors=\"replace\")"
code = code.replace(old, new)
code = code.replace(old2, new2)
with open('/root/email-ai/obmailai.py', 'w') as f:
f.write(code)
print("OK")