<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet type="text/xsl" media="screen" href="/~d/styles/rss2full.xsl"?><?xml-stylesheet type="text/css" media="screen" href="http://feeds.feedburner.com/~d/styles/itemcontent.css"?><rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:atom="http://www.w3.org/2005/Atom" xmlns:sy="http://purl.org/rss/1.0/modules/syndication/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule" version="2.0">

<channel>
	<title>supaplex.info</title>
	
	<link>http://supaplex.info</link>
	<description>Otro blog más sobre seguridad</description>
	<lastBuildDate>Tue, 28 Feb 2012 11:23:27 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="self" type="application/rss+xml" href="http://feeds.feedburner.com/Supaplex" /><feedburner:info xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0" uri="supaplex" /><atom10:link xmlns:atom10="http://www.w3.org/2005/Atom" rel="hub" href="http://pubsubhubbub.appspot.com/" /><creativeCommons:license>http://creativecommons.org/licenses/by-nc/2.0/</creativeCommons:license><xhtml:meta xmlns:xhtml="http://www.w3.org/1999/xhtml" name="robots" content="noindex" /><feedburner:emailServiceId xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">Supaplex</feedburner:emailServiceId><feedburner:feedburnerHostname xmlns:feedburner="http://rssnamespace.org/feedburner/ext/1.0">http://feedburner.google.com</feedburner:feedburnerHostname><item>
		<title>Instalación y securización de Cpanel sobre GNU/Linux</title>
		<link>http://supaplex.info/2012/02/28/instalacion-y-securizacion-de-cpanel-sobre-gnulinux/</link>
		<comments>http://supaplex.info/2012/02/28/instalacion-y-securizacion-de-cpanel-sobre-gnulinux/#comments</comments>
		<pubDate>Tue, 28 Feb 2012 11:23:27 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[Firewall]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[hardening]]></category>
		<category><![CDATA[installation]]></category>
		<category><![CDATA[Security]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=70</guid>
		<description><![CDATA[Navegando por la red, me he encontrado con este documento escrito en inglés sobre cómo instalar y asegurar un servidor Cpanel sobre GNU/Linux. Es un poco antiguo, pero os servirá a muchos: ======================================= &#124;&#8212;&#8212;&#8212;&#8211;:[INFO]:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#124; &#124;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-&#124; &#124; Title: &#8220;Linux Hardening &#038; Security&#8221; &#124; &#124; Author: Krun!x &#124; QK &#124; &#124; E-Mail: only4lul@gmail.com &#124; &#124; Home: madspot.org <a href="http://supaplex.info/2012/02/28/instalacion-y-securizacion-de-cpanel-sobre-gnulinux/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Navegando por la red, me he encontrado con este documento escrito en inglés sobre cómo instalar y asegurar un servidor Cpanel sobre GNU/Linux. Es un poco antiguo, pero os servirá a muchos:</p>
<p>=======================================<br />
|&#8212;&#8212;&#8212;&#8211;:[INFO]:&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;|<br />
|&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-|<br />
| Title: &#8220;Linux Hardening &#038; Security&#8221; |<br />
| Author: Krun!x | QK                 |<br />
| E-Mail: only4lul@gmail.com          |<br />
| Home:   madspot.org | ljuska.org    |<br />
| Date:   2009-06-20                  |<br />
=======================================</p>
<p>Content:<br />
1) Intruduction<br />
2) cP/WHM Installation and cP/WHM Configuration<br />
3) The server and it&#8217;s services | PHP Installation, Optimization &#038; Security<br />
4) Kernel Hardening | Linux Kernel + Grsecurity Patch<br />
5) SSH<br />
6) Firewall | DDoS Protection<br />
7) Mod_Security<br />
 <img src='http://supaplex.info/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Anti-Virus &#8211; ClamAV<br />
9) Rootkit<br />
10) The Rest of Shits</p>
<p>===================<br />
| 1) Intruduction |<br />
===================</p>
<p>I wrote a step by step paper how to secure linux server with cP/WHM and<br />
Apache installed. By default, linux is not secured enough but you have<br />
to understand there is no such thing as &#8220;totally secured server/system&#8221;.<br />
The purpose of this paper is to understand how to at least provide some<br />
kind of security to the server. I prefer lsws web-server without any<br />
Control Panel at all but for this paper I have used CentOS 5 with cP/WHM<br />
and Apache web-server installed since a lot of hosting companies and<br />
individuals out there are using it.</p>
<p>Let&#8217;s start <img src='http://supaplex.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So, you bought the server with CentOS 5 installed. If you ordered cP/WHM together with the server you can skip 2.1 step</p>
<p>============================================<br />
| 2) cP/WHM installation and configuration |<br />
============================================<br />
2.1) cP/WHM Installation<br />
To begin your installation, use the following commands into SSH:<br />
   root@server [~]# cd /home<br />
   root@server [/home]# wget http://layer1.cpanel.net/latest<br />
   root@server [/home]# ./latest</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
cd /home &#8211; Opens /home directory<br />
wget http://layer1.cpanel.net/latest &#8211; Fetches the latest installation file from the cPanel servers.<br />
./latest &#8211; Opens and runs the installation files.<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>cP/WHM should be installed now. You should be able to access cP via<br />
http://serverip:2082(SSL-2083) or http://serverip/cpanel and WHM via<br />
http://serverip:2086(SSL-2087) or http://serverip/whm. Let&#8217;s configure<br />
it now.</p>
<p>2.2) cP/WHM Configuration<br />
Login to WHM using root username/passwd<br />
http://serverip:2086 or http://serverip/whm</p>
<p>WHM &#8211; Server setup &#8211; Tweak Security:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Enable open_basedir protection<br />
Disable Compilers for all accounts(except root)<br />
Enable Shell Bomb/memory Protection<br />
Enable cPHulk Brute Force Protection</p>
<p>WHM &#8211; Account Functions:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 Disable cPanel Demo Mode<br />
 Disable shell access for all accounts(except root)</p>
