nmap localhost (checks listening ports) lsof -i :1980 (checks what running on that port) kill -15 (kills what’s running on that port) —-check open ports—- check for open ports: ‘netstat -a’
Entries Tagged as 'Linux Software / Scripts'
Port listening check
August 17th, 2009 by EZ linux · 1 Comment
Tags: Linux Commands · Linux Security · Linux Software / Scripts · Ports
Log watch and root emailed
August 17th, 2009 by EZ linux · 1 Comment
—-Server e-mail every time someone logs in as root To have the server e-mail you everytime someone logs in as root, SSH into server and login as root. At command prompt type: pico .bash_profile Scroll down to the end of the file and add the following line: echo ‘ALERT – Root Shell Access on:’ `date` [...]
Tags: Linux Commands · Linux Software / Scripts
Iframe gariben hack removergariben
August 17th, 2009 by EZ linux · No Comments
iframe / gariben hack find and removers. iframe / gariben is a script kiddie code added usually via a cracked password or hidden mysql code added to a vulnerable script. I usually refreshes the web page to some sort of web page that downloads a virus. 1. find /home/username \( -name “*.php” -o -name “*.html” [...]
Tags: Linux Commands · Linux Security · Linux Software / Scripts
Install CSF on Cpanel
August 17th, 2009 by EZ linux · 1 Comment
Remove any old versions: rm -fv csf.tgz Download and install: wget http://www.configserver.com/free/csf.tgz tar -xzf csf.tgz cd csf sh install.sh To disable run this from root: sh disable_apf_bfd.sh To update from root run this: /usr/sbin/csf -u To flush all blocks run this: /usr/sbin/csf -f Usage: /usr/sbin/csf [option] [value] Option Meaning -h, –help Show this message -l, [...]
Tags: Cpanel and WHM · Linux Commands · Linux Security · Linux Software / Scripts
Change a cpanel server hostname
August 17th, 2009 by EZ linux · 2 Comments
pico /etc/sysconfig/network pico /etc/hosts pico /etc/resolv.conf pico /var/named/your.dns.zone.com.db (add A record for host) pico /usr/local/apache/conf/httpd.conf – cd /usr/local/cpanel then run ./cpkeyclt also might help license /scripts/upcp
Tags: Linux Commands · Linux Software / Scripts
Cpanel restart services
August 17th, 2009 by EZ linux · 2 Comments
/scripts/restartsrv mysql /scripts/restartsrv httpd /scripts/restartsrv bind (proftpd,exim,sshd,cppop,bind,mysql) /etc/rc.d/init.d/cpanel restart /scripts/reswhostmgr /etc/rc.d/init.d/portsentry start /etc/rc.d/init.d/network restart /etc/sysconfig/network-scripts (where ip’s are stored) /etc/init.d/exim restart services exim stop
Tags: Linux Commands · Linux Software / Scripts
Cpanel manual backup
August 17th, 2009 by EZ linux · 1 Comment
To instantly run your existing back up settings in cpanel run: (You will need backups turned on in your WHM for this to work) /scripts/cpbackup To instantly run a packaged account backup for any account run: (Keep in mind this makes a tar file in the home directory so you will need space for it.) [...]
Tags: Linux Commands · Linux Software / Scripts
Cpanel install
August 17th, 2009 by EZ linux · No Comments
mkdir /home/cpins cd /home/cpins wget http://layer1.cpanel.net/latest sh latest
Tags: Linux Commands · Linux Software / Scripts
Mod bandwidth
August 17th, 2009 by EZ linux · No Comments
keep in mind mod_bandwidth does not work with Apache 2.0, only Apache 1.3. The best option for Apache 2.0 is called Mod_Cband (Click the link for more details) Mod_bandwidth has changed to adding the varibles in one line code, now you must add the domain name and the limit all in one shot like this: [...]
Tags: Linux Commands · Linux Software / Scripts
Protected: Iprotect (iprot) step by step
August 17th, 2009 by EZ linux · Enter your password to view comments.
There is no excerpt because this is a protected post.
