lunes, 26 de noviembre de 2007

Troyanizando VNC by Gospel

Luego de obtener una shell remota, acá tienen un excelente tutorial de Gospel de como troyanizar VNC:

http://www.4shared.com/file/30432443/532149b9/GospelfeatZhyzura-TroyanizandoVNCControlRemotoInvisible.html

sábado, 10 de noviembre de 2007

Debian en Castellano

Debian en castellano

Para tener las aplicaciones en nuestro idioma lo primero que necesitamos es instalar los siguientes paquetes:

#apt-get install user-euro-es language-env euro-support

Una vez hayamos realizado el apt-get, para ver \los locales" (idiomas locales) que tiene el usuario que se encuentra actualmente conectado, hay que ejecutar el siguiente comando:

$locale

Si además queremos saber que traducciones locales tenemos disponibles en el sistema, ejecutaremos la siguiente instrucción:

$locale -a

Si el idioma castellano, no se encuentra disponible entre las locales del sistema las podemos incluir en el archivo de configuración de locales, /etc/locale.gen. Para ello añadiremos al final de ese archivo las siguientes líneas:

es_ES@euro ISO-8859-15
es_ES ISO-8859-1


Una vez añadidas al archivo necesitamos que las ejecute y reconfigure nuestro sistema, mediante el comando:

#/usr/sbin/locale-gen

Además en unos de los ficheros que carga las variables de usuario añadiremos las siguientes variables de entorno. Por ejemplo en el archivo ~/.bash profile:

export LANG=es_ES.ISO-8859-15
export LC_ALL=es_ES@euro


La próxima vez que hagamos login con el usuario cargará el nuevo perfil. Podemos comprobamos que \los locales" son los correctos, con el mismo comando que antes:

$locale

320 Servidor Linux para conexiones seguras de una LAN a Internet
Una vez tengamos disponible el idioma castellano, podemos habilitar también el soporte para el euro en la consola. Pasa eso tenemos que añadir las siguientes líneas al fichero /etc/console-tools/config, fichero de configuración de la consola:

SCREEN_FONT=lat0-sun16
APP_CHARSET_MAP=iso15
APP_CHARSET_MAP_vc2=iso15
APP_CHARSET_MAP_vc3=iso15


Si ademñas también queremos colocar las páginas de manuales en castellano hay que instalar los siguientes paquetes:

#apt-get install user-es manpages-es manpages-es-extra

Solo queda castellanizar las aplicaciones del sistema, si es que tienen los archivos del idioma. Hay que ejecutar el siguiente comando, seleccionando las opciones que nos interesen:

#dpkg-reconfigure locales,

Este documento esta basado en la documentación disponible en Debian, se puede consultar mediante:

$man castellanizar

Video-Tutorial para Ponerle Password al Grub

Al principio del video tutorial veran como edito las lineas del grub sin ingresar ningun password, esto es un problema, porque
cualquier persona puede sentarse en nuestro servidor tipear la letra "e" en el grub y simplemente ponerle al init una shell como
explicamos en el video anterior.

Lo que haremos ahora sera agregar un password al grub y no se podra realizar una modificacion salvo se ingrese una contraseña.

Bueno el video esta mas que claro.

Tengan un poco de paciencia que tarda en cargar porque no tengo una pc de las ultimas y esta hecho en vmware.

Saludos


Descarga de Video-Tutorial:
http://www.4shared.com/file/28901826/6ac56bcd/Agregar_password_al_grub.html

viernes, 9 de noviembre de 2007

Video-Tutorial Resetear password de Root

Acá les dejo un simple video-tutorial en el cual explico como resetear el password de root desde el Grub (Gestor de Arranque).

Link de la Descarga: http://www.4shared.com/file/28829362/71b92d1b/resetear_pass_de_root.html

viernes, 12 de octubre de 2007

Virtualizar Linux debian 4.0 CLI con Xen

Debian Etch And Xen From The Debian Repository
Version 1.0
Author: Michele Petrazzo "michele [dot] petrazzo [at] unipex [dot] it"
Last edit: Jan/27/2007

Preface

This how-to provides step-by-step instructions on how to install Xen on an already working Debian Etch system. You can find all the software used here in the Etch repository, so no external files or compilation are needed.

Installation

After logging in on a terminal (console or ssh), let's start with the kernel, libc (Xen version) and all the tools needed for making Xen work:

Here I use the vserver kernel version also because I do a complete installation since I need also vserver. If you don't need vserver, simply use the kernel linux-image-2.6-xen-686 instead (so without vserver string inside). If you don't know what vservers are, leave it... It doesn't make problems!

xen-test:~# apt-get install linux-image-2.6-xen-vserver-686 xen-hypervisor-3.0.3-1-i386-pae xen-tools xen-linux-system-2.6.18-4-xen-vserver-686 linux-headers-2.6-xen-vserver-686 libc6-xen bridge-utils