<p>WHM &#8211; Service Configuration &#8211; FTP Configuration:<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
 Disable anonymous FTP access</p>
<p>WHM &#8211; MySQL:<br />
&#8212;&#8212;&#8212;&#8212;-<br />
 Set some MySQL password(Don&#8217;t set the same password like for the root access)<br />
-If you didn&#8217;t set MySQL password someone will be able to login into the DB with<br />
username &#8220;root&#8221; without password and delete/edit/download any db on the server.</p>
<p>WHM &#8211; Service Configuration &#8211; Apache Configuration &#8211; PHP and SuExec Configuration<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
 Enable suEXEC &#8211; suEXEC = On<br />
When PHP runs as an Apache Module it executes as the user/group of the<br />
webserver which is usually &#8220;nobody&#8221; or &#8220;apache&#8221;. suEXEC changes this so<br />
scripts are run as a CGI. Than means scripts are executed as the user<br />
that created them. With suEXEC script permissions can&#8217;t be set to<br />
777(read/write/execute at user/group/world level)</p>
<p>===============================================================================<br />
| 3) The server and it&#8217;s services | PHP Installation, Optimization &#038; Security |<br />
===============================================================================</p>
<p>3.1) Keep all services and scripts up to date and make sure that you running the latest secured version.<br />
On CentOS type this into SSH to upgrade/update services on the server.<br />
[root@server ~]# yum upgrade<br />
or<br />
[root@server ~]# yum update</p>
<p>3.2) PHP installation/update, configuration and optimization + Suhosin patch<br />
First download what you need, type the following into SSH:<br />
root@server [~]# cd /root<br />
root@server [~]# wget http://www.php.net/get/php-5.2.9.tar.bz2/from/this/mirror<br />
root@server [~]# wget http://download.suhosin.org/suhosin-patch-5.2.8-0.9.6.3.patch.gz<br />
root@server [~]# wget http://download.suhosin.org/suhosin-0.9.27.tgz</p>
<p>Untar PHP:<br />
root@server [~]# tar xvjf php-5.2.9.tar.bz2</p>
<p>Patch the source:<br />
root@server [~]# gunzip < suhosin-patch-5.2.8-0.9.6.3.patch.gz | patch -p0</p>
<p>Configure the source. If you want to use the same config as you used for<br />
the last php build it's not a problem but you will have to add:<br />
enable-suhosin to old config. To get an old config type this into SSH:<br />
root@server [~]# php -i | grep ./configure</p>
<p>root@server [~]# cd php-5.2.9<br />
root@server [~/php-5.2.9]# ./configure --enable-suhosin + old config(add old config you got from "php -i | grep ./configure" here)<br />
root@server [~/php-5.2.9]# make<br />
root@server [~/php-5.2.9]# make install</p>
<p>Note: If you get an error like make: command not found or patch: Command<br />
not found, you will have to install "make" and "patch". It can be done<br />
easly. Just type this into SSH:<br />
root@server [~]# yum install make<br />
root@server [~]# yum install patch</p>
<p>Now check is everything as you want. Upload php script like this on the server:<br />
<?php<br />
phpinfo();<br />
?><br />
And open it via your browser and you will see your PHP configuration there.</p>
<p>3.3) Suhosin<br />
We will install Suhosin now, it&#8217;s an advanced protection system for PHP.<br />
root@server [~]# tar zxvf suhosin-0.9.27.tgz<br />
root@server [~]# cd suhosin-0.9.27<br />
root@server [~/suhosin-0.9.27]# phpize<br />
root@server [~/suhosin-0.9.27]# ./configure<br />
root@server [~/suhosin-0.9.27]# make<br />
root@server [~/suhosin-0.9.27]# make install</p>
<p>After you installed suhosin you will get something like this: It&#8217;s installed to /usr/local/lib/php/extensions/no-debug-non-zts-20060613/</p>
<p>Now edit your php.ini. If you don&#8217;t know where php.ini located is, type this into SSH.<br />
root@server [~]# php -i | grep php.ini<br />
Configuration File (php.ini) Path => /usr/local/lib<br />
Loaded Configuration File => /usr/local/lib/php.ini</p>
<p>It means you have to edit /usr/local/lib/php.ini<br />
Type into SHH:<br />
root@server [~]# nano /usr/local/lib/php.ini<br />
If you get an error, nano: Command not found, then:<br />
root@server [~]# yum install nano</p>
<p>Find &#8220;extension_dir =&#8221; and add:<br />
extension_dir = /usr/local/lib/php/extensions/no-debug-non-zts-20060613/<br />
To save it, CTRL + O and press the enter button on your keyboard.</p>
<p>3.4) Zend Optimizer:<br />
Download Zend Optimizer from http://www.zend.com/store/products/zend-optimizer.php<br />
root@server [~]# tar -zxvf ZendOptimizer-3.3.3-linux-glibc23-i386.tar.gz<br />
root@server [~]# cd ZendOptimizer-3.3.3-linux-glibc23-i386<br />
root@server [~/ZendOptimizer-3.3.3-linux-glibc23-i386]# ./install.sh<br />
   Welcome to Zend Optimizer installation&#8230;.. &#8211; Press Enter button<br />
   Zend licence agreement&#8230;                   &#8211; Press Enter button<br />
   Do you accept the terms of this licence&#8230;  &#8211; Yes, press Enter button<br />
   Location of Zend Optimizer&#8230;               &#8211; /usr/local/Zend, press Enter button<br />
   Confirm the location of your php.ini file&#8230;- /usr/local/lib, press Enter button<br />
   Are you using Apache web-server..           &#8211; Yes, press Enter button<br />
   Specify the full path to the Apache control utility(apachectl)&#8230;-/usr/local/apache/bin/apachectl, press Enter button<br />
   The installation has completed seccessfully&#8230;- Press Enter button</p>
<p>Now restart apache, type this into SSH:<br />
root@server [~]# service httpd restart</p>
<p>3.5) php.ini &#038; disabled functions<br />
Edit php.ini like this:<br />
root@server [~]# nano /usr/local/lib/php.ini<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
safe_mode = On<br />
expose_php = Off<br />
Enable_dl= Off<br />
magic_quotes = On<br />
register_globals = off<br />
display errors = off<br />
disable_functions = system, show_source, symlink, exec, dl,<br />
shell_exec, passthru, phpinfo, escapeshellarg,escapeshellcmd<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>root@server [~]# service httpd restart</p>
<p>Or you can edit php.ini via WHM:<br />
WHM &#8211; Service Configuration &#8211; PHP Configuration Editor</p>
<p>=========================================================<br />
| 4) Kernel Hardening | Linux Kernel + Grsecurity Patch |<br />
=========================================================</p>
<p>Description : grsecurity is an innovative approach to security utilizing<br />
a multi-layered detection, prevention, and containment model. It is<br />
licensed under the GPL. It offers among many other features:<br />
 -An intelligent and robust Role-Based Access Control (RBAC) system that can generate least privilege policies for your<br />
  entire system with no configuration<br />
 -Change root (chroot) hardening<br />
 -/tmp race prevention<br />
 -Extensive auditing<br />
 -Prevention of arbitrary code execution, regardless of the technique used (stack smashing, heap corruption, etc)<br />
 -Prevention of arbitrary code execution in the kernel<br />
 -Randomization of the stack, library, and heap bases<br />
 -Kernel stack base randomization<br />
 -Protection against exploitable null-pointer dereference bugs in the kernel<br />
 -Reduction of the risk of sensitive information being leaked by arbitrary-read kernel bugs<br />
 -A restriction that allows a user to only view his/her processes<br />
 -Security alerts and audits that contain the IP address of the person causing the alert</p>
