lunes, octubre 29, 2007

Pruebas con WPA-PSK

El protocolo de seguridad WPA (Wi-Fi Protected Access - Acceso Protegido Wi-Fi) se puede dividir a grandes rasgos a su vez en dos modalidades:

WPA empresarial. Este modo esta diseñado para trabajar con un servidor de autentificación de los usuarios en la red, que en la mayoría de los casos es un servidor RADIUS (Remote Access Dial-In User Server ) . La otra modalidad es WPA personal que es el que nos encontraremos en la mayoría de las redes caseras y pequeñas oficinas.

El protocolo WPA personal, conocido también como WPA-PSK (Pre Shared Key), se basa en una autentificación por contraseña del cliente wireless al punto de acceso y es el que abarcaremos en esta sección. La información es cifrada con el algoritmo RC4 con una clave de 128bits y un IV (vector de inicialización) de 48bits. La intrusión en este tipo de red es diferente a las redes configuradas con el protocolo WEP. En este caso para intentar obtener la clave de red no nos hacen falta miles de paquetes, ni generar IV's, si no que basta con un solo paquete que contenga la autentificación del cliente al punto de acceso (handshake). Es el que capturaremos y crackearemos mediante un ataque de fuerza bruta con un diccionario; por tanto el éxito de este ataque esta ligado a la robustez de la contraseña que puede tener de 8 a 63 caracteres ascii.

Para realizar este ataque también usaremos la suite aircrack-ng y la distribucion wifislax y cada paso mostrado lo realizaremos en una consola o terminal virtual diferente.

1º )Paso: ponemos la tarjeta en modo monitor.

En este caso lo hacemos primero con el script atheros.sh ya que el chipset de la tarjeta que estoy usando es atheros, pero dependiendo del chipset también podemos hacerlo con el comando iwconfig del paquete (wireless-tools) o como la mayoría de las veces usando el script de airmon-ng start "interface".

#atheros.sh



1 2º )Paso: localizamos el punto de acceso con airodump-ng y después empezamos la captura de tráfico:

a)Localización de nuestro Punto de Acceso:

#airodump-ng start ath0




En este caso nuestro objetivo será la red home, que como podemos observar su cifrado es WPA
1

b)Captura del tráfico del Punto de Acceso seleccionado:

# airodump-ng --bssid 00:13:F7:1E:98:95 -c 6 -w CAPTURA ath0


De esta forma indicamos a airodump-ng que filtre por el bssid de nuetra red --bssid "00:13:F7:1E:98:95" ,fijamos el canal de nuestro AP "-c 6" y le indicamos que guarde el tráfico capturado en el archivo CAPTURA,y finalmente indicamos nuestra tarjeta inalámbrica.


3º)Paso: si observamos la captura anterior vemos que hay un cliente conectado (00:13:F7:59:05:4A) al punto de acceso que vamos a atacar (00:13:F7:1E:98:98).
Para obtener el “handshake” desautenficaremos al cliente del punto de acceso y de esta forma forzaremos que el cliente se vuelva a autentificar capturando la trama que nos interesa:

#aireplay-ng --deauth 20 -a 00:13:F7:1E:98:95 -c 00:13:F7:59:05:4A ath0

1 1

Indicamos a aireplay-ng que usamos el ataque --deauth (deautentificación) , el 20 representa el numero de tramas de desautentificación a enviar al punto de acceso y con la dirección mac del cliente y la interface inalámbrica.
(Tambien podriamos hacer un ataque de desautentificacion masivo sin especificar el cliente "-c",pero en este caso es mas efectivo de esta forma).


4º)Paso: Obtención de la clave WPA-PSK mediante ataque de diccionario: 1

#aircrack-ng -a 2 -w /root/swireless/capturas/dic CAPTURA.cap

1

En este caso los parámetros de aircrack-ng -a 2 especifica el modo de ataque WPA-PSK -w la ruta de nuestro diccionario y CAPTURA.cap es el archivo donde tenemos el trafico capturado del punto de acceso elegido.Si al llegar este paso no obtenemos el "handshake",repetiremos el ataque de autentificacion aumentando el numero de tramas a enviar por ejemplo 100.

Como se puede observar en este caso de prueba tenemos la contraseña WPA-PSK "complejidad".

1

