Quantcast
Channel: Security, Server Tweaking, IT Management Blog By SolidShellSecurity » Source Code
Browsing latest articles
Browse All 11 View Live

Image may be NSFW.
Clik here to view.

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 Article



Image may be NSFW.
Clik here to view.

Script for WHMCS to ban and block {php} eval exploit attack

Add the following to: whmcs/includes/hooks/ticketexploit.php

View Article

Image may be NSFW.
Clik here to view.

suPHP 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 Article

Image may be NSFW.
Clik here to view.

Nginx 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article


Image may be NSFW.
Clik here to view.

Simple 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 Article

Image may be NSFW.
Clik here to view.

How 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 Article

Image may be NSFW.
Clik here to view.

PHP 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 Article


Image may be NSFW.
Clik here to view.

Automatically 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 Article


Image may be NSFW.
Clik here to view.

SpamHaus 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
Browsing latest articles
Browse All 11 View Live




Latest Images