Editing the Arch Linux daemons for server use in rc.conf
/etc/rc.conf # # /etc/rc.conf - Main Configuration for Arch Linux # # See 'man 5 rc.conf' for more details # # LOCALIZATION # ------------ HARDWARECLOCK="UTC" TIMEZONE= KEYMAP="us" CONSOLEFONT=...
View ArticleScript for WHMCS to ban and block {php} eval exploit attack
Add the following to: whmcs/includes/hooks/ticketexploit.php
View ArticlesuPHP permissions fixes bash script
#!/bin/bash #suPHP permissions fixes for user in `ls /var/cpanel/users` do for site in `ls /var/cpanel/userdata/$user | grep -v ".cache" | grep -v "main"` do docroot=`cat...
View ArticleNginx ngx_http_close_connection function integer overflow exploit + patch
Recently we became aware of a major exploit in nginx that has been around for at least a years time now. As of now it has made it’s way public and has not been patched. Included in this post are some...
View ArticleHow to Install IMAP Directadmin
For all of those looking to add IMAP support for Direct Admin, here you go! #!/bin/sh # Script for PHP-IMAP installation. 0.1b # Written by Martynas Bendorius (smtalk) CWD=`pwd` OS=`uname` #Is it a...
View ArticleSimple CentOS PPTP VPN Automatic Install Script
#!/bin/bash -x ( VPN_IP=`curl ipv4.icanhazip.com>/dev/null 2>&1` VPN_USER="user" #your username goes here VPN_PASS="password" #your password goes here VPN_LOCAL="192.168.0.150"...
View ArticleHow to using Nginx anti ddos proxy script and server protection
Okay, if it’s only a small bandwidth attacks, it might work with an NGINX Reverse Proxy. On the server running NGINX, save the following script as ddos.rb and run it with “ruby ddos.rb”: #!/usr/bin/env...
View ArticlePHP json_decode Fails on UTF and Other Encodings
I was working on a project this week and found that PHP’s json_decode function does not function properly with encoded characters. I tried a number of methods such as utf8_decode and addslashes to no...
View ArticleAutomatically Optimizing MySQL
#!/bin/sh #solidshellsecurity.com mysql -NBe "SHOW DATABASES;" | grep -v 'lost+found' | while read database ; do mysql -NBe "SHOW TABLE STATUS;" $database | while read name engine version rowformat...
View ArticleSpamHaus SBL Checker PHP Script – Takes domain and returns number of assigned...
This is a very nice script written by D. Strout over at VPSBoard.com here. Be sure to leave him some feedback and comments about it. Let us know how you have used it or even modified it for your needs....
View Article
More Pages to Explore .....