<p>Downloading and patching kernel with grsecurity<br />
root@server [~]# cd /root<br />
root@server [~]# wget http://www.kernel.org/pub/linux/kernel/v2.6/linux-2.6.26.5.tar.gz<br />
root@server [~]# wget http://www.grsecurity.com/test/grsecurity-2.1.12-2.6.26.5-200809141715.patch<br />
root@server [~]# tar xzvf linux-2.6.26.5.tar.gz<br />
root@server [~]# patch -p0 < grsecurity-2.1.12-2.6.26.5-200809141715.patch<br />
root@server [~]# mv linux-2.6.26.5 linux-2.6.26.5-grsec<br />
root@server [~]# ln -s linux-2.6.26.5-grsec/ linux<br />
root@server [~/linux]# cd linux<br />
root@server [~/linux]# cp /boot/config-`uname -r` .config<br />
root@server [~/linux]# make oldconfig</p>
<p>Compile the Kernel:<br />
root@server [~/linux]# make bzImage<br />
root@server [~/linux]# make modules<br />
root@server [~/linux]# make modules_install<br />
root@server [~/linux]# make install</p>
<p>Check your grub loader config, and make sure default is 0<br />
root@server [~/linux]# nano /boot/grub/grub.conf</p>
<p>Reboot the server<br />
root@server [~/linux]# reboot</p>
<p>==========<br />
| 5) SSH |<br />
==========</p>
<p>In order to change SSH port and protocol you will have to edit sshd_config<br />
root@server [~]# nano /etc/ssh/sshd_config</p>
<p>Change Protocol 2,1 to Protocol 2<br />
Change #Port 22 to some other port and uncomment it<br />
Like, Port 1337</p>
<p>There is a lot of script kiddiez with brute forcers and they will try to crack our ssh pass because they know username is root, port is 22<br />
But we were smarter, we have changed SSH port <img src='http://supaplex.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /><br />
Also, their "brute forcing" can increase server load, which means our sites(hosted on that server) will be slower.</p>
<p>SSH Legal Message<br />
edit /etc/motd, write in motd something like this:<br />
"ALERT! That is a secured area. Your IP is logged. Administrator has been notified"</p>
<p>When someone logins into SSH he will see that message:<br />
ALERT! That is a secured area. Your IP is logged. Administrator has been notified</p>
<p>If you want to recieve an email every time when someone logins into SSH as root, edit .bash_profile(It's located in /root directory) and put this at the end of file:<br />
echo 'ALERT - Root Shell Access on:' `date` `who` | mail -s "Alert: Root Access from `who | awk '{print $6}'`" mail@something.com</p>
<p>And at the end restart SSH, type "service sshd restart" into SSH</p>
<p>=================================<br />
| 6) Firewall | DDoS Protection |<br />
=================================</p>
<p>6.1) Firewall, CSF Installation<br />
root@server [~]# wget http://www.configserver.com/free/csf.tgz<br />
root@server [~]# tar -xzf csf.tgz<br />
root@server [~]# cd csf</p>
<p>In order to install csf your server needs to have some ipt modules<br />
enabled. csftest is a perl script and it comes with csf. You can check<br />
those mudules with it.<br />
root@server [~/csf]# ./csftest.pl<br />
The output should be like this:</p>
<p>root@server [~/csf]# ./csftest.pl<br />
Testing ip_tables/iptable_filter...OK<br />
Testing ipt_LOG...OK<br />
Testing ipt_multiport/xt_multiport...OK<br />
Testing ipt_REJECT...OK<br />
Testing ipt_state/xt_state...OK<br />
Testing ipt_limit/xt_limit...OK<br />
Testing ipt_recent...OK<br />
Testing ipt_owner...OK<br />
Testing iptable_nat/ipt_REDIRECT...OK</p>
<p>Don't worry if you don't have all those mudules enabled, csf will work if<br />
you didn't get any FATAL errors at the end of the output.</p>
<p>Now, get to installation<br />
root@server [~/csf]# ./install.sh</p>
<p>You will have to edit csf.conf file. It's located here:<br />
/etc/csf/csf.conf</p>
<p>You need to edit it like this:<br />
Testing = "0"</p>
<p>And you need to configure open ports in csf.conf or you won't be able to<br />
access these ports. In most cases it should be configured like this if<br />
you are using cP/WHM. If you are running something on some other port<br />
you will have to enable it here. If you changed SSH port you will have<br />
to add a new port here:<br />
# Allow incoming TCP ports<br />
TCP_IN = "20,21,22,25,53,80,110,143,443,465,587,993,995,2077,2078,2082,2083,2086,2087,2095,2096"<br />
# Allow outgoing TCP ports<br />
TCP_OUT = "20,21,22,25,37,43,53,80,110,113,443,587,873,2087,2089,2703"</p>
<p>6.2) CSF Connection Limit<br />
There is in csf.conf CT option, configure it like this<br />
CT_LIMIT = "200"<br />
It means every IP with more than 200 connections is going to be blocked.<br />
CT_PERMANENT = "1"<br />
IP will blocked permanenty<br />
CT_BLOCK_TIME = "1800"<br />
IP will be blocked 1800 secs(1800 secs = 30 mins)<br />
CT_INTERVAL = "60"<br />
Set this to the the number of seconds between connection tracking scans.</p>
<p>After csf.conf editing you need to restart csf<br />
root@server [~# service csf restart</p>
<p>6.3) SYN Cookies<br />
Edit the /etc/sysctl.conf file and add the following line in order to enable SYN cookies protection:<br />
-----------------------------------<br />
# Enable TCP SYN Cookie Protection<br />
net.ipv4.tcp_syncookies = 1<br />
-----------------------------------</p>
<p>root@server [~/]# service network restart</p>
<p>6.4) CSF as security testing tool<br />
CSF has an option "Server Security Check". Go to WHM - Plugins - CSF -<br />
Test Server Security. You will see additional steps how to secure the<br />
server even more. I'm writing only about most important things here and<br />
I covered most of them in the paper but if you want you can follow steps<br />
provided by CSF to get the server even more secured.</p>
<p>6.5) Mod_Evasive<br />
ModEvasive module for apache offers protection against DDoS (denial of service attacks) on your server. </p>
<p>To install it login into SSH and type:</p>
<p>---------------------------------------------------------------------------------<br />
root@server [~]# cd /root/<br />
root@server [~]# wget http://www.zdziarski.com/projects/mod_evasive/mod_evasive_1.10.1.tar.gz<br />
root@server [~]# tar zxf mode_evasive-1.10.1.tar.gz<br />
root@server [~]# cd mod_evasive</p>
<p>then type...<br />
root@server [~/mod_evasive]# /usr/sbin/apxs -cia mod_evasive20.c<br />
---------------------------------------------------------------------------------</p>
<p>When mod_evasive is  installed, place the following lines in your httpd.conf (/etc/httpd/conf/httpd.conf)</p>
<p>--------------------------------<br />
<IfModule mod_evasive20.c><br />
DOSHashTableSize 3097<br />
DOSPageCount 2<br />
DOSSiteCount 50<br />
DOSPageInterval 1<br />
DOSSiteInterval 1<br />
DOSBlockingPeriod 10<br />
</IfModule><br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>6.6) Random things:<br />
csf -d IP &#8211; Block an IP with CSF<br />
csf -dr IP &#8211; Unblock an IP with CSF<br />
csf -s &#8211; Start firewall rules<br />
csf -f &#8211; Flush/stop firewall rules<br />
csf -r &#8211; Restart firewall rules<br />
csf -x &#8211; Disable CSF<br />
csf -e &#8211; Enable CSF<br />
csf -c &#8211; Check for updates<br />
csf -h &#8211; Show help screen</p>
<p>-Block an IP via iptables<br />
iptables -A INPUT -s IP -j DROP</p>
<p>-Unblock an IP via iptables<br />
iptables -A INPUT -s IP -j ACCEPT</p>
<p>-See how many IP addresses are connected to the server and how many connections has each of them.<br />
netstat -ntu | awk &#8216;{print $5}&#8217; | cut -d: -f1 | sort | uniq -c | sort -n</p>
<p>===================<br />
| 7) Mod_Security |<br />
===================</p>
<p>Mod_Security is a web application firewall and he can help us to secure our sites against RFI, LFI, XSS, SQL Injection etc</p>
<p>If you use cP/WHM you can easly enable Mod_security in WHM &#8211; Plugins &#8211; Enable Mod_Security and save</p>
<p>Now I will explain how to install Mod_security from source.<br />
You can&#8217;t install Mod_Security if you don&#8217;t have libxml2 and http-devel libraries.<br />
Also, you need to enable mod_unique_id in apache modules, but don&#8217;t worry, I will explain how to do it <img src='http://supaplex.info/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>Login into SSH and type&#8230;</p>
<p>root@server [~]# yum install libxml2 libxml2-devel httpd-devel</p>
<p>libxml2 libxml2-devel httpd-devel should be installed now</p>
<p>then you need to edit httpd.conf file, you can find it here:<br />
root@server [~]# nano /etc/httpd/conf/httpd.conf</p>
<p>You need to add this in your httpd.conf file<br />
LoadModule unique_id_module modules/mod_unique_id.so</p>
<p>Now download the latest version of mod_security for apache2 from http://www.modsecurity.org</p>
<p>login into SSH and type&#8230;</p>
<p>root@server [~]# cd /root/<br />
root@server [~]# wget http://www.modsecurity.org/download/modsecurity-apache_2.5.6.tar.gz<br />
root@server [~]# tar zxf modsecurity-apache_2.5.6.tar.gz<br />
root@server [~]# cd modsecurity-apache_2.5.6<br />
root@server [~/modsecurity-apache_2.5.6]# cd apache2</p>
<p>then type:<br />
root@server [~/modsecurity-apache_2.5.6/apache2]#  ./configure<br />
root@server [~/modsecurity-apache_2.5.6/apache2]# make<br />
root@server [~/modsecurity-apache_2.5.6/apache2]# make install</p>
<p>Go at the end of httpd.conf and place an include for our config/rules file&#8230;<br />
Include /etc/httpd/conf/modsecurity.conf</p>
<p>&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
# /etc/httpd/conf/httpd.conf</p>
<p>LoadModule unique_id_module modules/mod_unique_id.so<br />
LoadFile /usr/lib/libxml2.so<br />
LoadModule security2_module modules/mod_security2.so<br />
Include /etc/httpd/conf/modsecurity.conf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>You need to find a good rules for Mod_Security. You can find them at<br />
official Mod_Security site. Also, give a try to gotroot.com rules. When<br />
you find a good rules, just put them in /etc/httpd/conf/modsecurity.conf</p>
<p>And restart httpd at the end, type &#8220;service httpd restart&#8221; into SSH.</p>
<p>==========================<br />
| <img src='http://supaplex.info/wp-includes/images/smilies/icon_cool.gif' alt='8)' class='wp-smiley' /> Anti-Virus &#8211; ClamAV |<br />
==========================</p>
<p>You need AV protection to protect the server against worms and trojans<br />
invading your mailbox and files! Just install clamav (a free open source<br />
antivirus software for linux). More information can be found on clamav.<br />
website &#8211; http://www.clamav.net</p>
<p>In order to install CLamAV login into SSH and type</p>
<p>root@server [~]# yum install clamav</p>
<p>Once you have installed clamav for your CentOS, here are some basic commands you will need:</p>
<p>Update the antivirus database<br />
root@server [~]# freshclam</p>
<p>Run antivirus<br />
root@server [~]# clamscan -r /home</p>
<p>Running as Cron Daily Job<br />
To run antivirus as a cron job (automatically scan daily) just run<br />
crontab -e from your command line. Then add the following line and save<br />
the file.<br />
@daily root clamscan -R /home</p>
<p>It means clamav will be scanning /home directory every day. You can change the folder to whatever you want to scan.</p>
<p>==============<br />
| 9) Rootkit |<br />
==============</p>
<p>Rootkit scanner is scanning tool to ensure you for about 99.9%* you&#8217;re clean of nasty tools.<br />
This tool scans for rootkits, backdoors and local exploits by running tests like:<br />
 -MD5 hash compare<br />
 -Look for default files used by rootkits<br />
 -Wrong file permissions for binaries<br />
 -Look for suspected strings in LKM and KLD modules<br />
 -Look for hidden files<br />
 -Optional scan within plaintext and binary files</p>
