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
| sudo -i | |
| sudo yum -y update | |
| sudo yum -y install epel-release | |
| sudo yum install -y https://dl.fedoraproject.org/pub/epel/epel-release-latest-7.noarch.rpm | |
| sudo yum install -y fio ioping nload psmisc wget htop nano iftop telnet net-tools mlocate mtr yum-utils sysstat zip unzip traceroute tcptraceroute tcpdump bind-utils ftp.x86_64 policycoreutils-python jq | |
| sudo sed -i -e 's/10/2/g' /etc/cron.d/sysstat | |
| sudo echo "DefaultLimitNOFILE=1024000" >> /etc/systemd/system.conf | |
| sudo echo "DefaultLimitNOFILE=1024000" >> /etc/systemd/user.conf |
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 printHex($pdu){ | |
| $ar=unpack("C*",$pdu); | |
| foreach($ar as $v){ | |
| $s=dechex($v); | |
| if(strlen($s)<2)$s="0$s"; | |
| print "$s "; | |
| } | |
| print "\n"; |
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
| grep -lr --include=*.php "eval(base64_decode" /home | |
| find /home -type f -name '*.php' | xargs grep -l "eval *(" --color | |
| find /home -type f -name '*.php' | xargs grep -l "base64_decode *(" --color | |
| find /home -type f -name '*.php' | xargs grep -l "gzinflate *(" --color | |
| find /home -type f -name '*.php' | xargs grep -l "outdo" --color | |
| find /home -type f -name '*.php' | xargs grep -l "eval*_POST" --color | |
| find /home -type f -name '*.php' | xargs grep -l "$ptzrw" --color | |
| find /home/*/domains/*/public_html/wp-content/uploads -type f -name '*.php' | |
| find /home/ -type d -perm 777 -exec find {} -name "*.php" \; |
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
| nano /etc/my.cnf.d/server.cnf | |
| [mysqld] | |
| sql_mode="" | |
| max_allowed_packet=512M | |
| character-set-server = utf8mb4 | |
| collation-server = utf8mb4_unicode_ci | |
| max_connections = 10000 |
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
| awk -F\" '($2 ~ "4up16eyjtx.php"){print $1 $2 $3 $4}' /var/log/httpd/domains/*log |
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 mikrotik_ssh_to_array( $x ){ | |
| $out_arr=array(); | |
| $out_i=0; | |
| $x=str_replace('"' , '' , $x); | |
| preg_match_all('/([^:]*?):([^\r\n]*)\r\n?/', $x, $matches); | |
| foreach( $matches[1] as $k ){ | |
| $k=preg_replace('/\r\n/','' , $k); | |
| $k = preg_replace('!\s+!', ' ', $k); | |
| $k_arr=explode(' ', $k); |
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
| for k in `find /usr/local/directadmin/data/users/ -type f -name 'crontab.conf' `; do echo"" > $k;done |
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
| awk -F\" '($2 ~ "evtbxznx"){print $0$1$2}' /var/log/httpd/domains/*log |
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 | |
| DATE=`date +%Y-%m-%d-%H-%M-%S` | |
| LOCAL_BACKUP_DIR="/var/www/backup" | |
| DB_NAME="xxxxxxxx" | |
| DB_USER="xxxxxxxxx" | |
| DB_PASSWORD="xxxx" | |
| table=$1 | |
| ############### Local Backup ######################## |
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
| npm install | |
| npm test |
OlderNewer