mirror of
https://github.com/kalprajsolutions/wp-hack-fix.git
synced 2025-10-03 13:51:44 +08:00
Update wp-fix-hacked.sh
This commit is contained in:
parent
afcdae03c3
commit
5510d1a2e0
1 changed files with 6 additions and 5 deletions
|
@ -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..."
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue