wpa_supplicant for Windows
==========================
Copyright (c) 2003-2009, Jouni Malinen <j@w1.fi> and contributors
All Rights Reserved.
This program is dual-licensed under both the GPL version 2 and BSD
license. Either license may be used at your option.
This product includes software developed by the OpenSSL Project
for use in the OpenSSL Toolkit (http://www.openssl.org/). This
product includes cryptographic software written by Eric Young
(eay@cryptsoft.com).
wpa_supplicant has support for being used as a WPA/WPA2/IEEE 802.1X
Supplicant on Windows. The current port requires that WinPcap
(http://winpcap.polito.it/) is installed for accessing packets and the
driver interface. Both release versions 3.0 and 3.1 are supported.
The current port is still somewhat experimental. It has been tested
mainly on Windows XP (SP2) with limited set of NDIS drivers. In
addition, the current version has been reported to work with Windows
2000.
All security modes have been verified to work (at least complete
authentication and successfully ping a wired host):
- plaintext
- static WEP / open system authentication
- static WEP / shared key authentication
- IEEE 802.1X with dynamic WEP keys
- WPA-PSK, TKIP, CCMP, TKIP+CCMP
- WPA-EAP, TKIP, CCMP, TKIP+CCMP
- WPA2-PSK, TKIP, CCMP, TKIP+CCMP
- WPA2-EAP, TKIP, CCMP, TKIP+CCMP
Binary version
--------------
Compiled binary version of the wpa_supplicant and additional tools is
available from http://w1.fi/wpa_supplicant/. These binaries can be
used after installing WinPcap.
wpa_gui uses Qt 4 framework and may need additional dynamic libraries
(DLLs). These libraries are available from
http://w1.fi/wpa_supplicant/qt4/wpa_gui-qt433-windows-dll.zip
You can copy the DLL files from this ZIP package into the same directory
with wpa_gui.exe to allow wpa_gui to be started.
Building wpa_supplicant with mingw
----------------------------------
The default build setup for wpa_supplicant is to use MinGW and
cross-compiling from Linux to MinGW/Windows. It should also be
possible to build this under Windows using the MinGW tools, but that
is not tested nor supported and is likely to require some changes to
the Makefile unless cygwin is used.
Building wpa_supplicant with MSVC
---------------------------------
wpa_supplicant can be built with Microsoft Visual C++ compiler. This
has been tested with Microsoft Visual C++ Toolkit 2003 and Visual
Studio 2005 using the included nmake.mak as a Makefile for nmake. IDE
can also be used by creating a project that includes the files and
defines mentioned in nmake.mak. Example VS2005 solution and project
files are included in vs2005 subdirectory. This can be used as a
starting point for building the programs with VS2005 IDE. Visual Studio
2008 Express Edition is also able to use these project files.
WinPcap development package is needed for the build and this can be
downloaded from http://www.winpcap.org/install/bin/WpdPack_4_0_2.zip. The
default nmake.mak expects this to be unpacked into C:\dev\WpdPack so
that Include and Lib directories are in this directory. The files can be
stored elsewhere as long as the WINPCAPDIR in nmake.mak is updated to
match with the selected directory. In case a project file in the IDE is
used, these Include and Lib directories need to be added to project
properties as additional include/library directories.
OpenSSL source package can be downloaded from
http://www.openssl.org/source/openssl-0.9.8i.tar.gz and built and
installed following instructions in INSTALL.W32. Note that if EAP-FAST
support will be included in the wpa_supplicant, OpenSSL needs to be
patched to# support it openssl-0.9.8i-tls-extensions.patch. The example
nmake.mak file expects OpenSSL to be installed into C:\dev\openssl, but
this directory can be modified by changing OPENSSLDIR variable in
nmake.mak.
If you do not need EAP-FAST support, you may also be able to use Win32
binary installation package of OpenSSL from
http://www.slproweb.com/products/Win32OpenSSL.html instead of building
the library yourself. In this case, you will need to copy Include and
Lib directories in suitable directory, e.g., C:\dev\openssl for the
default nmake.mak. Copy {Win32OpenSSLRoot}\include into
C:\dev\openssl\include and make C:\dev\openssl\lib subdirectory with
files from {Win32OpenSSLRoot}\VC (i.e., libeay*.lib and ssleay*.lib).
This will end up using dynamically linked OpenSSL (i.e., .dll files are
needed) for it. Alternative, you can copy files from
{Win32OpenSSLRoot}\VC\static to create a static build (no OpenSSL .dll
files needed).
Building wpa_supplicant for cygwin
----------------------------------
wpa_supplicant can be built for cygwin by installing the needed
development packages for cygwin. This includes things like compiler,
make, openssl development package, etc. In addition, developer's pack
for WinPcap (WPdpack.zip) from
http://winpcap.polito.it/install/default.htm is needed.
.config file should enable only one driver interface,
CONFIG_DRIVER_NDIS. In addition, include directories may need to be
added to match the system. An example configuration is available in
defconfig. The library and include files for WinPcap will either need
to be installed in compiler/linker default directories or their
location will need to be adding to .config when building
wpa_supplicant.
Othen than this, the build should be more or less identical to Linux
version, i.e., just run make after having created .config file. An
additional tool, win_if_list.exe, can be built by running "make
win_if_list".
Building wpa_gui
----------------
wpa_gui uses Qt application framework from Trolltech. It can be built
with the open source version of Qt4 and MinGW. Following commands can
be used to build the binary in the Qt 4 Command Prompt:
# go to the root directory of wpa_supplicant source code
cd wpa_gui-qt4
qmake -o Makefile wpa_gui.pro
make
# the wpa_gui.exe binary is created into 'release' subdirectory
Using wpa_supplicant for Windows
--------------------------------
wpa_supplicant, wpa_cli, and wpa_gui behave more or less identically to
Linux version, so instructions in README and example wpa_supplicant.conf
should be applicable for most parts. In addition, there is another
version of wpa_supplicant, wpasvc.exe, which can be used as a Windows
service and which reads its configuration from registry instead of
text file.
When using access points in "hidden SSID" mode, ap_scan=2 mode need to
be used (see wpa_supplicant.conf for more information).
Windows NDIS/WinPcap uses quite long interface names, so some care
will be needed when starting wpa_supplicant. Alternatively, the
adapter description can be used as the interface name which may be
easier since it is usually in more human-readable
format. win_if_list.exe can be used to find out the proper interface
name.
Example steps in starting up wpa_supplicant:
# win_if_list.exe
ifname: \Device\NPF_GenericNdisWanAdapter
description: Generic NdisWan adapter
ifname: \Device\NPF_{769E012B-FD17-4935-A5E3-8090C38E25D2}
description: Atheros Wireless Network Adapter (Microsoft's Packet Scheduler)
ifname: \Device\NPF_{732546E7-E26C-48E3-9871-7537B020A211}
description: Intel 8255x-based Integrated Fast Ethernet (Microsoft's Packet Scheduler)
Since the example configuration used Atheros WLAN card, the middle one
is the correct interface in this case. The interface name for -i
command line option is the full string following "ifname:" (the
"\Device\NPF_" prefix can be removed). In other words, wpa_supplicant
would be started with the following command:
# wpa_supplicant.exe -i'{769E012B-FD17-4935-A5E3-8090C38E25D2}' -c wpa_supplicant.conf -d
-d optional enables some more debugging (use -dd for even more, if
needed). It can be left out if debugging information is not needed.
With the alternative mechanism for selecting the interface, this
command has identical results in this case:
# wpa_supplicant.exe -iAtheros -c wpa_supplicant.conf -d
Simple configuration example
没有合适的资源?快使用搜索试试~ 我知道了~
wpa_supplicant-0.7.3.tar.gz
5星 · 超过95%的资源 需积分: 16 39 下载量 35 浏览量
2016-08-07
23:10:49
上传
评论
收藏 1.56MB GZ 举报
温馨提示
共601个文件
c:286个
h:185个
makefile:20个
wpa_supplicant-0.7.3.tar.gz官方源码文件,未做任何改动。
资源推荐
资源详情
资源评论
收起资源包目录
wpa_supplicant-0.7.3.tar.gz (601个子文件)
wpa_supplicant.conf.5 6KB
60_wpa_supplicant 267B
wpa_supplicant.8 15KB
wpa_cli.8 6KB
wpa_background.8 4KB
wpa_priv.8 4KB
wpa_gui.8 2KB
wpa_passphrase.8 1KB
driver_nl80211.c 138KB
mlme.c 85KB
driver_ndis.c 85KB
dbus_new_handlers.c 80KB
libtommath.c 76KB
wps_registrar.c 74KB
tls_openssl.c 71KB
wpa_supplicant.c 71KB
driver_test.c 70KB
wpa.c 69KB
wpa_auth.c 69KB
eap.c 59KB
driver_wext.c 57KB
ieee802_1x.c 56KB
wpa_cli.c 55KB
eap_ttls.c 52KB
ctrl_iface.c 52KB
config.c 51KB
eapol_supp_sm.c 50KB
ieee802_11.c 49KB
driver_madwifi.c 49KB
x509v3.c 49KB
wpa_auth_ft.c 47KB
events.c 46KB
eap_fast.c 45KB
eap_server_fast.c 42KB
aes-internal.c 40KB
wps_er.c 40KB
dbus_new.c 40KB
driver_hostap.c 40KB
dbus_old_handlers.c 40KB
driver_bsd.c 40KB
radius_client.c 39KB
eap_server_ttls.c 38KB
radius_server.c 38KB
driver_ralink.c 38KB
eap_aka.c 37KB
eap_peap.c 36KB
eap_sim_db.c 36KB
tls_gnutls.c 36KB
eap_server_peap.c 35KB
eap_server.c 34KB
peerkey.c 34KB
driver_atheros.c 34KB
eap_server_aka.c 33KB
wps_upnp_web.c 33KB
pcsc_funcs.c 33KB
wps_upnp.c 33KB
ikev2.c 32KB
eap_sim_common.c 32KB
wps_enrollee.c 32KB
tncc.c 32KB
eapol_test.c 31KB
wps_supplicant.c 31KB
radius.c 31KB
eap_sim.c 30KB
ikev2.c 30KB
eap_tls_common.c 30KB
tncs.c 29KB
tlsv1_server_read.c 29KB
wps_hostapd.c 28KB
eapol_auth_sm.c 28KB
wpa_ft.c 27KB
tlsv1_client_read.c 25KB
dbus_new_helpers.c 25KB
dh_groups.c 25KB
eap_mschapv2.c 25KB
wps_upnp_ssdp.c 25KB
dbus_dict_helpers.c 24KB
wpa_priv.c 23KB
wpa_auth_ie.c 23KB
config_winreg.c 23KB
httpread.c 23KB
hostapd.c 22KB
config_file.c 22KB
ndis_events.c 21KB
dbus_old.c 21KB
eap_fast_pac.c 21KB
wpa_common.c 21KB
eap_server_sim.c 20KB
sta_info.c 20KB
tlsv1_client_write.c 20KB
ctrl_iface_named_pipe.c 20KB
tlsv1_server_write.c 20KB
vlan_init.c 20KB
tls_schannel.c 19KB
ikev2_common.c 19KB
hw_features.c 19KB
wpas_glue.c 18KB
driver_privsep.c 18KB
eap_gpsk.c 18KB
tlsv1_client.c 18KB
共 601 条
- 1
- 2
- 3
- 4
- 5
- 6
- 7
资源评论
- xiaohezi0032018-07-19感谢分享.........
- 红娃子2016-11-10不错呀,谢谢分享,感谢!!!!
andylauren
- 粉丝: 800
- 资源: 49
上传资源 快速赚钱
- 我的内容管理 展开
- 我的资源 快来上传第一个资源
- 我的收益 登录查看自己的收益
- 我的积分 登录查看自己的积分
- 我的C币 登录后查看C币余额
- 我的收藏
- 我的下载
- 下载帮助
安全验证
文档复制为VIP权益,开通VIP直接复制
信息提交成功