403Webshell
Server IP : 202.61.199.114  /  Your IP : 216.73.217.139
Web Server : nginx/1.22.1
System : Linux de.arni-solutions.de 6.1.0-49-amd64 #1 SMP PREEMPT_DYNAMIC Debian 6.1.174-1 (2026-05-26) x86_64
User : web20 ( 1018)
PHP Version : 8.4.23
Disable Function : NONE
MySQL : OFF  |  cURL : ON  |  WGET : ON  |  Perl : ON  |  Python : OFF  |  Sudo : ON  |  Pkexec : ON
Directory :  /proc/3951580/root/tmp/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /proc/3951580/root/tmp/wp-update.sh
#!/bin/bash
# WordPress-Update auf 6.8.5 + alle Plugins deaktivieren
# handy-app-tester.de  (web7)
set -euo pipefail

WEB=/var/www/clients/client2/web7/web
SRC=/tmp/wp685/wordpress
DB_NAME=blog_handy_app_tester
DB_USER=arni_blog
DB_PASS='xk8@i6MG'

echo "== Vorab-Checks =="
[ -f "$WEB/wp-config.php" ] || { echo "FEHLER: wp-config.php nicht gefunden"; exit 1; }
[ -f "$SRC/wp-includes/version.php" ] || { echo "FEHLER: WP-6.8.5-Quelle fehlt"; exit 1; }
grep '\$wp_version =' "$SRC/wp-includes/version.php"

echo "== 1) Alle Plugins deaktivieren (DB) =="
mysql -u "$DB_USER" -p"$DB_PASS" "$DB_NAME" \
  -e "UPDATE hatwp_options SET option_value='a:0:{}' WHERE option_name='active_plugins';"
echo "   active_plugins geleert (Backup liegt in /tmp/active_plugins_backup.txt)"

echo "== 2) Core austauschen (wp-admin, wp-includes, Root-Dateien) =="
rm -rf "$WEB/wp-admin" "$WEB/wp-includes"
cp -a "$SRC/wp-admin"   "$WEB/wp-admin"
cp -a "$SRC/wp-includes" "$WEB/wp-includes"
# Root-PHP-Dateien (Paket enthaelt KEINE wp-config.php -> bleibt erhalten)
cp -af "$SRC/"*.php "$WEB/"
cp -af "$SRC/readme.html" "$SRC/license.txt" "$WEB/" 2>/dev/null || true

echo "== 3) Besitzrechte setzen (web7:client2) =="
chown -R web7:client2 "$WEB/wp-admin" "$WEB/wp-includes"
chown web7:client2 "$WEB/"*.php

echo "== 4) Neue Version verifizieren =="
grep '\$wp_version =' "$WEB/wp-includes/version.php"
echo "FERTIG. Bitte im Browser https://www.handy-app-tester.de/ und /wp-admin/ pruefen."
echo "(Beim ersten wp-admin-Aufruf fragt WordPress evtl. nach DB-Aktualisierung -> bestaetigen.)"

Youez - 2016 - github.com/yon3zu
LinuXploit