2014年10月22日 星期三

eapol_test build in vs2012 windows

  • 簡介:eapol_test 是wpa_supplicant提供的一個eap test project
  • 目的:攔到eap packet
1. Download Win32OpenSSL-1_0_1j.exe
2. Install OpenSSL
3. Download wpa_supplicant-0.7.3.tar
4. 將wpa_supplicant-0.7.3解壓
5. 開啟wpa_supplicant-0.7.3\wpa_supplicant-0.7.3\wpa_supplicant\vs2005\eapol_test\eapol_test.sln
6. VS2012裡設定專案compile的include、lib目錄
     增加include OpenSSL安裝目錄 ex:C:\OpenSSL-Win32\include;
     增加lib OpenSSL安裝目錄 C:\OpenSSL-Win32\lib\VC\static;
7. 在openssl\x509v3.h增加
    #ifdef OPENSSL_SYS_WIN32
              /* Under Win32 these are defined in wincrypt.h */
    #undef X509_NAME
    #undef X509_CERT_PAIR
    #undef X509_EXTENSIONS
    #endif
8. Download 4.0.1-WpdPack
9. VS2012裡設定專案compile的include目錄,增加WpdPack目錄 ex: C:\dev\WpdPack\Include;
10. 如果要使用eap-aka功能,修改wpa_supplicant-0.7.3\src\utils\build_config.h增加#define EAP_AKA

p.s. test command => eapol_test -c <test文件> -a 127.0.0.1 -p 1812 -s testing123 -r 1

沒有留言:

張貼留言

Coding Dojo

最近對 Coding Dojo 特別有緣 ^^ 簡單來說 Coding Dojo 就是一個練習軟體開發的 安全空間 安全空間 = 沒有壓力、責任更不會有人指責你 就像武俠片一樣,每個門派都有一套門徒必練的拳法,練到變成反射動作後,就能將其使用在打鬥上, Cod...