This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## Search for scary PHP stuff. | |
grep "((eval.*(base64_decode|gzinflate))|r57|c99|sh(3(ll|11)))" ./ -roE --include=*.php* |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
## find hidden directories | |
find . -name '.*' -type d -print | |
## Change permissions recursively using FIND: | |
find /var/www/html/ -print -exec chmod <permissions> {} \; | |
find /var/www/html/ -print -exec chown <owner.group> {} \; | |
## For seLinux you should know wtf chcon does and modify appropriately. |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
update wp_posts | |
set post_content = replace(post_content,'’','\''); | |
update wp_posts | |
set post_content = replace(post_content,'…','...'); | |
update wp_posts | |
set post_content = replace(post_content,'–','-'); | |
update wp_posts | |
set post_content= replace(post_content,'“','"'); | |
update wp_posts | |
set post_content= replace(post_content,'â€','"'); |
NewerOlder