Now we have just installed Xen with its patched kernel, all the tools for creating and modifying the images (Xen calls it domains) and the new libc6 with the Xen patch that removes the annoying tls problem (see the Xen Faq for more info).

If you have a CPU that supports hardware virtualization (see HVM Compatible Processors) and you want full virtualization of unmodified operating systems, such as Microsoft's Windows product line, and standard Linux kernels, you should install the xen-ioemu package:

xen-test:~# apt-get install xen-ioemu-3.0.3-1

If you want to use a graphical frontend for editing the Xen configuration file, install the xenman package (I don't cover its usage in this tutorial):

Pay attention that this software depends on a lot of GTK libraries, so the installation may require a lot of downloads!

xen-test:~# apt-get install xenman

We also need to add the loop module to the kernel every time we boot our system, so edit /etc/modules and add the loop module:

xen-test:~# vi /etc/modules

At the end add:

loop max_loop=64

Now it's time to reboot to use our new kernel and the new libc libraries!

xen-test:~# reboot

Configuration

Ok. It's time to start to use Xen, so we need to modify the network configuration. I choose (the simplest?) solution to bridge my network interface with the Xen one:

xen-test:~# vi /etc/xen/xend-config.sxp

Go about to line 70 and uncomment the (network-script network-bridge) line:

#
# To bridge network traffic, like this:
#
# dom0: fake eth0 -> vif0.0 -+
# |
# bridge -> real eth0 -> the network
# |
# domU: fake eth0 -> vifN.0 -+
#
# use
#
(network-script network-bridge)
#


Inside this file you'll find a lot of other interesting configurations (like debug). Take a look into it!

Now restart the xend daemon to reload the new configuration:

xen-test:~# /etc/init.d/xend restart

And you will find three new virtual network cards:

xen-test:~# ifconfig | less

peth0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
*cut*
vif0.0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF
*cut*
xenbr0 Link encap:Ethernet HWaddr FE:FF:FF:FF:FF:FF


If you don't find the above lines, something is wrong, so increase the debug into the xen file and restart the xend daemon. Go to the debug file log and see what's wrong.

Edit the xen configuration file in order to tell Xen that we have a different (up-to-date) kernel and a new directory where we store the domain files:

xen-test:~# vi /etc/xen-tools/xen-tools.conf

*at "dir" point, uncomment:*

dir = /home/xen

*at "kernel" and "initrd" point:*

kernel = /boot/vmlinuz-2.6.18-4-xen-vserver-686
initrd = /boot/initrd.img-2.6.18-4-xen-vserver


If you want, you can also change the various disk and size options, like: size memory, swap, repository location ... and all the others.

Now create a new directory where we will store the domain files (I choose /home/xen):

xen-test:~# mkdir /home/xen

and create the first Xen domain:

Domain Creation

xen-test:~# xen-create-image --debootstrap --hostname xen-etch --dhcp --dist=etch

Here I choose to debooststrap and to install the Debian Etch release with the hostname xen-etch. In my network I have a dhcp server, so I use that to assign the network settings to the new domain. If you don't have one, choose the --ip=my_new_address, for the gateway see --gateway.

See xen-create-image --help | less for more details.


If everything is ok, take a beer and wait some minutes...


ZZZzzz...

*cut*
Creating Xen configuration file
Done
All done

The beer is finished and so is the image creation :). It's time to start the new Xen domain:

Start The Xen Domain

xen-test:~# xm create /etc/xen/xen-etch.cfg

Using config file "/etc/xen/xen-etch.cfg".
Started domain xen-etch

xen-test:~# xm list

Name ID Mem(MiB) VCPUs State Time(s)
Domain-0 0 358 1 r----- 315.5
xen-etch 2 128 1 ------ 3.7

Log in to your new Xen domain (ssh or

xm console xen-etch

) and enjoy!

The End

This tutorial is the simplest solution that I found to start with Debian Etch and Xen. I use only 5% of the available commands, so I leave to you the task of looking into all commands and their switches!

FUENTE: http://howtoforge.com/debian_etch_xen_from_debian_repository

miércoles, 10 de octubre de 2007

Video Tutorial Fuerza Bruta SSH

VideoTutorial: Link

Fuente: http://icaix.com/front/2007/04/13/video-tutorial-backtrack-2-remote-brute-force-attack/

Filtrar PING con iptables desde todas las ip's menos desde la mia

Cambiar la palabra ip por una ip verdadera en la siguiente línea:

iptables -A INPUT -p icmp -s ip -j ACCEPT
iptables -A INPUT -p icmp -j DROP


o también puede hacerse en una sola línea de la siguiente forma:

iptables -A INPUT -p icmp -s !ip -j DROP

donde !ip hay que reemplazarlo por la ip de la pc que realmente quieren que responda el ping.

---------------------------------------------------------------------

Algo mas facil para filtrar ping pero desde cualquier ip, ejecutamos:

echo 1 > /proc/sys/net/ipv4/icmp_echo_ignore_all

Si queremos volver a habilitar el ping solo cambiamos el 1 por el 0.