Linux sv3046.xserver.jp 5.15.0-157-generic #167-Ubuntu SMP Wed Sep 17 21:35:53 UTC 2025 x86_64
Apache
Server IP : 202.254.234.47 & Your IP : 216.73.216.41
Domains :
Cant Read [ /etc/named.conf ]
User : kinomori
Terminal
Auto Root
Create File
Create Folder
Localroot Suggester
Backdoor Destroyer
Lock Shell
Lock File++
Readme
/
opt /
sh /
Delete
Unzip
Name
Size
Permission
Date
Action
wp_activate_plugin.sh
1.55
KB
-rwxr-xr-x
2024-10-21 22:13
wp_activate_theme.sh
1.54
KB
-rwxr-xr-x
2024-10-21 22:14
wp_cli.sh
11.05
KB
-rwxr-xr-x
2025-10-30 12:54
wp_deactivate_plugin.sh
1.55
KB
-rwxr-xr-x
2024-10-21 22:13
wp_install_plugin.sh
1.69
KB
-rwxr-xr-x
2024-10-21 22:13
wp_plugin.sh
1.71
KB
-rwxr-xr-x
2024-10-21 22:14
wp_theme.sh
1.71
KB
-rwxr-xr-x
2024-10-21 22:14
wp_update_core.sh
1.53
KB
-rwxr-xr-x
2024-10-21 22:13
wp_update_plugin.sh
1.52
KB
-rwxr-xr-x
2024-10-21 22:13
wp_update_theme.sh
1.51
KB
-rwxr-xr-x
2024-10-21 22:13
Save
Rename
#!/bin/bash set -Ceuo pipefail ### vars PHP_VERSION="$1" SERVER_ID="$2" DOMAIN="$3" SUBNAME="" if [[ $# -ge 4 ]]; then SUBNAME="$4" fi if [[ $# -ge 5 ]]; then GLOBAL_OPTION="$5" else # GLOBAL_OPTION="--skip-themes --skip-plugins" GLOBAL_OPTION="" fi if [[ $# -ge 6 ]]; then OPTION="$6" else OPTION="list" fi PHP_PATH="/opt/php-${PHP_VERSION}/bin/php" WP_CLI_PATH="/usr/bin/wp" USER_WP_PATH="/home/${SERVER_ID}/${DOMAIN}/public_html${SUBNAME}" USER_WP_CONFIG="${USER_WP_PATH}/wp-config.php" ### functions function erroract(){ echo "$1" exit 1 } function warnact(){ echo "$1" exit 0 } ### MAIN { if [[ ${USER} = "root" ]]; then erroract "Script_Error: invalid exec user root." fi if [[ ${SERVER_ID} != "${USER}" ]]; then erroract "Script_Error: invalid argument SERVER_ID." fi ## PHPバージョン以外の入力値に相対パスが含まれていたらエラーメッセージと1を返す if [[ ${SERVER_ID} =~ .*\.\./.* || ${DOMAIN} =~ .*\.\./.* || ${SUBNAME} =~ .*\.\./.* || ${OPTION} =~ .*\.\./.* ]]; then erroract "Script_Error: invalid argument containing \"../\"." fi if [[ ! -f ${USER_WP_CONFIG} ]]; then warnact "Script_Warning: ${SERVER_ID}'s WordPress is not installed." fi cd "${USER_WP_PATH}" ## theme check が失敗したらエラーメッセージと1を返す ${PHP_PATH} ${WP_CLI_PATH} plugin ${OPTION} ${GLOBAL_OPTION} --path="${USER_WP_PATH}" 2>&1 \ || erroract "Script_Error: wp-cli current Theme did not complete successfully." ## サブシェルで実行した出力結果に文字列を付与 } | awk -v user="${USER}" '{print "time:" strftime("%Y-%m-%dT%H:%M:%S%z") "\tuser:" user "\tpath:'"${USER_WP_PATH} "'" "\tmessage:" $0; fflush(); }'