Para este tipo de ataque es muy importante tener un buen diccionario, podremos encontrar diccionarios googleando aun así aquí dejo algunos que he encontrado.

Diccionario de ispell en español

Diccionario de openoffice

Diccionario 1

Diccionario 2

Diccionario en hackemate.com.ar

1

El éxito del ataque en este tipo de redes es muy muy difícil de conseguir pero si la contraseña es débil y tenemos mucha mucha suerte podríamos obtener la clave WPA-PSK más rápido incluso que en los ataques al protocolo WEP debido a que como hemos mencionado anteriormente con un solo paquete que contenga el “handshake” es suficiente.

Etiquetas:

27 Comentarios:

Blogger Álvaro Paz said...

Hola

Me gusta mucho que vuelvas ha escribir, un post excelente.

Un sd

7:08 p. m.

 
Blogger Luigy said...

Gracias alvaro,haber si cojo el hilo de nuevo jiji y tu sigue haciendolo asi de bien ;)

12:14 a. m.

 
Anonymous Anónimo said...

Bonjour, luigys.blogspot.com!
[url=http://cialismedica.fora.pl/ ]comprar cialis en espana[/url] [url=http://cialissinreceta.fora.pl/ ]comprar cialis en espana[/url] [url=http://farmaciacialis.fora.pl/ ]comprar cialis [/url] [url=http://cialisfarmacia.fora.pl/ ]comprar cialis [/url] [url=http://medicocialis.fora.pl/ ]vendo cialis en espana[/url] [url=http://cialisbarata.fora.pl/ ] cialis [/url]

7:19 p. m.

 
Anonymous francisco said...

hola de parte de francisco muy bueno tu sitio si te interesa hacer intercamvio de enlaces te espero en mi blog de juegosguaysguays y diversidades con intercamvio de enlaces
dejame un comentario donde pone tu sitio aqui gracias

5:55 p. m.

 
Anonymous Empresas de Seguridad said...

Excelente suite, muchos tutoriales andan dando vueltas pero la gran mayoria dejan mucho que deciar, te felicito por el manual, muy bien explicado.
camaras de seguridad

3:46 a. m.

 
Anonymous Anónimo said...

Russell Wilson Jersey axiotakix
cheap nfl jerseys axiotakix
Victor Cruz Jersey axiotakix
http://www.niketexansnflshop.com

1:31 a. m.

 
Anonymous Anónimo said...

ï»?New York's Museum of Modern Art hosted a Symposium on pop art in December during which artists like Warhol were attacked for "capitulating" to consumerismtwitter-inner-ditto237640514072104960 divindent margin-left: 20px; divkey field
Thirdparty providers offer live[url=http://www.nikesaintsjersey.com]Darren Sproles Elite Jersey[/url]
technical services through tollfree phone service and online chat at the comfort of your home or officeThe Forearm and Butt Sleeve: Where Most Pool Stick Design Work Is DoneFirst of all[url=http://www.vipuggsforsale.com]uggs on sale[/url]
most or all of the artistic work on a cue is done on the butt end[url=http://www.nikeravensshop.com/jacoby-jones-nike-jersey]Jacoby Jones Jersey[/url]
or the half closest to your swing hand (rear hand)Web GrabberWeb grabber is just another name of web data extraction tool whose sole purpose is to extract pertinent data and facilitate the process of data extraction1 The investigation of the governor led to the discovery of the prostitution ring Black Snook occupy Mexico and the White Snook range along southern California and the Pacific tropical coast Wanta/Chippewa Falls/WI v

8:47 p. m.

 
Anonymous Anónimo said...

Hello. Facebook takes a [url=http://www.nodepositbonus.gd]online roulette[/url] risk on 888 casino dispense: Facebook is expanding its efforts to push aside rash real-money gaming to millions of British users after announcing a grab with with the online gambling comrades 888 Holdings.And Bye.

3:14 p. m.

 
Anonymous Anónimo said...

[url=http://www.patriotsfootballprostore.com/logan_mankins_jersey_super_bowl]Logan Mankins Jersey[/url] emurbursofs
[url=http://www.49ersonlineofficialstore.com/mike_iupati_jersey_super_bowl]Mike Iupati Jersey[/url] TynckeyncBype
[url=http://www.patriotsfootballprostore.com/jerod_mayo_jersey_super_bowl]Jerod Mayo Jersey[/url] Proonseorek

1:10 a. m.

 
Anonymous Anónimo said...

top [url=http://www.001casino.com/]casino bonus[/url] hinder the latest [url=http://www.realcazinoz.com/]free casino games[/url] free no consign perk at the chief [url=http://www.baywatchcasino.com/]no deposit bonus
[/url].

2:42 a. m.

 
Anonymous Anónimo said...

Next way oF autoresponFer usage proveF [url=http://www.germanylovelv.com/]Louis Vuitton kopierte Tasche kaufen[/url]
earn huge income [url=http://www.germanylovelv.com/]louis vuitton knolckoffs[/url]
many online entrepreneurhttp://www.germanylovelv.com/
Timely FelivereF Follow up e-mails that are baseF on autoresponFer are wiFely recognizeF as a must-have marketing strategy. The theory behinF claims that biggest customer response is gaineF at 8th contact only.
|
|

3:16 p. m.

 
Anonymous Anónimo said...

[url=http://cyclosporine.webs.com]ciclosporina nome comercial
[/url] buy sandimmune neoral
ciclosporina oral bulla
neoral withdrawal symptoms

3:30 a. m.

 
Anonymous Anónimo said...

[url=http://longchampsacsa.eklablog.com/]sac longchamps[/url] Romantic evening bags and grip from names including Lanvin, Oscar signifiant la Renta and so Valentino feature elegant details, such just as embroidery, lace, or bows. Marchesa has a area of minaudieres which in Online Cheapest Mulberry Dan Nautral Leather Messenger Bag Brown for Men,Our Mulberry outlet store is one of the best Mulberry outlet online. turn are accentuated with crystals or organza roses. Quilted handbags from Marc Jacobs and aftermarket clutches from Alexander McQueen are the very good way to add accessories an edgy nightime gown..
[url=http://longchamppaschers.blogmonster.de/]longchamp soldes[/url] Dig out old Christmas cards or wrapping paper you no longer want, and cut out any words or pictures you may like. These may be glued onto paper bags to form a scene. One idea would be to use cotton balls along the bottom of a gift bag. Outfit. Finally, make sure that you plan for your outfit and your travelling bags Quality Mulberry Women's Oversized Alexa Leather Satchel Light Coffee Bag. Mulberry Outlet Uk Offer Mulberry Handbags & Bags Made Of 100% Good Quality And Fashion Styles. before the flight to Hawaii. Some people choose to go formal when renewing their wedding vows.
[url=http://longchamppliagea.simpleblog.org/]sac longchamp moins cher[/url] People today envy my footwear. I left a pair at my friend residence and now she says she cannot locate a single of them! but I know she just uggs on sale desired to help keep them. I know I under no circumstances see these good coach purse outlet tiny clogs again. Top Quality Mulberry Outlet Sale Women's Alexa Foggy Grey Soft Buffalo Bags sale with brand new styles 2) Did I see a bird on one of your purses? How many do you have? The same rule for shoes applies for bags: You don't need THAT many handbags. Only keep the best ones that are in good shape, ones you actually wear and pieces that aren't totally dated. Trendy items that you never touch should be consigned or donated... Besides shopping clothes for men, you can shop many other products at this store like clothes for women and kids, footwear, handbags, sunglasses, watches, accessories and cosmetics. Conway | Dec 3rd 2012 - If you want a stylish, designer bag that is built well and uses only the best materials, a Chanel handbag may be what you are looking for. Directly from the fashion show circuits, a Chanel handbag brings a sense of high style when you own and wear ..

1:00 a. m.

 
Anonymous Anónimo said...

In my opinion you are mistaken. Let's discuss.
I thank for the help in this question, now I will not commit such error.
In my opinion you are not right. Write to me in PM.
Bravo, seems to me, is a remarkable phrase
It is remarkable, very useful message

[url=http://shenenmaoyipo.bravesites.com/][b]michael kors outlet online[/b][/url]
[url=http://www.purevolume.com/listeners/cheapbags8/posts/332299/Club+Staff+Bags][b]michael kors outlet online[/b][/url]
[url=http://michaelkorscheap2.lifeyo.com/home/preview/][b]michael kors outlet online[/b][/url]
[url=http://shenenmaoyitt.cineblog.com.br/][b]michael kors outlet online[/b][/url]
[url=http://yaba.com/mkbagcheap2/blog/45302/][b]michael kors outlet online[/b][/url]

12:03 a. m.

 
Anonymous Anónimo said...

Pοst wrіting is also a excitement, if you be famіliar wіth afterward you сan wгite іf not it
is diffiсult to write.

Here іs mу page ... http://Www.hotel-discount.com/

10:27 a. m.

 
Anonymous Anónimo said...

If some one desігes to bе updateԁ with hottest technologies after thаt
he must be pay a vіѕit this web pagе and be up tο date all the
time.

my web рagе: Creating Environment Vacation Much less expensive Through Economic Resorts

10:12 p. m.

 
Anonymous Anónimo said...

Hі there, thе ωhole thіng is goіng sound here
аnd оfcοurse eѵery one is sharing faсts, that's actually good, keep up writing.

Also visit my page Greater london Resort Booking -

6:41 p. m.

 
Anonymous Anónimo said...

Spot on with this ωгite-up, I honestly bеliеvе
this websitе needѕ much more attention. I'll probably be returning to see more, thanks for the advice!

my web blog :: Discovering The Suitable Inns

7:23 p. m.

 
Anonymous Anónimo said...

Hello, I ωіsh fοr to subscribe for this
website to obtаіn most гecent uρdаtes, so where can і do it plеаѕe help out.


Here is my blοg :: How to locate Inexpensive Accommodations inside The capital Online

4:28 p. m.

 
Anonymous Anónimo said...

Hi theгe everуonе, it's my first visit at this website, and piece of writing is in fact fruitful for me, keep up posting such articles.

My website: Discovering The Suitable Accommodations

7:03 p. m.

 
Anonymous Anónimo said...

Аppreсiating thе commitment you put іnto your blοg anԁ іn ԁеpth information yοu proviԁe.
It's good to come across a blog every once in a while that isn't the same unwanted гehashed іnformatiοn.
Fantastic reaԁ! I've bookmarked your site and I'm includіng уour RЅS feeds to my Gοogle
account.

my weblog; Last minute Resort Reservations

9:44 p. m.

 
Anonymous Anónimo said...

If sοme one dеsiгes expert
ѵіew rеgarding running а blog thеn
і pгopose him/her to pay a visit this
websіte, Keep uρ the fastiԁious work.


Have a look at my webpаge :: The Most effective Accommodations In Sydney

12:52 p. m.

 
Anonymous Anónimo said...

Incredible ρoints. Sound аrguments. Keеp uρ the great effort.


Feel free tо viѕit my blog: Prepare Your current Buying Stay in Dubai Resorts Close to Buying Heart

7:47 a. m.

 
Anonymous Anónimo said...

Aωesome website yοu have here but I wаs wοndering if you knеw of any dіscussion boards that cover the ѕame tοрics talkеd
аbout here? I'd really like to be a part of online community where I can get responses from other knowledgeable people that share the same interest. If you have any recommendations, please let me know. Thanks!

my weblog How to get Discounts About Motels

5:35 a. m.

 
Anonymous Anónimo said...

Аweѕοmе blοg
you have hеre but I was wanting to knoω іf
you kneω of any message boarԁs thаt сover the same toρics diѕсussed herе?

I'd really love to be a part of online community where I can get responses from other experienced people that share the same interest. If you have any suggestions, please let me know. Thank you!

Feel free to surf to my web blog; click through the next internet site

12:28 p. m.

 
Anonymous Anónimo said...

Hеllо it's me, I am also visiting this website on a regular basis, this site is really nice and the users are actually sharing nice thoughts.

Feel free to visit my web page :: Thailand Phuket Accommodations

8:59 p. m.

 
Anonymous Anónimo said...

You really maκe іt apρeaг really easy together wіth your preѕеntation hоwever I fіnd
this matter to be rеallу one thing that
I feel I might by no means undeгѕtand.

Ӏt κind of fеels too сomplicated аnd very huge for me.
I'm taking a look ahead in your next publish, I'll attempt to
get the grasp of it!

Alѕο visit my blog :: Booking Motels With a Lower price

2:22 a. m.

 

Publicar un comentario

<< Home