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
<?php | |
/*--------------------------------------------------------------------------- | |
=== SecuPress Backdoor User === | |
Script Name: SecuPress Backdoor User | |
Script URI: https://secupress.me/blog/backdoor-user/ | |
Author URI: https://secupress.me | |
Author: Julio Potier | |
Version: 3.1.2 | |
Contributors: Kévin (@DarkLG), Fanchy (fanchy@hotmail.fr) | |
Tags: security, admin, user |
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
# BEGIN 8CDN | |
Header add Access-Control-Allow-Origin "*" | |
<IfModule mod_rewrite.c> | |
RewriteEngine On | |
RewriteCond %{HTTP:X-DELIVERED-BY} !^8CDN | |
RewriteCond %{REQUEST_URI} .*\.(js|css|png|jpg|jpeg|bmp|svg|svgz|gif|ico|xml|json|woff2?|ttf|otf|eot|txt|pdf|doc|docx|xls|csv|xlsx|webp|webm|swf|mp[34]|thumb) | |
RewriteRule ^wp-content/uploads/(.*)$ https://cdnstatic8.com/YOUR-DOMAIN.COM/wp-content/uploads/$1 [R=301,NC,L] | |
</IfModule> | |
# END 8CDN |
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
.js | |
.css | |
.png | |
.jpg | |
.jpeg | |
.bmp | |
.svg | |
.svgz | |
.gif | |
.ico |
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
# BEGIN REDIRECT TO HTTPS | |
RewriteEngine On | |
RewriteCond %{HTTPS} off | |
RewriteCond %{HTTP_HOST} ^domain.com [OR] | |
RewriteCond %{HTTP_HOST} ^www.domain.com [NC] | |
RewriteRule ^(.*)$ https://www.domain.com/$1 [L,R=301] | |
RewriteEngine On | |
RewriteCond %{HTTPS} on |
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 guid=(REPLACE (guid, 'OLD_DOMAIN','NEW_DOMAIN')); |
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, 'OLD_DOMAIN','NEW_DOMAIN')); |
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 . -name '*.php' -exec iconv --verbose -f windows-1252 -t utf-8 {} \> {} \; |
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
<cache> | |
<backend>memcached</backend> | |
<memcached> | |
<servers> | |
<server> | |
<host><![CDATA[HOST ou IP]]></host> | |
<port><![CDATA[11211]]></port> | |
<persistent><![CDATA[1]]></persistent> | |
</server> | |
</servers> |
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
'session' => | |
array ( | |
'save' => 'memcached', | |
'save_path' ==> '[IP ou HOST]:11211' | |
), |
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
'session' => | |
array ( | |
'save' => 'db', | |
), |