File: /home/design11/.bash_history
cd
cd logs/aprilflower.org/
read -p "Enter IP Address: " IP; zgrep "$IP" */error.log* | grep -iE 'modsec' | grep -viE '9491|9490|9801|whitelist.conf' | awk -F"id \"" '{print $2}' | awk '{print $1}'|cut -d'"' -f1 | sort | uniq -c |sort -h
exit
alias a='alias'
alias m='more'
alias p='pwd'
alias c='clear'
alias g='grep'
alias gi='grep -i '
alias gr='grep -r'
alias h='history'
alias hs='history 10'
alias hg='history|grep'
alias ll='ls -al'
alias llg='ls -al | grep '
alias lld='ls -al | grep ^d'
alias llm='ls -laR|more'
alias llr='ls -latr'
alias lllr='ls -latR'
PS1='\h:\w\$ '
alias psax='ps ax | grep -i '
clear
ll
clear
wp core version
wp theme status
wp plugin status
wp option get home
wp option get siteurl
exit
ls -lah
cd ~
cd logs/aprilflower.org/https
grep 100.40.76.68 error.log
exit
#1772803109
echo ; echo '========================================' ; echo -e '\033[1m -- WORDPRESS OPTIMIZATION CHECKS -- \033[0m' ; echo '========================================' ; printf '\n \033[1m-- WORDPRESS CORE VERSION --\033[0m\n\n' ; wp core version --skip-plugins --skip-themes && printf '\n \033[1m-- CHECK CORE UPDATES --\033[0m\n\n' && if [[ $(wp core check-update --skip-plugins --skip-themes) == "Success: WordPress is at the latest version." ]] ; then echo -e "\e[1;32m WordPress is at the latest version! \e[0m\n" ; else eval wp core check-update --fields=version,update_type --skip-plugins --skip-themes ; fi && printf '\n \033[1m-- PHP VERSION --\033[0m\n\n' ; echo "patis" > info.php && curl -s https://`cut -d/ -f4 <<< "${PWD}"`/info.php | grep 'PHP Version' | tail -1 | awk -F"[><]+" '{print $7}' && rm info.php ; printf '\n\n \033[1m-- CHECKING FOR MULTISITE --\033[0m\n\n' && if [[ $(wp core is-installed --network --skip-plugins --skip-themes > /dev/null 2>&1 ; echo $?) -eq 0 ]] ; then printf "\033[1;31m\n WARNING MULTISITE FOUND! \033[0m\n" && eval wp site list && printf "\n\n" ; else printf "\033[1;32m Good! Not a multisite, moving on \033[0m\n\n" ; fi ; printf '\n \033[1m-- CHECKING FOR WOOCOMMERCE PLUGIN ACTIVE ON SHARED --\033[0m\n\n' && if [[ $(hostname -s) == *-shared-* || ! $(hostname -s) =~ [0-9] ]] && [[ $(wp plugin is-active woocommerce --skip-plugins --skip-themes && echo $?) = 0 ]] ; then printf "\033[1;31m\n WARNING Woocommerce Found Active on Shared Hosting\n\n\033[0m" ; else printf "\033[1;32mNot Found\n\n\033[0m" ; fi ; printf '\n \033[1m-- PLUGIN DETAILS --\033[0m\n\n' ; wp plugin status --skip-themes --skip-plugins ; printf '\n \033[1m-- CHECK ACTIVE PLUGINS WITH AVAILABLE UPDATES --\033[0m\n\n' ; if [[ -z $(wp plugin list --status=active --skip-plugins --skip-themes | grep available) ]] ; then printf "\e[32mAll Plugins Are Up to Date\e[0m\n\n" ; else eval wp plugin list --status=active --update=available --fields=status,name,version,update,update_version --skip-plugins --skip-themes ; fi && printf '\n \033[1m-- THEME DETAILS --\033[0m\n\n' ; wp theme status --skip-themes --skip-plugins ; printf '\n \033[1m-- CHECK FOR ACTIVE PARENT/CHILD THEME UPDATE --\n\n' ; if [[ -z $(wp theme list --status=active,parent --skip-plugins --skip-themes | grep available) ]] ; then printf "\033[32mActive Theme Is Up To Date\033[0m\n\n" ; else eval wp theme list --update=available --status=parent,active --fields=status,name,version,update,update_version --skip-plugins --skip-themes ; fi ; echo ; echo -e '\033[1m -- DATABASE DETAILS -- \033[0m' ; wp db size --size_format=mb --tables --skip-themes --skip-plugins ; printf "\n--AUTOLOAD SIZE IN OPTIONS / TOP 25 LARGEST IN AUTOLOAD--\n\n" ; wp db query "SELECT 'autoload-options-size' AS name, IF(SUM(LENGTH(option_value))/1048576 < 0.9, 'success', 'warning') AS status, CONCAT('Autoloaded options size is ', ROUND(SUM(LENGTH(option_value))/1048576, 2), 'MB (Threshold: 0.9MB).') AS message FROM $(wp config get table_prefix)options WHERE autoload='yes';" && wp db query "SELECT option_name, LENGTH(option_value)/1048576 AS 'Size (MB)' FROM $(wp config get table_prefix)options WHERE autoload='yes' ORDER BY LENGTH(option_value) DESC LIMIT 25;" ; echo; echo '==================' ; echo -e '\033[1m Home and Siteurl LINKS\033[0m' ; echo '==================' ; wp option get home --skip-plugins --skip-themes ; wp option get siteurl --skip-plugins --skip-themes; echo ; printf '\n\033[1m -- HTTPS TRAFFIC DETAILS -- \033[0m\n' ; printf "\n-- TOTAL NUMBER OF HTTPS REQUESTS EACH DAY --\n\n" ; for k in `ls -S ~/logs/$(pwd | awk -F'/' '{print $NF}')/https/access.log* 2>/dev/null | grep -v .gz`; do wc -l $k | sort -r -n; done ; printf "\n\n-- MOST REQUESTED FILES IN HTTPS --\n\n" ; awk '{print $7}' ~/logs/`cut -d/ -f4 <<< "${PWD}"`/https/access.log 2>/dev/null | cut -d? -f1 | sort |uniq -c | sort -n | tail -n10 ; printf "\n\n-- REPEAT IP REQUESTS TO HTTPS --\n\n" ; awk '{print $1}' ~/logs/`cut -d/ -f4 <<< "${PWD}"`/https/access.log 2>/dev/null | sort | uniq -c |sort -n | tail -n10 && printf "\n\n-- MOST REQUESTED HTTPS PAGES --\n\n" ; awk '{print $11}' ~/logs/`cut -d/ -f4 <<< "${PWD}"`/https/access.log 2>/dev/null | cut -d? -f1 | sort |uniq -c | sort -n | tail -n10 ; printf "\n================-- BOT HITS --====================\n\n" ; for k in $(find ~/logs/$(basename $(pwd))/https/ -name 'access.log'); do awk -F"compatible;" '/compatible/ {print $2}' "$k" | cut -d\; -f1 | cut -d/ -f1 | awk '{print $1}' | sort | uniq -c | sort -n | tail; done ; printf "\n================-- CACHE INFO --====================\n" ; printf "\n\n-- LOOKING FOR PLUGIN PAGE CACHING SET IN WP-CONFIG.PHP --\n\n" && if [[ -z $(grep WP_CACHE wp-config.php ; grep WPCACHEHOME wp-config.php) ]] ; then printf "\033[0;31mNo Cache Rules Found in Wp-Config.php\033[0m\n\n" ; else eval grep WP_CACHE wp-config.php ; grep WPCACHEHOME wp-config.php ; fi ; printf '\n==================\n' ; printf "\n--CRON EVENTS--\n\n" ; wp cron event list --skip-themes --skip-plugins; echo; echo '==================' ; printf "\n-- Disable Cron Status in Wp-Config --\n\n"; cron_setting=$(grep -nE "\s*define\(\s*'DISABLE_WP_CRON'\s*,\s*true\s*\)\s*;" wp-config.php) && { line_number=$(echo "$cron_setting" | cut -d: -f1); printf "WP Cron is Disabled on line: $line_number\n"; echo "$cron_setting" | cut -d: -f2-; printf "\n"; } || printf "No DISABLE_WP_CRON rule found in wp-config, moving on\n\n"; printf '\n==================\n\n' ; echo -e '\033[1mLAST ENTRIES ON ERROR LOGS\033[0m' ; echo ; echo '==================' ; tail -20 ../logs/$"`pwd | awk -F'/' {'print $4'}`"/https/error.log; echo ; printf "\n================ -- Having problems understanding WP Performance? reach out in #wps_assists for help! -- ====================\n\n" ;
#1772803211
wp plugin list
#1772803218
wp plugin list --skip-plugins --skip-themes
#1772803237
wp theme list
#1772803244
wp theme list --skip-plugins --skip-themes
#1772803259
wp db export ~/`wp config get DB_NAME`_`date +"%d-%m-%Y"`.sql
#1772803337
ls -lah
#1772803367
wp doctor check core-verify-checksums file-eval --skip-plugins --skip-themes
#1772803446
wp doctor check core-verify-checksums file-eval --skip-plugins --skip-themes
#1772803472
cd wp-content
#1772803478
ls -lah
#1772803487
cd themes
#1772803490
ls -lah
#1772803755
cd ..
#1772803757
cd ..
#1772803788
wp plugin deactivate wp-super-cache --skip-plugins --skip-themes
#1772804248
ls -lah
#1772804260
cd wp-content
#1772804262
ls -lah
#1772804267
cd plugins
#1772804270
ls -lah
#1772804372
mv wp-super-cache wp-super-cache-off
#1772804411
mv wp-super-cache-off wp-super-cache
#1772804415
cd ..
#1772804421
ls -lah
#1772804439
mv plugins plugins-off
#1772804592
cd ..
#1772804601
nano .htaccess
#1772804621
mv .htaccess .htaccess-off
#1772804624
nano .htaccess
#1772804682
ls -lah
#1772804765
wp theme list
#1772804775
cd wp-includes
#1772804779
ls -lah
#1772804835
nano class-wpdb.php
#1772804889
cd ..
#1772804900
cd wp-content
#1772804902
ls-lah
#1772804905
ls -lah
#1772804919
mv plugins-off plugins
#1772805443
ls -lah
#1772805446
cd ..
#1772805449
ls -lah
#1772805470
mv .htaccess .htaccess-default
#1772805481
mv .htaccess-off .htaccess
#1772805348
ls -lah
#1772805351
wp core verify-checksums
#1772805360
wp core version
#1772805376
cat index.php
#1772805391
wp core verify-checksums
#1772806003
ls -alh
#1772806023
cat index.php
#1772806255
clear
#1772806344
cd ..
#1772806363
ls -alh
#1772806434
cd logs
#1772806441
ls -alh
#1772806464
cd aprilflower.org
#1772806466
ls-alh
#1772806468
ls -alh
#1772806520
cd https
#1772806522
ls -alh
#1772806543
pwd
#1772806747
cat error.log
#1772806756
clear
#1772806757
ls -alh
#1772806804
cat error.log
#1772807301
ls -alh
#1772807306
tail error.log
#1772806576
pwd
#1772833967
wp core verify-checksums
#1772833977
stat wp-includes/scqxde.php
#1772833983
less wp-includes/scqxde.php
#1772833986
exit