coWPAtty for Windows MAIN:" c# [' V" W5 W: S0 @- t+ L- A" K0 W2 C3 W# Z0 M5 C
"coWPAtty is designed to audit the pre-shared key (PSK) selection for WPA networks based on the TKIP protocol." - Joshua Wright. ! j4 _$ I9 I$ ~6 {, C, a0 `9 W$ b# J' T; P
Project Homepage: http://www.willhackforsushi.com/Cowpatty.html
- h+ L3 L. K2 [3 q+ j% M7 {4 K% j& u, O0 Z/ r+ V% x* X* u& b. U( k( d* j; I8 O" q% u. F: B8 I
Local Mirror: Cowpatty-4.0-win32.zip MD5: aa9ead2aacfcc493da3684351425d4c6
9 b3 @4 E& O' [: O7 [% r$ `( D1 i5 ^0 P- l% v% E r
' u8 t9 G) I5 T @
5 A% f0 X1 V7 o# DcoWPAtty Dictionary Attack
G# ?% ~% M. ^; ~7 h4 W' N$ U0 v0 j Precomputing WPA PMK to crack WPA PSK
7 M; E- o- {; b: X g/ A R; }
- F% P/ E$ w7 Q$ e7 b- j coWPAtty Precomputed WPA Attack
; i, y# U4 E4 B1 m; E$ U3 }( j" [
coWPAtty Recomputed WPA2 Attack
$ C( N7 |* e# d. k
- P2 Y0 l" p: H/ U) e: G3 gcoWPAtty Tables
2 [7 Q" A- l! z- a$ k I" j5 i+ [: [- K- w- b! [$ Y8 ? n4 CcoWPAtty Usage:" l' Q1 y& _/ ]; a, B. K3 ^) m8 y& ?: d8 o' W! q6 V/ V
5 V! ~) Y/ b2 T- G1 @
# }2 ^9 k" Q1 z* J8 g* d6 s' \ R# D
/ y% ^* p% U: |: k1 R2 FcoWPAtty Dictionary Attack:, a8 g5 ^+ ?/ {
9 a, {2 P& p m( @ Toperform the coWPAtty dictionary attack we need to supply the tool witha capture file that includes the TKIP four-way handshake, a dictionaryfile of passphrases to guess with and the SSID for the network.
& [7 o0 L7 M0 Z% G4 P' ?9 g1 _6 x5 V$ c, m) e: q+ k# @% d In orderto collect the four-way handshake you can either wait until a clientjoins the network or preferably you can force it to rejoin the networkusing tools like void11 or aireplay and capture the handshakes usingsomething like kismet, ethereal or airodump.
0 u' ]8 p( o- ~% F; \1 z; Y$ Q; @& B7 o
# y5 ^ E1 b" C! p! P$ scowpatty -f dict -r wpapsk-linksys.dump -s linksys
' e! ?0 H5 D0 @# p
+ J4 C' F( N+ X3 L; h3 Y U3 _& H1 X/ P N& ^" Z' _+ z# b/ a9 B1 v! ?

. z6 w; J! \6 {7 Z, S: ^' f$ N( z, M6 d. m
4 r9 g6 O' ?7 D ~5 T. h5 ^/ s! d; M- }' H" q! g% M/ v% a% e
' [3 a6 k7 H1 Z+ ~9 ZAs youcan see this simple dictionary attack took 51 seconds, we can speed upthis process by precomputing the WPA-PMK to crack the WPA-PSK (seebelow).
, M+ W6 X7 x2 \7 F* Y( K0 F# p/ S6 g6 y5 H9 z; H5 y
wpapsk-linksys.dump is the capture containing the four-way handshake
1 G4 P# A/ r" Z# c8 y$ j& x; t0 E7 M! ]/ B9 N% W' v+ I& a5 V4 J
dict is the password file
B& R( A8 E) j5 \' E" D, e9 i; M# E- x$ ^: t3 p+ Z6 y1 B
linksys is the network SSID
& b, @' m2 p4 p4 ^1 @6 C; @2 V' I/ C8 f) u) v. }* O
3 f: [" z; k3 X6 T3 Z
1 s7 c! V3 m% _7 o' G# a' OPrecomputing WPA PMK to crack WPA PSK:& ?( q1 a- w9 ?+ R, ^4 }& y8 k& Z' [5 r% x& `( U; y" o
genpmkis used to precompute the hash files in a similar way to Rainbow tablesis used to pre-hash passwords in Windows LANMan attacks. There is aslight difference however in WPA in that the SSID of the network isused as well as the WPA-PSK to "salt" the hash. This means that weneed a different set of hashes for each and every unique SSID i.e. aset for "linksys" a set for "tsunami" etc.
: t5 `5 U" T* o9 |5 j/ J; c% [+ H( w8 i8 z5 ]' V4 E2 p; p1 q8 c! u8 X+ S3 g* x0 q4 Y$ k! f k
So to generate some hash files for a network using the SSID cuckoo we use:
3 ~: Z! Q. |$ b/ u2 [& |! Y
; w4 @% [) V0 V. ~, A6 X; w; g$ n* e0 x' C) z* Z- [
# g4 b) A0 @9 A1 F+ q* p$ Xgenpmk -f dict -d linksys.hashfile -s linksys
" e: r5 S, a8 M1 L
) S) ?4 j9 j6 Y, z4 G3 B% Y; H) K1 m7 S
( E: Q' u1 `( T( K g( ~0 A 
l! j3 J& e5 w- c' ?1 d; i5 {' t- \0 G7 ~* y# s! Y. s+ H8 `, i2 {: ~
/ b8 e, H9 @* \9 H1 w8 }9 s. vdict is the password file
$ u! {* J: _; d0 ]
' `: Q0 K, j. o# D8 Xlinksys.hashfile is our output file
* C' A4 r& F# ~ {- H
% F" u( X V' o+ `9 `; P linksys is the network ESSID
" N" d4 e- A0 B7 R4 G6 z2 r
" v8 X; L7 M: j4 E; n! n9 I4 z# l. N: E5 X, X1 |+ b( P. O( b9 R* [& m' ~1 f( e4 ?, X! N
coWPAtty Precomputed WPA Attack:4 z7 T. n" N& j p5 E1 G! A3 g
! e9 I% `0 l( s j* v% p3 _Now wehave created our hash file we can use it against any WPA-PSK networkthat is utilising a network SSID of cuckoo. Remember the capture(wpa-test-01.cap) must contain the four-way handshake to be successful.
8 @ f& i$ s1 l+ \; n+ J2 Q1 d& M' Y- M3 k
( Z' W) n7 _ A) X$ P: B
H$ Y" Y. N, U; \' Ccowpatty -d linksys.hashfile -r wpapsk-linksys.dump -s linksys
1 ~1 s4 R4 s) w3 Z4 K" D5 y) t. w8 {, G( v' j# c8 G! n3 L! ? 
% r3 d% b% I o- ]
$ }6 G8 b) O& W e5 U6 K% G$ z3 ]4 e" V5 \8 f2 ^9 d
$ V( Y v, Y j, {' J" @wpa-test-01.cap is the capture containing the four-way handshake
6 n+ Z6 Y% C+ ^0 F) y4 t8 }& U6 C* m
) h0 T) X8 j# m linksys.hashfile are our precomputed hashes
/ c! F- r9 |$ G3 D2 g/ N( I! Y% d7 e, s linksys is the network ESSID
7 r! r& ?$ D& r: }. A* ~. z3 m+ K8 x- z/ m) h, o, k
, d/ K: u. o3 D- S7 K* ]: }" W! s) N4 f- ]% r$ _' R
Notice that cracking the WPA-PSK took 0.04 seconds with the pre-computed attacked as opposed to 200 secondswith standard dictionary attack mode, albeit you do need to pre-computethe hash files prior to the attack. However, precomputing large hashfiles for common SSIDS (e.g. linksys, tsunami) would be a sensible movefor most penetration testers.
8 g& j8 K6 ^$ k8 W& s, p' @& z Y
7 K1 _ n2 R" }: K8 o5 I+ U# `. W7 b$ h- v' ?3 z1 ccoWPAtty Precomputed WPA2 Attack:- d( ^7 X: ~* l+ ]0 B% R; q; `5 b% q0 J4 B
coWPAtty4.0 is also capable of attacking WPA2 captures. Note: The same hashfile as was used with the WPA capture was also used with the WPA2capture.
* E2 m$ X6 [) }6 }5 t% i% X+ ]& j9 d3 ^+ Y3 p: {; P& A cowpatty -d linksys.hashfile -r wpa2psk-linksys.dump -s linksys
8 c Q0 X! ?. C, C+ m3 v0 F1 M' Z4 k# ~ 
3 y8 E" u [6 T4 X, N) Q0 |
) T8 A' F0 s& W; P9 g* p4 c
2 ?' G0 c. |5 i- e1 D% ?) |( O# l2 r. ?9 N* U- [" ~# J6 ], c& k7 A+ g wpa2psk-linksys.dump is the capture containing the four-way handshake
" N/ K$ M! L+ W/ k9 r, D0 W
4 O- o: ^4 }! m. ~ dict is the password file
- M" |5 u9 E3 D9 B& v2 W1 {3 V! b% U0 ?+ Y% O linksys is the network SSID
]/ t N9 Y( E) _: e b0 _/ q1 A# ?. d! L4 A; q* z
# W) w$ T+ C2 |( Y; a7 k
: v9 t6 @# J' Y. P7 t* G, X6 `/ LcoWPAtty Tables:
. a! t1 V0 x8 h8 ^. i+ W8 ?! h5 l% \6 E, G3 `" n9 g1 i( ?- AThe Church of Wifi have produced some lookup tables for 1000 SSID's computed against a 170,000 word password file. The resultant table are approximately 7 Gigabytes in size and can be downloaded via Torrent:
7 I7 L @2 Y2 ]: d2 m. d, E( m6 ?( w0 `+ d& ~3 Z p9 A: H8 d8 ?% c- `& w
4 _; C! i% ~( y2 s' C# h( s2 {http://torrents.lostboxen.net/co ... atty-4.0_2006-10-19! R3 k9 l* ~0 u, O+ S7 O4 H
2 K9 `" L& E+ T$ x, r& g4 S9 Q6 H6 y# _! P3 J% n8 c( `7 O d) | b8 l$ h, b! n6 R
A 33 Gigabyte set of tables are also available: http://umbra.shmoo.com:6969/$ d5 C" P* g$ p! D, i8 a5 Q/ q1 M9 D+ U, f$ b
. L0 ~- t' v$ Q" G n1 T9 W2 u4 D4 j1 N8 u) d+ W% V' ?2 W% rOr you can buy them via DVD, direct from Renderman (initiator of the project): http://www.renderlab.net/projects/WPA-tables/