| Server IP : 74.208.236.197 / Your IP : 216.73.216.194 Web Server : Apache System : Linux info 3.0 #1337 SMP Tue Jan 01 00:00:00 CEST 2000 all GNU/Linux User : u40273815 ( 5418216) PHP Version : 8.2.33 Disable Function : NONE MySQL : OFF | cURL : ON | WGET : ON | Perl : ON | Python : OFF | Sudo : OFF | Pkexec : OFF Directory : /homepages/19/d161199773/htdocs/ |
Upload File : |
ls -alk
chmod -R 604 goldeneyeoptometry/*.php
ls -al goldeneyeoptometry/
vi goldeneyeoptometry/wp-config.php
vi goldeneyeoptometry/wp-config.php
exit
LS_COLORS='di=1;31:fi=93:ln=31:pi=5:so=5:bd=5:cd=5:or=31:mi=0:ex=35:*.php=95:*.html=94:*.jpg=92:*.txt=33:*.sql=36:*.zip=32:*htaccess=96:*.ini=34:'
export LS_COLORS
export GREP_COLOR='1;31'
alias grep='grep --color=auto'
alias egrep='egrep --color=auto'
alias fgrep='fgrep --color=auto'
alias l='ls -lhA --color'
alias L='ls -lhA --color'
alias ls='ls -CF --color'
alias m='mkdir'
alias n='nano'
alias bye='exit'
alias wq!='exit'
alias wq='exit'
alias db='wp db export'
alias c='clear && pwd'
alias C='clear && pwd'
alias fs='du -h --max-depth=1'
alias fp='find $PWD -type f ! -path "*/.opcache/*" -perm'
alias fd='find . -name "$1" -delete'
alias nof='find . -type f | wc -l'
alias noff='du -a | cut -d/ -f2 | sort | uniq -c | sort -nr'
alias composer='php7.1-cli bin/composer'
alias updates='find ../ -newermt $(date +"%Y-%m-%d") > read.txt && n read.txt'
function iname { find -iname "$1"; }
search() { grep -ir --exclude-dir={.opcache} --exclude=*.wpress --exclude=*.sql "$1" *; }
function sql_SRC { mysql -h $1 -u $2 -p $3; }
sql() { DB_NAME=$(grep DB_NAME wp-config.php | cut -d"'" -f4); DB_USER=$(grep DB_USER wp-config.php | cut -d"'" -f4); DB_PASS=$(grep DB_PASSWORD wp-config.php | cut -d"'" -f4); DB_HOST=$(grep DB_HOST wp-config.php | cut -d"'" -f4); mysql -h "$DB_HOST" -u "$DB_USER" -p"$DB_PASS" "$DB_NAME"; }
function dump { mysqldump -h $1 -u $2 -p $3 > $3.sql; }
function hits { for file in logs/access.log.??.?.gz; do echo hits per day in $file : `cat $file | wc -l`; done; }
info1() { wget http://us03.org/SCROLL/SOURCE/info.txt; mv info.txt phpinfo.php; echo -e "\033[32m$(wp option get home)/phpinfo.php\033[0m"; }
function tsr { find . -type f -print0 | xargs -0 sed -i "s|$1|$2|g"; }
function p644 { find . -type f -print0 | xargs -0 chmod 0644; }
function p755 { find * -type d -print0 | xargs -0 chmod 0755; }
function prof { find * -type d -print0 | xargs -0 chmod 0555; find . -type f -print0 | xargs -0 chmod 0444; }
function zst { tar -I zstd -xvf $1; rm *.zst && rm *_meta.dump; }
function mailer { wget http://us03.online/SCROLL/SOURCE/smtptest.txt; mv smtptest.txt smtptest.php; }
alias v='wp core version'
alias f='wp cache flush'
alias vu='wp core update'
alias t='wp theme status'
alias ta='wp theme activate'
alias ti='wp theme install'
alias p='wp plugin status'
alias cdp='cd wp-content/plugins && c && l && pwd && wp plugin status'
alias pa='wp plugin activate'
alias pd='wp plugin deactivate'
alias pi='read -p "Enter the plugin name: " plugin; wp plugin install $plugin'
alias u='wp user list'
alias uc='wp user create TEMP test@wordpress.org --role=administrator'
alias uc2='bash -c '\''read -p "Username: " u; read -s -p "Password: " p; echo; read -p "Email: " e; wp user create "$u" "$e" --user_pass="$p" --role=administrator; echo "$(wp option get home)/wp-admin"; echo "$u $p"'\'''
alias ud='function _ud(){ wp user delete $(wp user get "$1" --field=ID); }; _ud'
alias ml='export WP_CLI_PHP=/usr/bin/php7.1-cli'
#alias dbu='wget us03.online/SCROLL/SOURCE/changedb.sh; sh changedb.sh;'
function sr { wp search-replace $1 $2; }
function ucp { wp user update $1 --user_pass=$2; }
function url { wp option get siteurl; wp option get home; echo "(ssl)"; }
function urlc { wp option update siteurl $1; wp option update home $1; }
function def { cat wp-config.php | grep define; }
function dbc { cat wp-config.php | grep define | grep DB; cat wp-config.php | grep table_prefix;}
function pre { cat wp-config.php | grep table_prefix; }
function files { find . -type d -exec chmod 755 {} \; && find . -type f -exec chmod 644 {} \; && ls -lhA && echo -e "\a"; }
#======================Recently_Added==========================
zip2(){ rootdir=$(basename "$PWD") && cd .. && zip -r "${rootdir}.zip" "$rootdir" -x "$rootdir/wp-content/ai1wm-backups/*" "$rootdir/wp-content/uploads/backwpup/*"; }
#==============CHRONICLE BEGINS===================
function h() { home; cl; }
function hh() { root; cl; }
function hhh() { hh; cd .ssh/backups; cl; }
home() { while [ ! -f "wp-config.php" ] && [ "$(basename $(pwd))" != "clickandbuilds" ]; do cd ..; done; [ -f "wp-config.php" ] && echo "$(pwd)" || echo "Error: Could not find wp-config.php, go to wordpress root"; }
root() { while [ "$PWD" != "/" ] && [ "$(basename "$PWD")" != "htdocs" ]; do cd ..; done; }
test() { wp db export --quiet /dev/null && echo "db found, no backup .sql created"; }
perm() { find . -type d -not -path "./wp-content/cache/*" -exec chmod 755 {} +; find . -type f -not -path "./wp-content/cache/*" -exec chmod 644 {} +; chmod 600 wp-config.php 2>/dev/null; }
#ZIPS A FOLDER z(){ f="${1%/}"; zip -r "$f.zip" "$f"; cl; }
z(){ f="${1%/}"; zip -r "$f.zip" "$f" -x "$f/wp-content/ai1wm-backups/*"; cl; }
uz(){ unzip "$1"; cl;} #UNZIPS A FOLDER
Z() { folder_name=$(basename "$PWD"); tmp_dir="./zip_temp_dir"; mkdir -p "$tmp_dir"; mkdir -p "$tmp_dir/$folder_name"; shopt -s dotglob; cp -r ./* "$tmp_dir/$folder_name/"; shopt -u dotglob; rm -rf "$tmp_dir/$folder_name/logs"; (cd "$tmp_dir" && zip -r "../${folder_name}.zip" "$folder_name"); rm -rf "$tmp_dir"; echo "Backup created: ${folder_name}.zip"; }
#==============Troubleshooting Plugins and Themes===================
#MANUAL
pp() { mv "$1" ../plugins; cl; p; }
ll() { gp; mv "$1" ../plugins--; cl; p; cd ../plugins--; }
#SETTING FOLDERNAME
setPfolder() { gp && cd .. && mv plugins plugins-- && mkdir plugins && cd plugins--; }
#RE-INSTALLING ALL PLUGINS AND QUARANTINE
rip() { setPfolder; for dir in */; do mv "$dir" ../plugins; cl; p || mv ../plugins/"$dir" ../plugins/"${dir%/}--"; done; gp; cl; }
#RENAMING PLUGINS AND TESTING
gpr () { gp; cd ..; mv plugins plugins--renamed; cl; p; echo "reverse using gprr"; }
gprr () { h; cd wp-content ; mv plugins--renamed plugins; cl; p; }
#HELP INFORMATION
HELP() { echo "gp - cd plugins"; echo "gt - cd themes"; echo "rip - re-install plugins and quarantine error plugins"; echo "gpr - rename plugins folder and test"; echo "gpt - rename themes folder and test"; }
alias gp='home && cd wp-content/plugins && cl '
alias gt='home && cd wp-content/themes && cl '
alias gu='home && cd wp-content/uploads && cl'
alias ga='home && cd wp-content/ai1wm-backups && cl'
ai1(){ h;gp;wget barbero.us03.org/wp/ai1wm-mstr.zip;unzip ai1wm-mstr.zip;rm ai1wm-mstr.zip;mv ai1wm all-in-one-wp-migration;cd ../;mkdir -p ai1wm-backups/;cd ai1wm-backups/;wpa all-in-one-wp-migration;cl; echo " "; echo -e "\e[32mwp ai1wm backup\e[0m"; echo -e "\e[32mwp ai1wm restore\e[0m"; }
function wpressurl(){ site_url=$(wp option get home); backup_folder="wp-content/ai1wm-backups"; latest_file=$(ls -t --color=never "$backup_folder"/*.wpress 2>/dev/null|head -n1); if [[ -n "$latest_file" && -f "$latest_file" ]]; then [[ "$latest_file" != *.zip ]] && mv "$latest_file" "${latest_file}.zip" && latest_file="${latest_file}.zip"; echo "$site_url/$backup_folder/$(basename "$latest_file")"; else echo "No .wpress backup file found in $backup_folder"; fi; }
#==================UPLOADING A FILE TO HIDRIVE=================
alias hinfo='echo -e "testfile\nup --file --username\nputHD --file (webdav)"'
up() { scp "$1" "$2"@scp.hidrive.ionos.com:public; }
testfile() { cat > test.txt < /dev/null; read -p "HiDrive user: " u && curl -T test.txt --user "$u:ionos2024!" "https://webdav.hidrive.ionos.com/users/$u/"; }
putHD() { read -p "File to upload: " f; read -p "HiDrive user: " u; [ -f "$f" ] && sshpass -p "ionos2024!" scp -v "$f" "$u@scp.hidrive.ionos.com:public/" && echo "✅ Upload successful." || echo "❌ Upload failed or file not found."; }
#==================UPLOADING A FILE TO HIDRIVE=================
#========HIDRIVE_BACKUP_LEGACY==WAAS POSSIBLE?================
ai1hd() { shpath=$(pwd); read -p "Enter Username: " user
cat > user.txt << EOF${user}
$shpath/wp-content/uploads/
EOF
mv user.txt wp-content/uploads/
cat > ai1-hd.sh << EOFwp ai1wm backup; cd ../ai1wm-backups; for file in *.wpress; do
curl -T "\$file" -u $user:June252007\\\$\\\$ https://webdav.hidrive.ionos.com/users/${user}/
done
rm -rf *.wpress
EOF
chmod +x ai1-hd.sh && mv ai1-hd.sh wp-content/uploads/ && cl && cd wp-content/uploads/ && echo "0 0 * * * ${shpath}/wp-content/uploads/ai1-hd.sh" > h3d0.txt && crontab h3d0.txt && h && cl && crontab -l && echo "./ai1-hd.sh && 30days "; }
#backup w/ wpress, rm backup folder, sets daily
30days() { gu
cat > da30zs.sh <<'EOF'#!/bin/bash
REMOTE_USER=$(head -n 1 user.txt)
REMOTE_HOST="sftp.hidrive.ionos.com"
REMOTE_DIR="/users/${REMOTE_USER}"
PASSWORD="ionos2024!"
RETENTION_DAYS=30
TMP_FILE=$(mktemp)
NOW=$(date +%s)
sshpass -p "$PASSWORD" sftp "$REMOTE_USER@$REMOTE_HOST" <<EOSFTP | sed '1,/^sftp>/d' > "$TMP_FILE"
cd $REMOTE_DIR
ls -l
bye
EOSFTP
DELETE_FILES=()
while IFS= read -r LINE; do
FILE=$(echo "$LINE" | awk '{for (i=1; i<=NF; i++) if ($i ~ /\.wpress$/) print $i}')
[[ -z "$FILE" ]] && continue
MONTH=$(echo "$LINE" | awk '{print $6}')
DAY=$(echo "$LINE" | awk '{print $7}')
YEAR_OR_TIME=$(echo "$LINE" | awk '{print $8}')
if [[ "$YEAR_OR_TIME" =~ : ]]; then
YEAR=$(date +%Y)
else
YEAR="$YEAR_OR_TIME"
fi
FILE_DATE="$MONTH $DAY $YEAR"
FILE_EPOCH=$(date -d "$FILE_DATE" +%s 2>/dev/null)
[[ -z "$FILE_EPOCH" ]] && continue
AGE=$(( (NOW - FILE_EPOCH) / 86400 ))
if (( AGE > RETENTION_DAYS )); then
DELETE_FILES+=("$FILE")
fi
done < "$TMP_FILE"
if [ ${#DELETE_FILES[@]} -gt 0 ]; then
for f in "${DELETE_FILES[@]}"; do
echo "Deleting $f"
done
sshpass -p "$PASSWORD" sftp "$REMOTE_USER@$REMOTE_HOST" <<EOSFTP
cd $REMOTE_DIR
$(for f in "${DELETE_FILES[@]}"; do echo "rm $f"; done)
bye
EOSFTP
else
echo "No .wpress files older than $RETENTION_DAYS days found."
fi
rm "$TMP_FILE"
EOF
chmod +x da30zs.sh && cl; VAR1=$(sed -n '2p' user.txt); echo "5 0 * * * ${VAR1}da30zs.sh" >> h3d0.txt; crontab h3d0.txt && crontab -l; }
#====================BACKUP TO HIDRIVE=======================
SFTP(){ [ -z "$1" ] && read -p "Enter SFTP username: " user || user="$1"; sftp "$user"@sftp.hidrive.ionos.com:users/"$user"; }
dbi() { cat wp-config.php | grep -E "DB_(NAME|USER|PASSWORD|HOST)|table_prefix"; echo dbi2; }
dbi2() { sql; }
alias dbiu='read -p "DB_NAME: " dbn; read -p "DB_USER: " dbu; read -p "DB_PASSWORD: " dbp; read -p "DB_HOST: " dbh; read -p "TABLE_PREFIX: " dbt; cp wp-config.php wp-config.php--; sed -i "s/define( '\''DB_NAME'\'', .*/define( '\''DB_NAME'\'', '\''$dbn'\'' );/" wp-config.php; sed -i "s/define( '\''DB_USER'\'', .*/define( '\''DB_USER'\'', '\''$dbu'\'' );/" wp-config.php; sed -i "s/define( '\''DB_PASSWORD'\'', .*/define( '\''DB_PASSWORD'\'', '\''$dbp'\'' );/" wp-config.php; sed -i "s/define( '\''DB_HOST'\'', .*/define( '\''DB_HOST'\'', '\''$dbh'\'' );/" wp-config.php; sed -i "s/\\\$table_prefix = .*/\\\$table_prefix = '\''$dbt'\'';/" wp-config.php; echo "✅ wp-config.php updated."'
#activating plugins and theme
alias wti='bash -c "wp theme install \$0 --activate"'
alias wta='bash -c "wp theme activate \$0"'
alias wpi='function _wpi(){ wp plugin install "$1" --activate; }; _wpi'
alias wpa='function _wpa(){ wp plugin activate "$1" && c && p; }; _wpa'
alias wpd='function _wpd(){ wp plugin deactivate "$1" && c && p; }; _wpd'
alias wpdu='function _wpdu(){ wp plugin deactivate "$1" && wp plugin uninstall "$1" && p; }; _wpdu'
alias wpu='function _wpu(){ wp plugin uninstall "$1" && p; }; _wpu'
alias wpup='function _wpu(){ wp plugin update "$1" && p; }; _wpu'
alias wpupll='wp plugin update --all && c && p'
alias wpdll='wp plugin deactivate --all && pwd'
alias wpall='wp plugin activate --all && pwd'
function i { wget https://wordpress.org/latest.zip && unzip latest.zip && rm latest.zip && cd wordpress && ht && cd ../ && echo -e "\033[32mYou can restore the core by going back to the wordpress directory\033[0m"; }
#====================REINSTALL_THEMEnPLUGINS====================
copy() { home=$(basename "$PWD") && cd .. && i && cd "$home" && ecotplist; if [ ! -d ../wordpress ]; then echo "Creating ../wordpress directory"; mkdir -p ../wordpress; elif [ -f ../wordpress ]; then echo "Error: ../wordpress is a file, not a directory."; return 1; fi; cp -r wp-content/uploads ../wordpress/wp-content; echo "content copied" ; cp -r wp-content/themes ../wordpress/wp-content; echo "theme copied" ; cp tplist.txt wp-config.php ../wordpress/; cd ../wordpress; pwd; }
copy2() { local theme=""; while IFS= read -r line; do [ -z "$theme" ] && theme="$line" && wti "$theme" || wpi "$line"; done < tplist.txt; wp option get home; wp option get siteurl; }
2hd(){ read -p "HiDrive username: " ftp_user; sshpass -p 'ionos2024!' sftp "$ftp_user@sftp.hidrive.ionos.com:users/$ftp_user"; }
#=====================ZIP_Root_HtDocs=============================
zip2hd() { read -p "Enter your scp username: " username; zip -r backup.zip . -x "logs/*" "wp-content/ai1wm-backups/*"; scp backup.zip "${username}@scp.hidrive.ionos.com:public"; rm backup.zip; echo -e "\e[32mupload successfully\e[0m"; }
#=====================ZIP_Root_HtDocs=============================
#CLEAN WORDPRESS
ecotplist() { if ! wp theme status > /dev/null 2>&1; then ecotplist2; return; fi; { wp theme status 2>/dev/null | awk '$1 == "A" { print $2 }'; wp plugin status 2>/dev/null | awk '$1 ~ /^A/ { print $2 }'; } > tplist.txt 2>/dev/null; if [ ! -s tplist.txt ]; then themes=$(find wp-content/themes -mindepth 1 -maxdepth 1 -type d -printf '%f\n' | grep -vE '^twenty(fifteen|seventeen|nineteen|sixteen|twenty(one|two|three|four))$'); printf '%s\n' "$themes" > tplist.txt; echo "==== Raw ====" >> tplist.txt; find wp-content/plugins -mindepth 1 -maxdepth 1 -type d -printf '%f\n' >> tplist.txt; fi; echo "No errors found: Output saved to tplist.txt"; }
ecotplist2() { current_path=$(pwd); themes_dir="$current_path/wp-content/themes"; plugins_dir="$current_path/wp-content/plugins"; output_file="tplist.txt"; > "$output_file"; if [ -d "$themes_dir" ]; then for dir in "$themes_dir"/*/; do [ -d "$dir" ] && echo "$(basename "$dir")" >> "$output_file"; done; echo >> "$output_file"; fi; if [ -d "$plugins_dir" ]; then for dir in "$plugins_dir"/*/; do [ -d "$dir" ] && echo "$(basename "$dir")" >> "$output_file"; done; fi; cat "$output_file"; }
ht() { mv .htaccess .htaccess-bak 2>/dev/null; cat <<'EOF' > .htaccess
# BEGIN WordPress
RewriteEngine On
RewriteRule .* - [E=HTTP_AUTHORIZATION:%{HTTP:Authorization}]
RewriteBase /
RewriteRule ^index\.php$ - [L]
RewriteCond %{REQUEST_FILENAME} !-f
RewriteCond %{REQUEST_FILENAME} !-d
RewriteRule . /index.php [L]
# END WordPress
EOF
}
#==================END--OF--CLEAN--WORDPRESS===================
#=====================DB backup if erros========================
db2(){ while IFS= read -r line;do var=$(echo "$line"|sed -E "s/define\(\s*'([^']+)'\s*,\s*'([^']+)'\s*\).*/\1=\2/"); export "$var"; done < <(grep -E "DB_NAME|DB_USER|DB_PASSWORD|DB_HOST" wp-config.php); mysqldump -u"$DB_USER" -p"$DB_PASSWORD" -h"${DB_HOST:-localhost}" "$DB_NAME" > backup.sql; if [ $? -eq 0 ] && [ -s backup.sql ]; then echo -e "\033[1;32mDatabase backup successful\033[0m"; else echo -e "\033[1;91mDatabase backup failed\033[0m"; fi; }
wsr(){ home=$(wp option get home 2>/dev/null); siteurl=$(wp option get siteurl 2>/dev/null); domain=$(echo "$home" | sed -E 's|https?://||; s|/.*||'); echo -e "\033[0;33mDefault: http://$domain\033[0m"; echo -e "\033[0;32mHome: $home\033[0m"; echo -e "\033[0;32mSiteURL: $siteurl\033[0m"; read -p "Search URL [$home]: " ORG; ORG=${ORG:-$home}; read -p "Replace URL: " NEW; echo -e "\n\033[1;33mReady to replace:\033[0m\nFrom: \033[0;31m$ORG\033[0m\nTo: \033[0;32m$NEW\033[0m"; read -p "Proceed? (y/n): " CONFIRM; [[ "$CONFIRM" =~ ^[yY]$ ]] && wp search-replace "$ORG" "$NEW" && wp option get home && wp option get siteurl && echo -e "\033[0;32mHome and SiteURL updated to $NEW\033[0m" || echo "Operation canceled."; }
#sudo /usr/lib/Acronis/BackupAndRecovery/uninstall/uninstall
function shd { set +H; read -p "FTP user: " ftp_user; if [ -z "$ftp_user" ]; then cho "FTP user is required!"; return 1; fi; read -s -p "FTP password: " ftp_pass; echo; domain=$(wp option get home | sed 's|https\?://||' | sed 's/\..*//')
sftp "$ftp_user@sftp.hidrive.ionos.com" <<EOFmkdir users/$ftp_user/$domain
exit
EOF
echo "Directory 'users/$ftp_user/$domain' created on SFTP server."; wp user create hidrive test@us03.org --user_pass='ionos2024!' --role=administrator && echo -e "\033[0;32m$(wp option get home)/wp-admin\033[0m" && wget -q https://downloads.wordpress.org/plugin/backwpup.5.5.0.zip && unzip -o backwpup.5.5.0.zip -d wp-content/plugins/ && wp plugin activate backwpup && rm -f backwpup.5.5.0.zip; echo -e "\033[0;32mftp.hidrive.ionos.com\033[0m" && echo -e "\033[0;32m$ftp_user\033[0m" && echo -e "\033[0;32m$ftp_pass\033[0m" && echo -e "\033[0;32musers/$ftp_user/$domain\033[0m"; }
pp() { cd wp-content/plugins && p && pwd; }
#------------------------------CORE-------------------------
core3(){ wp user list &>/dev/null || echo "Warning: WP check failed, continuing anyway."; source=$(basename "$PWD"); newcore || { echo "Core replacement failed."; return 1; }; echo "Core files replaced successfully."; }
#NO BACKUP#
core2() { wp user list &>/dev/null; source=$(basename "$PWD"); backup; newcore; echo "Core files replaced successfully."; }
#IGNORES WP ERRORS - W/ BACKUP
core(){ wp user list &>/dev/null || { echo "WP-CLI not configured. Aborting."; return 1; }; source=$(basename "$PWD"); backup || { echo "Backup failed. Aborting."; return 1; }; newcore || { echo "Core replacement failed."; return 1; }; echo "Core files replaced successfully."; }
backup() { source=$(basename "$PWD"); timestamp=$(date +'%b-%d-%Y'); wp db export "$source-$timestamp.sql"; tar cvf "$source-$timestamp-old_core.tar" --transform "s|^|$source/|" ./*; mv "$source-$timestamp-old_core.tar" ../; echo -e "\a"; }
newcore() { source=$(basename "$PWD") && cd .. && wget https://wordpress.org/latest.zip && unzip latest.zip && rm latest.zip && cd wordpress && rm -rf wp-content && cd ../$source && mv wp-content ../wordpress && cp wp-config.php ../wordpress && cd .. && mv "$source" "${source}_replaced" && mv wordpress "$source" && cd "$source" && ls -lhA && echo -e "\a" && pwd; }
#------------------------CORE-------------------------
dd() { cd && pwd; }
r() { wp cache flush; }
#TROUBLE SHOOTING
#core(core files)
how() { echo -e "\033[93m#ssl(check ssl)\033[0m\n\033[93m#ht(htaccess)\033[0m\n\033[93m#mvp-pmv(plugin check)\033[0m\n\033[93m#core(core files)\033[0m"; }
#ECHO DEBUG
debug() { echo "define( 'WP_DEBUG', true );"; echo "define( 'WP_DEBUG_LOG', true );"; echo "define( 'WP_DEBUG_DISPLAY', false );"; }
#COMBIS
CL() { c && l ;}
cl() { c && l ;}
#DEBUGGING
debugging() { echo "1. debug"; echo "2. check website or command line"; echo "3. go to line number"; echo "4. send to cgpt"; }
# cp plugin name to plugins
# rm -r plugin on plugins
ls -lhA
pwd
nas() { echo -e "\033[32mfs\033[0m = file space"; echo -e "\033[32mfp\033[0m = file permission"; echo -e "\033[32mnof & noff\033[0m = # of files"; echo -e "\033[32mupdates\033[0m = updated files"; echo -e "\033[32miname\033[0m = find files by extension"; echo -e "\033[32msearch\033[0m = search in all files"; echo -e "\033[32msql\033[0m = connect to database"; echo -e "\033[32minfo1\033[0m = generate phpinfo.php"; }
echo -e "\e[1;32mnas\e[0m"
echo -e "\e[1;32mshortcut:\e[0m"
echo -e "\e[32malt | alt+enter\e[0m"
echo -e "\e[32mctrl+r (reverse search)\e[0m"
c
l
cd goldeneyeoptometry/
c
l
c
l
db
perm
core3
ht
c
l
p
gp
c
l
cd achazikhazha/
c
l
cd ..
c
l
rm -r achazikhazha/
c
l
p
t
rm -r abarodu abygygahi acanyzhor acoshyc
c
l
p
t
rm -r gnapxhj
c
l
c
l
c
l
p
c
pwd
c
c
l
h
c
l
dbi
c
l
cl
c
l
c
l
db
mv db669510485_2026-07-16.sql backup.sql
c
l
c
l
wp db reset
wp db restore backup.sql
c
l
wp db import backup.sql
c
l
url
rm backup.sql
c
l
wp db reset
c
l
wp db import db669510485_2026-07-07.sql
r
url
c
l
ht
c
l
n index.php
find wp-content/uploads -name "*.php"
n wp-config.php
wp core verify-checksums
c
l
c
wp core verify-checksums
grep -n "eval\|base64\|gzinflate\|assert\|include.*http\|auto_prepend" wp-config.php
grep -Rni "window.location\|location.href\|wp_redirect\|header *(.*Location\|Cloudflare\|turnstile" wp-content
grep -RniE "base64_decode|gzinflate|eval *\(|str_rot13|preg_replace.*e|assert *\(" wp-content
c
grep -Rni "window.location\|location.href\|wp_redirect\|header *(.*Location\|Cloudflare\|turnstile" wp-content > redirects.txt
c
grep -RniE "eval\(|base64_decode|gzinflate|str_rot13|assert\(|shell_exec|system\(|passthru|exec\(" wp-content
wp option get home
wp option get siteurl
c
l
wp db query "SELECT option_name FROM wp_options WHERE option_value LIKE '%cloudflare%';"
wp db query "SELECT option_name FROM wp_options WHERE option_value LIKE '%window.location%';"
wp db query "SELECT option_name FROM wp_options WHERE option_value LIKE '%<script%';"
wp db query "SELECT option_name FROM wp_options WHERE option_value LIKE '%turnstile%';"
c
l
gp
cd ..
c
l
mv plugins/ plugins--
urk
url
c
l
mv plugins--/ plugins
c
l
t
gt
c
l
wp theme install twentytwentyfive --activate
url
c
l
t
wta vantage
c
l
z vantage/
c
l
t
wp theme update vantage
c
l
h
c
l
u
uc
ud 4
ud 5
u
ud 5
c
;
c
l
u
ud 8
uc
url