Уеб трикове
16.01.2019 Vipe Team
Deflate компресия
<IfModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
Уеб трикове
16.01.2019 Vipe Team
<IfModule mod_deflate.c>
<filesMatch "\.(js|css|html|php)$">
SetOutputFilter DEFLATE
</filesMatch>
</IfModule>
Уеб трикове
16.01.2019 Vipe Team
<IfModule mod_deflate.c> # Compress HTML, CSS, JavaScript, Text, XML and fonts AddOutputFilterByType DEFLATE application/javascript AddOutputFilterByType DEFLATE application/rss+xml AddOutputFilterByType DEFLATE application/vnd.ms-fontobject AddOutputFilterByType DEFLATE application/x-font AddOutputFilterByType DEFLATE application/x-font-opentype AddOutputFilterByType DEFLATE application/x-font-otf AddOutputFilterByType DEFLATE application/x-font-truetype AddOutputFilterByType DEFLATE application/x-font-ttf AddOutputFilterByType DEFLATE application/x-javascript AddOutputFilterByType DEFLATE application/xhtml+xml AddOutputFilterByType DEFLATE application/xml AddOutputFilterByType DEFLATE font/opentype AddOutputFilterByType DEFLATE font/otf AddOutputFilterByType DEFLATE font/ttf AddOutputFilterByType DEFLATE image/svg+xml AddOutputFilterByType DEFLATE image/x-icon AddOutputFilterByType DEFLATE text/css AddOutputFilterByType DEFLATE text/html AddOutputFilterByType DEFLATE text/javascript AddOutputFilterByType DEFLATE text/plain AddOutputFilterByType DEFLATE text/xml # Remove browser bugs (only needed for really old browsers) BrowserMatch ^Mozilla/4 gzip-only-text/html BrowserMatch ^Mozilla/4\.0[678] no-gzip BrowserMatch \bMSIE !no-gzip !gzip-only-text/html Header append Vary User-Agent </IfModule> ## DEFLATE ## <IfModule mod_headers.c> <FilesMatch "\.(js|css|xml|gz)$"> Header append Vary: Accept-Encoding </FilesMatch> </IfModule> ## GZIP ## <ifModule mod_gzip.c> mod_gzip_on Yes mod_gzip_dechunk Yes mod_gzip_item_include file .(html?|txt|css|js|php|pl)$ mod_gzip_item_include handler ^cgi-script$ mod_gzip_item_include mime ^text/.* mod_gzip_item_include mime ^application/x-javascript.* mod_gzip_item_exclude mime ^image/.* mod_gzip_item_exclude rspheader ^Content-Encoding:.gzip. </ifModule> ## EXPIRES CACHING ## <IfModule mod_expires.c> ExpiresActive On ExpiresByType image/jpg "access 1 year" ExpiresByType image/jpeg "access 1 year" ExpiresByType image/gif "access 1 year" ExpiresByType image/png "access 1 year" ExpiresByType text/css "access 1 month" ExpiresByType text/html "access 1 month" ExpiresByType application/pdf "access 1 month" ExpiresByType text/x-javascript "access 1 month" ExpiresByType application/x-shockwave-flash "access 1 month" ExpiresByType image/x-icon "access 1 year" ExpiresDefault "access 1 month" </IfModule>
Уеб трикове
16.01.2019 Vipe Team
/usr/local/cpanel/bin/rebuild_phpconf --available
Уеб трикове
16.01.2019 Vipe Team
/usr/local/cpanel/scripts/easyapache --version
Уеб трикове
16.01.2019 Vipe Team
USE INFORMATION_SCHEMA; SELECT TABLES.table_name FROM TABLES LEFT JOIN KEY_COLUMN_USAGE AS c ON ( TABLES.TABLE_NAME = c.TABLE_NAME AND c.CONSTRAINT_SCHEMA = TABLES.TABLE_SCHEMA AND c.constraint_name = 'PRIMARY' ) WHERE TABLES.table_schema <> 'information_schema' AND TABLES.table_schema <> 'performance_schema' AND TABLES.table_schema <> 'mysql' AND c.constraint_name IS NULL;
Уеб трикове
16.01.2019 Vipe Team
1. Create imagick.php 2. Add the following code in it <?php error_reporting(E_ALL); ini_set( 'display_errors','1'); $im = new Imagick(); $im->newPseudoImage(50, 50, "gradient:blue-white"); $draw = new ImagickDraw(); $draw->pushPattern('gradient', 0, 0, 50, 50); $draw->composite(Imagick::COMPOSITE_OVER, 0, 0, 50, 50, $im); $draw->popPattern(); $draw->setFillPatternURL('#gradient'); $draw->setFontSize(52); $draw->annotation(20, 50, "Wordpress-bg.com confirms!"); $canvas = new Imagick(); $canvas->newImage(390, 70, "black"); $canvas->drawImage($draw); $canvas->borderImage('black', 1, 1); $canvas->setImageFormat('png'); header("Content-Type: image/png"); echo $canvas; ?> 3. Open in a browser domain.com/imagick.php . If it is enabled it will return 'Wordpress-bg.com confirms'.
Уеб трикове
16.01.2019 Vipe Team
UPDATE admin_user SET password = CONCAT(SHA2('xxxxxxxxNewPassword', 256), ':xxxxxxxx:1') WHERE username = 'admin';
Уеб трикове
16.01.2019 Vipe Team
UPDATE ps_employee SET passwd = MD5('<_COOKIE_>password') WHERE ps_employee.id_employee = 1;
Уеб трикове
16.01.2019 Vipe Team
RewriteCond %{HTTPS} off [OR]
RewriteCond %{HTTP_HOST} ^www\.example\.co.uk*
RewriteRule ^(.*)$ https://example.org.uk/$1 [L,R=301]
Уеб трикове
16.01.2019 Vipe Team
1. Access joom_users from db 2. Find the user. Under the password column, clear the value and replace with the following: d2064d358136996bd22421584a7cb33e:trd7TvKHx6dMeoMmBVxYmg0vuXEA4199 This will change your password to: secret 3. Using the new password, you can now login to the account to change the password to one of your choosing.
Уеб трикове
16.01.2019 Vipe Team
1. Grep for the user grep user /usr/local/maldetect/event_log 2. Take the number from the output and grep for it grep 843668 /usr/local/maldetect/event_log 3. Find the report number (report 180319-1343.843668). 4. Run sudo cat /usr/local/maldetect/sess/session.180319-1343.843668 where you replace the number with the one grepped.
Уеб трикове
16.01.2019 Vipe Team
RewriteEngine On
RewriteCond %{HTTP_HOST} !^www\.
RewriteRule ^(.*)$ http://www.%{HTTP_HOST}/$1 [R=301,L]