From 5510d1a2e0556b8a0560048f59ea2fda616810d5 Mon Sep 17 00:00:00 2001 From: Pushkraj Jori Date: Mon, 7 Jul 2025 11:59:23 +0530 Subject: [PATCH] Update wp-fix-hacked.sh --- wp-fix-hacked.sh | 11 ++++++----- 1 file changed, 6 insertions(+), 5 deletions(-) diff --git a/wp-fix-hacked.sh b/wp-fix-hacked.sh index 6a63b64..c598342 100644 --- a/wp-fix-hacked.sh +++ b/wp-fix-hacked.sh @@ -33,11 +33,12 @@ done echo "📂 Cleaning WordPress install at: $ROOT_DIR" -# 1. Delete everything except wp-config.php & wp-content/ -find "$ROOT_DIR" -mindepth 1 \ - ! -path "$ROOT_DIR/wp-config.php" \ - ! -path "$ROOT_DIR/wp-content/*" \ - -exec rm -rf {} + +# todo: not safe need more work +# # 1. Delete everything except wp-config.php & wp-content/ +# find "$ROOT_DIR" -mindepth 1 \ +# ! -path "$ROOT_DIR/wp-config.php" \ +# ! -path "$ROOT_DIR/wp-content/*" \ +# -exec rm -rf {} + # 2. Remove ELF binaries echo " • Removing ELF binaries..."