[kismac] [binaervarianz] r163 - trunk/Sources/Core
- From: svn@xxxxxxxxxxxxxxxx
- To: kismac@xxxxxxxxxxxxx
- Date: Mon, 21 Aug 2006 20:20:44 +0200
Author: gkruse
Date: 2006-08-21 20:20:42 +0200 (Mon, 21 Aug 2006)
New Revision: 163
Modified:
trunk/Sources/Core/80211b.h
Log:
Add some byte swapping to start to fix WPA parsing on Intel. This fix allows
the challenge / responses to be correctly found in my est dump, however, I am
still unable to crack the net using a text file containing the known password.
I suspect there is a whole bunch of byte swapping that may need to happen
somewhere in the md5 or maybe we just need to swap the whole packet?
Modified: trunk/Sources/Core/80211b.h
===================================================================
--- trunk/Sources/Core/80211b.h 2006-07-26 01:59:29 UTC (rev 162)
+++ trunk/Sources/Core/80211b.h 2006-08-21 18:20:42 UTC (rev 163)
@@ -208,21 +208,21 @@
#define WPA_EXT_IV_PRESENT 0x20
-#define WPA_FLAG_REQUEST 0x0800
-#define WPA_FLAG_ERROR 0x0400
-#define WPA_FLAG_SECURE 0x0200
-#define WPA_FLAG_MIC 0x0100
-#define WPA_FLAG_ACK 0x0080
-#define WPA_FLAG_INSTALL 0x0040
-#define WPA_FLAG_KEYID 0x0030
-#define WPA_FLAG_KEYTYPE 0x0008
-#define WPA_FLAG_KEYCIPHER 0x0007
+#define WPA_FLAG_REQUEST OSSwapBigToHostConstInt16(0x0800)
+#define WPA_FLAG_ERROR OSSwapBigToHostConstInt16(0x0400)
+#define WPA_FLAG_SECURE OSSwapBigToHostConstInt16(0x0200)
+#define WPA_FLAG_MIC OSSwapBigToHostConstInt16(0x0100)
+#define WPA_FLAG_ACK OSSwapBigToHostConstInt16(0x0080)
+#define WPA_FLAG_INSTALL OSSwapBigToHostConstInt16(0x0040)
+#define WPA_FLAG_KEYID OSSwapBigToHostConstInt16(0x0030)
+#define WPA_FLAG_KEYTYPE OSSwapBigToHostConstInt16(0x0008)
+#define WPA_FLAG_KEYCIPHER OSSwapBigToHostConstInt16(0x0007)
-#define WPA_FLAG_KEYTYPE_PAIRWISE 0x0008
-#define WPA_FLAG_KEYTYPE_GROUPWISE 0x0000
+#define WPA_FLAG_KEYTYPE_PAIRWISE OSSwapBigToHostConstInt16(0x0008)
+#define WPA_FLAG_KEYTYPE_GROUPWISE OSSwapBigToHostConstInt16(0x0000)
-#define WPA_FLAG_KEYCIPHER_HMAC_MD5 0x0001
-#define WPA_FLAG_KEYCIPHER_AES_CBC 0x0002
+#define WPA_FLAG_KEYCIPHER_HMAC_MD5 OSSwapBigToHostConstInt16(0x0001)
+#define WPA_FLAG_KEYCIPHER_AES_CBC OSSwapBigToHostConstInt16(0x0002)
#define WPA_NONCE_LENGTH 32
#define WPA_EAPOL_LENGTH 99
Other related posts:
- » [kismac] [binaervarianz] r163 - trunk/Sources/Core