Answer the question
In order to leave comments, you need to log in
How is this shell encoded?
Checking the files for shells, I found a file that is not mine at all with encoded content, what is it encoded with and who can help understand what it did?
https://yadi.sk/d/dt9V775vh5ZDf
Answer the question
In order to leave comments, you need to log in
It's more of a postman than a backdoor
<?php
$file = file_get_contents(__DIR__ . '/themes.php');
#var_dump($file);
#exit();
$string = "[email protected]>J\r/u+RcHz3}g\nd{^8 ?eVwl_T\\\t|N5q)LobU]40!p%,rC-97k<'y=W:P\$1BI&S6\"E(K`Y~.Q;f[v2a#X*ZAGtM";
foreach(preg_split('//u', $string, -1, PREG_SPLIT_NO_EMPTY) as $k => $char) {
$file = str_replace("\$z26[" . $k . "]", '"' . $char . '"', $file);
}
$file = str_replace('"."', '', $file);
preg_match_all("/GLOBALS(.*?)=(.*?);/sm", $file, $matches);
if (in_array('getmxrr', $matches[2])) {
exit('Почтальон');
}
exit();
It's so hard to understand, but judging by the presence of socket constants, it is trying to establish an outgoing connection. I'm guessing it's a backdoor.
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question