✏️ 编辑:.bash_history
路径:
/home/bombet5/.bash_history
大小:4.64 KB · 修改:2026-08-17 11:29:31 · 权限:0644 · 可写
← 返回目录
👁 查看
⬇ 下载
1
#1523647066 mkdir .wtr && cd .wtr #1523647115 cd .wtr #1523647121 cp wp-config.php{,.$(date '+%s').old} && nano wp-config.php && grep DB wp-config.php* #1523647070 lftp lizcabom@64.40.144.10 -e 'set ftp:ssl-allow off ftp:list-options -a' #1523663551 ls #1523663556 cd #1523663578 mv public_html{,.$(date +%s).old} && mv .wtr/ public_html/ #1523663581 ls public_html.1523663578.old/ #1523663648 cd public_html #1523663654 cp ../public_html.1523663578.old/.htaccess . #1523904897 ls #1523904902 echo imh > imh #1573232030 ls #1573232035 cd public_html #1573232036 ls #1573232049 cat wp.config.php #1573232057 cat wp-config.php #1573232147 ls #1573232177 wp user list #1573232314 wp user update tyler --user_pass=NewPassword #1573232450 read pass #1573232544 wp user list #1573232551 read pass #1573232567 pass=$(head /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c15); echo $pass #1573232618 wp user update 1 --user_pass="$pass" #1573232638 read pass #1573232826 wp user 1 read pass #1573232832 wp help #1573233030 wp user list #1573233057 pass=$(head /dev/urandom | tr -dc _A-Z-a-z-0-9 | head -c15); echo $pass #1573233079 read $pass #1573233089 echo $pass #1573233119 wp user update 1 --user_pass="$pass" #1573233940 exit #1584717146 echo -e "\n****Mail Review****\n\nLocation and volume of mailing scripts:\n";sudo cat /var/log/exim_mainlog| LC_ALL=C grep -i .|grep cwd|awk -F'=' '{print $2}'|cut -d' ' -f1|sort|uniq -c|sort -nr|head -20;echo -e "\n\nTop Email senders:\n";cat /var/log/exim_mainlog| awk 'match ($0,/<= ([^@<>]+(@|\+)[^ ]+)/,a) {print a[1]}' |sort|uniq -c|sort -nr|head -20;echo -e "\n\nTop Mail subjects:\n";cat /var/log/exim_mainlog | grep dovecot_login |awk 'match($0,/T="([^"]*)"/,a){print a[1]}'| sort | uniq -c | sort -nr|head -15;echo -e "\n\nEmail logins by acct:\n";cat /var/log/maillog | grep -i 'login' | grep -Ev 'no auth|rip=127.0.0.1|rip=::1|fail' | grep -Po 'user=<\K(\w+@\w+\.\w+(\.\w+)?)' |sort | uniq -c | sort -nrk1 | head;echo -e "\n\nFailed Logins by IP address:\n";cat /var/log/maillog | grep 'auth failed' | grep -Po 'rip=\K(\d{1,3}\.){3}\d{1,3}' | sort | uniq -c | sort -nr | head;echo -e "\n\nEmail logins by IP\n";cat /var/log/maillog | grep imap-login | grep -Ev 'no auth|rip=127.0.0.1|rip=::1' | grep -Po 'rip=\K(\d{1,3}\.){3}\d{1,3}' | sort | uniq -c | sort -nk1|sort -nr|head -10;echo -e "\n\nThere are currently $(exim -bpc) email messages in queue on $(hostname).\n\n";echo; #1597652190 read -rep "What is the domain? " dom;read -rep "What is the MD5? " md; read -ep "What is the SHA? " sha; read -rep "What is the unique I.D.? " uid;dr=$(docroot.py $dom) > /dev/null; cd $dr ; mkdir -p .well-known/pki-validation && cd .well-known/pki-validation; echo $sha > $md.txt && echo "comodoca.com" >> $md.txt && echo $uid >> $md.txt; echo $dom/.well-known/pki-validation/$md.txt #1685039128 ll #1685039610 exit #1690481380 cd public_html/ #1690481384 wp db export #1690481394 mv bombet5_bombet-2023-07-27-4d9374c.sql ~ #1690481399 wp plugin list #1690481444 wp core verify-checksums --version=$(wp core version) #1690481698 wp user list #1690481748 wp user create support testing@servconfig.com --role=administrator #1690482958 exit #1690978536 cd public_ #1690978538 cd public_html/ #1690978574 wp db export ~/wordpressdbbackup.$(date -I).sql #1690978656 wp search-replace 'https://www.essamtalks.com/investigation' 'https://bombet.com' --dry-run #1690978662 wp search-replace 'http://www.essamtalks.com/investigation' 'https://bombet.com' --dry-run #1690978668 wp search-replace 'http://essamtalks.com/investigation' 'https://bombet.com' --dry-run #1690978675 wp search-replace 'https://essamtalks.com/investigation' 'https://bombet.com' --dry-run #1690978681 wp search-replace 'https://www.essamtalks.com/investigation' 'https://bombet.com' #1690978689 wp search-replace 'http://www.essamtalks.com/investigation' 'https://bombet.com' #1690978705 wp cache flush #1690978751 wp user list #1690979603 wp user delete testing@servconfig.com --reassign=1 #1690979606 wp user list #1690981058 exit #1696966574 docroot.py bombet.com #1696966576 cd public_html #1696966583 wp user create support testing@servconfig.com --role=administrator #1696967313 wp user list #1696968600 exit #1723798528 cd public_html/.well-known/pki-validation/ #1723798622 nano CD7904B4EF0A519239E807C5CF72408B.txt #1745256489 cd public_html #1745256503 wp user create imh-williew testremotehost@gmail.com --role=administrator #1745257074 exit #1786966092 cd public_html/ #1786966093 mkdir .well-known; cd .well-known; mkdir pki-validation; cd ..;read -p "What is the SHA?: " sha; read -p "What is the MD5?: " md5; touch .well-known/pki-validation/$md5.txt; cd .well-known/pki-validation/; echo -e $sha '\nsectigo.com' > $md5.txt
💾 保存
取消
保存为 UTF-8,换行统一为 LF