<p>Instalation:</p>
<p>Login into SSH and type</p>
<p>root@server [~]# cd /root/<br />
root@server [~]# wget http://downloads.rootkit.nl/rkhunter-1.2.7.tar.gz<br />
root@server [~]# tar -zxvf rkhunter-1.2.7.tar.gz<br />
root@server [~]# cd rkhunter<br />
root@server [~rkhunter]# ./installer.sh</p>
<p>Scan the server with rkhunter<br />
root@server [~]# rkhunter -c</p>
<p>=========================<br />
| 10) The Rest of Shits |<br />
=========================</p>
<p>10.1) Random suggestions</p>
<p>If you use bind DNS server then we need to edit named.conf file<br />
named.conf is located here: /etc/named.conf</p>
<p>and add<br />
recursion no; under Options<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-<br />
Options{<br />
recursion no;<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;-</p>
<p>Now restart bind, type into SSH<br />
root@server [~]# service named restart</p>
<p>This will prevent lookups from dnstools.com and similar services and reduce server load</p>
<p>In order to prevent IP spoofing, you need to edit host.conf file like this:<br />
This file is located here: /etc/host.conf<br />
Add that in host.conf<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;<br />
order bind,hosts<br />
nospoof on<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;</p>
<p>Hide the Apache version number:</p>
<p>edit httpd.conf (/etc/httpd/conf/httpd.conf)<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
ServerSignature Off<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;</p>
<p>10.2) Passwords<br />
Don&#8217;t use the same password you are using for the server on some other places.<br />
When the Datacenter contacts you via e-mail or phone, always request<br />
more informations. Remember, someone alse could contact you to get some<br />
information or even root passwords.</p>
<p>10.3) Random thoughts<br />
No matter what you need to secure the server, don&#8217;t think you are safe<br />
only because you are not personally involved in any shits with<br />
&#8220;hackers&#8221;. When you are hosting hacking/warez related sites you are the<br />
target. There is no such thing as totally secured server. Most important<br />
things are backups, make sure you will always have an &#8220;up-to-date&#8221;<br />
offsite backups ^^</p>
<p>Anyhow, this is the end of my paper, I hope it will help you to get some<br />
kind of security to your server.</p>
<p>-Krun!x</p>
<p>Via| Packet Storm Security: http://dl.packetstormsecurity.net/papers/general/linux-hardening.txt</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2012/02/28/instalacion-y-securizacion-de-cpanel-sobre-gnulinux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Gooscan: Uso básico (inglés)</title>
		<link>http://supaplex.info/2011/11/06/gooscan-uso-basico-ingles/</link>
		<comments>http://supaplex.info/2011/11/06/gooscan-uso-basico-ingles/#comments</comments>
		<pubDate>Sun, 06 Nov 2011 00:26:05 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Descuidos]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Revelación de información]]></category>
		<category><![CDATA[Vídeos]]></category>
		<category><![CDATA[google hacking]]></category>
		<category><![CDATA[gooscan]]></category>
		<category><![CDATA[vídeo]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=68</guid>
		<description />
			<content:encoded><![CDATA[<p><iframe src="http://player.vimeo.com/video/6843726?title=0&amp;byline=0&amp;portrait=0" width="500" height="480" frameborder="0" webkitAllowFullScreen allowFullScreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2011/11/06/gooscan-uso-basico-ingles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Estrenando servidor</title>
		<link>http://supaplex.info/2011/11/06/estrenando-servidor/</link>
		<comments>http://supaplex.info/2011/11/06/estrenando-servidor/#comments</comments>
		<pubDate>Sat, 05 Nov 2011 23:01:26 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Personal]]></category>
		<category><![CDATA[migración]]></category>
		<category><![CDATA[nginx]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=64</guid>
		<description><![CDATA[Sí, acabo de mudar (y muchos más que me quedan) el contenido de este blog a otro servidor con NGINX. A lo largo de estos días intentaré postear algo, ya que lo tengo bastante abandonado. ¡Saludos!]]></description>
			<content:encoded><![CDATA[<p>Sí, acabo de mudar (y muchos más que me quedan) el contenido de este blog a otro servidor con NGINX.</p>
<p>A lo largo de estos días intentaré postear algo, ya que lo tengo bastante abandonado.</p>
<p>¡Saludos!</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2011/11/06/estrenando-servidor/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Password sniffing básico con ettercap</title>
		<link>http://supaplex.info/2011/07/30/password-sniffing-basico-con-ettercap/</link>
		<comments>http://supaplex.info/2011/07/30/password-sniffing-basico-con-ettercap/#comments</comments>
		<pubDate>Sat, 30 Jul 2011 08:07:19 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Revelación de información]]></category>
		<category><![CDATA[Sniffers]]></category>
		<category><![CDATA[Vídeos]]></category>
		<category><![CDATA[ettercap]]></category>
		<category><![CDATA[password]]></category>
		<category><![CDATA[sniffing]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=61</guid>
		<description />
			<content:encoded><![CDATA[<p><iframe width="425" height="349" src="http://www.youtube.com/embed/hmXJXCiMoCU" frameborder="0" allowfullscreen></iframe></p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2011/07/30/password-sniffing-basico-con-ettercap/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Python for hackers: Haz tus propias tools</title>
		<link>http://supaplex.info/2011/07/16/python-for-hackers-haz-tus-propias-tools/</link>
		<comments>http://supaplex.info/2011/07/16/python-for-hackers-haz-tus-propias-tools/#comments</comments>
		<pubDate>Sat, 16 Jul 2011 20:56:37 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Programación]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Vídeos]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[programar]]></category>
		<category><![CDATA[python]]></category>
		<category><![CDATA[vídeo]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=58</guid>
		<description><![CDATA[Interesante vídeo muy sencillo sobre cómo hacer tus propias tools en Python. Parte 1: [HD] Python for Hackers / Networkers Primer Part 1: Code your own Server/Client and start analyzing with Scapy from Rene Schallner on Vimeo. Parte 2: Python for Hackers / Networkers Primer Part 2: Multithreaded Server and use the Force in Scapy! <a href="http://supaplex.info/2011/07/16/python-for-hackers-haz-tus-propias-tools/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Interesante vídeo muy sencillo sobre cómo hacer tus propias tools en Python.</p>
<p>Parte 1:</p>
<p><iframe src="http://player.vimeo.com/video/24570637?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>
<p><a href="http://vimeo.com/24570637">[HD] Python for Hackers / Networkers Primer Part 1: Code your own Server/Client and start analyzing with Scapy</a> from <a href="http://vimeo.com/ranamann">Rene Schallner</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
<p>Parte 2:</p>
<p><iframe src="http://player.vimeo.com/video/24763819?title=0&amp;byline=0&amp;portrait=0" width="400" height="225" frameborder="0"></iframe>
<p><a href="http://vimeo.com/24763819">Python for Hackers / Networkers Primer Part 2: Multithreaded Server and use the Force in Scapy!</a> from <a href="http://vimeo.com/user7192759">Patrick Schallner</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2011/07/16/python-for-hackers-haz-tus-propias-tools/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>PHP shell upload a través de MySQL injection</title>
		<link>http://supaplex.info/2011/05/23/php-shell-upload-a-traves-de-mysql-injection/</link>
		<comments>http://supaplex.info/2011/05/23/php-shell-upload-a-traves-de-mysql-injection/#comments</comments>
		<pubDate>Mon, 23 May 2011 08:37:18 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[MySQL Injection]]></category>
		<category><![CDATA[mysql injection]]></category>
		<category><![CDATA[php shell upload]]></category>
		<category><![CDATA[sqlmap]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=55</guid>
		<description><![CDATA[En el siguiente vídeo podemos ver una simulación de cómo un atacante, a través de MySQL injection y usando sqlmap, consigue la contraseña de root para MySQL e inyecta una shell en PHP. SQLMap SQL Injection upload PHP Shell via Mysql from Kurapiko on Vimeo.]]></description>
			<content:encoded><![CDATA[<p>En el siguiente vídeo podemos ver una simulación de cómo un atacante, a través de MySQL injection y usando sqlmap, consigue la contraseña de root para MySQL e inyecta una shell en PHP.
<p>
<iframe src="http://player.vimeo.com/video/23759648?title=0&amp;byline=0&amp;portrait=0" width="400" height="250" frameborder="0"></iframe>
<p><a href="http://vimeo.com/23759648">SQLMap SQL Injection upload PHP Shell via Mysql</a> from <a href="http://vimeo.com/user6756801">Kurapiko</a> on <a href="http://vimeo.com">Vimeo</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2011/05/23/php-shell-upload-a-traves-de-mysql-injection/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ejecución remota de código en Exim 4.69</title>
		<link>http://supaplex.info/2010/12/25/ejecucion-remota-de-codigo-en-exim-4-69/</link>
		<comments>http://supaplex.info/2010/12/25/ejecucion-remota-de-codigo-en-exim-4-69/#comments</comments>
		<pubDate>Sat, 25 Dec 2010 11:32:37 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[0day]]></category>
		<category><![CDATA[Elevación de privilegios]]></category>
		<category><![CDATA[Exploits]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[CVE]]></category>
		<category><![CDATA[Exim]]></category>
		<category><![CDATA[remote exploit]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=49</guid>
		<description><![CDATA[Este mes ha sido un poco movido para los administradores de sistemas, particularmente para los que en sus máquinas tienen instalado Exim como MTA. Mensajes como este: http://www.exim.org/lurker/message/20101207.215955.bb32d4f2.en.html puso en alerta a muchos, para en cuanto se confirmara que en efecto había un 0day para Exim circulando, pulsar el botón de pánico y actualizar el <a href="http://supaplex.info/2010/12/25/ejecucion-remota-de-codigo-en-exim-4-69/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Este mes ha sido un poco movido para los administradores de sistemas, particularmente para los que en sus máquinas tienen instalado Exim como MTA. Mensajes como este:</p>
<p>http://www.exim.org/lurker/message/20101207.215955.bb32d4f2.en.html</p>
<p>puso en alerta a muchos, para en cuanto se confirmara que en efecto había un 0day para Exim circulando, pulsar el botón de pánico y actualizar el paquete de Exim lo más rápido posible o bien restringir el acceso al mismo de alguna forma para que no se produciera ningún acceso no autorizado.</p>
<p>CVE-2010-4344</p>
<p>Un debordamiento de búfer basado en pila en la función string_vformat en el archivo string.c en versiones anteriores de Exim a 4.70 podría permitir a un atacante remoto ejecutar código arbitrario a través de una sesión SMTP con dos peticiones MAIL y cabeceras especialmente manipuladas.</p>
<p>CVE-2010-4345</p>
<p>En versiones anteriores a Exim 4.72 existe una vulnerabilidad que podría permitir a un atacante local elevar privilegios a través de un fichero de configuración especialmente manipulado conteniendo comandos arbitrarios en él, que serían ejecutados como root.</p>
<p>Para el segundo CVE existe un workaround, pero se recomienda imperiosamente actualizar Exim, para evitar problemas.</p>
<p>Os dejo un vídeo en donde se muestra, a modo de prueba, el funcionamiento de la vulnerabilidad.</p>
<p>
<object width="640" height="385"><param name="movie" value="http://www.youtube.com/v/DnSgOGIxjaQ?fs=1&amp;hl=es_ES"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/DnSgOGIxjaQ?fs=1&amp;hl=es_ES" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="640" height="385"></embed></object><br />
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2010/12/25/ejecucion-remota-de-codigo-en-exim-4-69/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Demostraciones de panel de control</title>
		<link>http://supaplex.info/2010/09/05/demostraciones-de-panel-de-control/</link>
		<comments>http://supaplex.info/2010/09/05/demostraciones-de-panel-de-control/#comments</comments>
		<pubDate>Sun, 05 Sep 2010 10:02:42 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Descuidos]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[exploits]]></category>
		<category><![CDATA[osCommerce]]></category>
		<category><![CDATA[panel de control]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=45</guid>
		<description><![CDATA[Muchas empresas de hosting como bien sabréis ponen demos de sus páneles de control en sus páginas. En realidad es una buena idea, captas a más clientes ya que pueden probar qué tal funciona y si se ajusta a lo que ellos están buscando. El problema viene cuando estas empresas no los aseguran correctamente. En <a href="http://supaplex.info/2010/09/05/demostraciones-de-panel-de-control/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Muchas empresas de hosting como bien sabréis ponen demos de sus páneles de control en sus páginas. En realidad es una buena idea, captas a más clientes ya que pueden probar qué tal funciona y si se ajusta a lo que ellos están buscando. El problema viene cuando estas empresas no los aseguran correctamente.</p>
<p>En muchas ocasiones también las empresas (sobre todo de programación y diseño de tiendas, remodelación de Joomla, etc) usan versiones para hacer sus diseños y retoques demasiado anticuadas. Se informó a una de ellas, que el osCommerce que tenían para un dominio en cuestión estaba anticuado. Más concretamente del año 2005 (sí, leíste bien). Dicha empresa se percató de que cuando entraban a través de una búsqueda de Google, éste les advertía de que el dominio en cuestión podría infectar su equipo. Vamos, lo típico. Se revisó los archivos y efectivamente habían vulnerado la página y por consiguiente el servidor pero sin llegar a mayores. Se comunica a dicha empresa, encargada del re diseño del osCommerce que tienen una versión instalada vulnerable, sus archivos fueron movidos por seguridad, para que subieran una versión parcheada o no vulnerable de este software para tiendas en internet.</p>
<p><img class="aligncenter" title="OsCommerce" src="http://i1-news.softpedia-static.com/images/news2/osCommerce-Vulnerability-Exploited-to-Distribute-Scareware-2.jpg" alt="OsCommerce" width="460" height="300" /></p>
<p>La respuesta de esta empresa fue que, la empresa que daba hospedaje era una empresa mediocre por mover los archivos sin permiso y que ellos le darían al cliente un servicio correcto, limpio y sin hacer ese tipo de &#8220;marranadas&#8221;. Bueno, veamos qué tal está esta empresa. La página muy bonita, sobre osCommerce también&#8230; todo correcto pero, echemos un vistazo a sus demos del panel de control.</p>
<p>La empresa, tenía como demostración del panel de control (osCommerce) una versión antigua también y echando un vistazo a las vulnerabilidades que se fueron detectando, vemos que hay una reciente, que permite a un atacante remoto subir un archivo a a través del administrador de ficheros, dentro de la sección del administrador, sin estar autentificado. Efectivamente, el problema existe y esta empresa, con su servicio limpio, era totalmente vulnerable de la misma forma que entraron al otro servidor, en la empresa supuestamente sucia y que movió sus archivos por precaución (bien hecho, por cierto). Sin ir más lejos, el servidor vulnerable es el que aloja la página principal de la empresa &#8220;limpia&#8221;.</p>
<p>Resumiendo, muchas empresas de re diseño web, programación de páginas web a medida basándose en CMS como Joomla, etc; usan versiones antiguas para no adaptar sus diseños a las versiones nuevas y no vulnerables por pura pereza. El problema viene cuando revientan el servidor y tienen que dar explicaciones a sus clientes. En las mismas páginas de estos productos suelen existir demostraciones de este software, bien aseguradas, para que esto no ocurra, entonces: ¿por qué no incluir estos enlaces para probar el panel de control? O mejor aún: ¿por qué no se aseguran adecuadamente para que este tipo de cosas no ocurran? Siempre se ve la paja en el ojo ajeno y no en el propio. Cuando las barbas del vecino veas cortar&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2010/09/05/demostraciones-de-panel-de-control/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tutorial de IPTABLES (inglés)</title>
		<link>http://supaplex.info/2010/08/04/tutorial-de-iptables-ingles/</link>
		<comments>http://supaplex.info/2010/08/04/tutorial-de-iptables-ingles/#comments</comments>
		<pubDate>Wed, 04 Aug 2010 20:40:17 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Firewall]]></category>
		<category><![CDATA[GNU/Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[cortafuegos linux]]></category>
		<category><![CDATA[firewall linux]]></category>
		<category><![CDATA[iptables tutorial]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=41</guid>
		<description><![CDATA[Sé que muchos de vosotros (al igual que yo) tiene como asignatura pendiente el poder controlar correctamente IPTABLES. Por motivos que no diré aquí yo soy uno de ellos, así que quiero compartir con vosotros estos vídeos ya que os serán de gran ayuda. Están en inglés pero son fáciles de entender. IPTABLES es *esencial* <a href="http://supaplex.info/2010/08/04/tutorial-de-iptables-ingles/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Sé que muchos de vosotros (al igual que yo) tiene como asignatura pendiente el poder controlar correctamente IPTABLES. Por motivos que no diré aquí yo soy uno de ellos, así que quiero compartir con vosotros estos vídeos ya que os serán de gran ayuda. Están en inglés pero son fáciles de entender. IPTABLES es *esencial* a la hora de administrar correctamente y como seguramente ya sabréis tener un control medio/alto de esto es EXTREMADAMENTE importante.</p>
<p>Parte uno:<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/ldB8kDEtTZA&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/ldB8kDEtTZA&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
<p>Parte dos:<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/aDaEXxRHeXY&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/aDaEXxRHeXY&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
<p>Parte tres:<br />
<object width="480" height="385"><param name="movie" value="http://www.youtube.com/v/JojqHKcSxpo&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/JojqHKcSxpo&amp;hl=es_ES&amp;fs=1?color1=0x5d1719&amp;color2=0xcd311b" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="480" height="385"></embed></object>
<p>Que los disfrutéis.</p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2010/08/04/tutorial-de-iptables-ingles/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Google: esa buena herramienta</title>
		<link>http://supaplex.info/2010/05/12/google-esa-buena-herramienta/</link>
		<comments>http://supaplex.info/2010/05/12/google-esa-buena-herramienta/#comments</comments>
		<pubDate>Tue, 11 May 2010 22:35:47 +0000</pubDate>
		<dc:creator>sidious</dc:creator>
				<category><![CDATA[Descuidos]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[Revelación de información]]></category>
		<category><![CDATA[Cpanel]]></category>
		<category><![CDATA[index]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://supaplex.info/?p=37</guid>
		<description><![CDATA[Y es que el señor Google tiene las manos muy largas. Sabe meterse donde no le llaman y es sigiloso. Basta con meter alguna palabra aquí en su buscador, otra allá&#8230; y tenemos la combinación cerradura/candado perfecta. Arrancas el navegador, metes una palabra a mala idea y pasa lo siguiente: Y es en este momento <a href="http://supaplex.info/2010/05/12/google-esa-buena-herramienta/"> read more <span class="meta-nav">&#187;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Y es que el señor Google tiene las manos muy largas. Sabe meterse donde no le llaman y es sigiloso. Basta con meter alguna palabra aquí en su buscador, otra allá&#8230; y tenemos la combinación cerradura/candado perfecta. Arrancas el navegador, metes una palabra a mala idea y pasa lo siguiente:</p>
<p>Y es en este momento cuando abres más los ojos a pesar de que el sueño no te deja y sientes ese hormigueo en los dedos. Oh wait! ¿Cómo es posible?</p>
<pre>postmaster:$1$isps3W.L$yEPGcB3b/XXXXXXXXXXXXX:1:0:Postmaster:/home/vpopmail/domains/XXXXXX.net/postmaster:NOQUOTA:mq5sk5
</pre>
<p>**TODAS** las cuentas de correo del dominio en cuestión, visibles desde un navegador. Revisando un poco más podemos ver cómo son en su mayoría cuentas de hospedaje en empresas de hosting de todas partes. Evidentemente tienen Cpanel instalado pero, ¿por qué demonios tienen indexado a través de web el correo electrónico de la mayoría de los dominios? ¿Qué pasaría si vemos cuántos dominios tienen alojados en cada servidor y nos dedicamos a revisar el correo del personal? Maravillado quedo:</p>
<div id="sbfrm_l">
<div id="resultStats">Página 2 de aproximadamente  1.450 resultados  (0,08 segundos)</div>
</div>
<p>¿Tienes un pack revendedor? ¡Mejor aún! Todos tus dominios estarán visibles.</p>
<p>Se supone que lo que tiene que indexar Apache en Cpanel de cada cuenta de hospedaje es /home/usuario/public_html/ pero veo cómo muchos administradores de sistemas tienen indexado un directorio atrás así que te podrás imaginar la seguridad que tienes cuando esto ocurre.</p>
<p>A parte ya del correo, me encuentro con cosas como los directorios /backup/, que no tenían que ver con la búsqueda que hice pero que aparecen en mi pantalla. Evidentemente no voy a poner la búsqueda que realicé aquí, sólo esto para que os déis cuenta:</p>
<p><img class="aligncenter" title="Carpetas3" src="http://supaplex.info/wp-content/uploads/2010/05/carpetas3.JPG" alt="Carpetas con búsqueda" width="524" height="75" /></p>
]]></content:encoded>
			<wfw:commentRss>http://supaplex.info/2010/05/12/google-esa-buena-herramienta/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

