forked from aircrack-ng/aircrack-ng
-
Notifications
You must be signed in to change notification settings - Fork 0
/
INSTALLING
307 lines (201 loc) · 10.9 KB
/
INSTALLING
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
270
271
272
273
274
275
276
277
278
279
280
281
282
283
284
285
286
287
288
289
290
291
292
293
294
295
296
297
298
299
300
301
302
303
304
305
306
307
== Building ==
=== Requirements ===
* Autoconf
* Automake
* Libtool
* shtool
* OpenSSL development package or libgcrypt development package.
* Airmon-ng (Linux) requires ethtool.
* On windows, cygwin has to be used and it also requires w32api package.
* On Windows, if using clang, libiconv and libiconv-devel
* Linux: LibNetlink 1 or 3. It can be disabled by passing --disable-libnl to configure.
* pkg-config (pkgconf on FreeBSD)
* FreeBSD, OpenBSD, NetBSD, Solaris and OS X with macports: gmake
* Linux/Cygwin: make and Standard C++ Library development package (Debian: libstdc++-dev)
=== Optional stuff ===
* If you want SSID filtering with regular expression in airodump-ng
(-essid-regex) pcre development package is required.
* If you want to use airolib-ng and '-r' option in aircrack-ng,
SQLite development package >= 3.3.17 (3.6.X version or better is recommended)
* If you want to use Airpcap, the 'developer' directory from the CD/ISO/SDK is required.
* In order to build besside-ng, besside-ng-crawler, easside-ng, tkiptun-ng and wesside-ng,
libpcap development package is required (on Cygwin, use the Aircap SDK instead; see above)
* For best performance on FreeBSD (50-70% more), install gcc5 (or better) via: pkg install gcc7
* rfkill
* For best performance on SMP machines, ensure the hwloc library and headers are installed. It is strongly recommended on high core count systems, it may give a serious speed boost
=== Installing required and optional dependencies ===
Below are instructions for installing the basic requirements to build
`aircrack-ng` for a number of operating systems.
Note: CMocka should not be a dependency when packaging Aircrack-ng.
==== Linux ====
===== Debian/Ubuntu =====
`sudo apt-get install build-essential autoconf automake libtool pkg-config libnl-3-dev libnl-genl-3-dev libssl-dev ethtool shtool rfkill zlib1g-dev libpcap-dev libsqlite3-dev libpcre3-dev libhwloc-dev libcmocka-dev`
===== Fedora/CentOS/RHEL =====
`sudo yum install libtool pkgconfig sqlite-devel autoconf automake openssl-devel libpcap-devel pcre-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel libcmocka-devel`
==== BSD ====
===== FreeBSD =====
`pkg install pkgconf shtool libtool gcc7 automake autoconf pcre sqlite3 openssl gmake hwloc cmocka`
===== DragonflyBSD =====
`pkg install pkgconf shtool libtool gcc7 automake autoconf pcre sqlite3 libgcrypt gmake cmocka`
==== OSX ====
XCode, Xcode command line tools and HomeBrew are required.
`brew install autoconf automake libtool openssl shtool pkg-config hwloc pcre sqlite3 libpcap cmocka`
==== Windows ====
===== Cygwin =====
Cygwin requires the full path to the `setup.exe` utility, in order to
automate the installation of the necessary packages. In addition, it
requires the location of your installation, a path to the cached
packages download location, and a mirror URL.
An example of automatically installing all the dependencies
is as follows:
`c:\cygwin\setup-x86.exe -qnNdO -R C:/cygwin -s http://cygwin.mirror.constant.com -l C:/cygwin/var/cache/setup -P autoconf -P automake -P bison -P gcc-core -P gcc-g++ -P mingw-runtime -P mingw-binutils -P mingw-gcc-core -P mingw-gcc-g++ -P mingw-pthreads -P mingw-w32api -P libtool -P make -P python -P gettext-devel -P gettext -P intltool -P libiconv -P pkg-config -P git -P wget -P curl -P libpcre-devel -P openssl-devel -P libsqlite3-devel`
===== MSYS2 =====
`pacman -Sy autoconf automake-wrapper libtool msys2-w32api-headers msys2-w32api-runtime gcc pkg-config git python openssl-devel openssl libopenssl msys2-runtime-devel gcc binutils make pcre-devel libsqlite-devel`
=== Compiling ===
To build `aircrack-ng`, the Autotools build system is utilized. Autotools replaces
the older method of compilation.
NOTE: If utilizing a developer version, eg: one checked out from source control,
you will need to run a pre-`configure` script. The script to use is one of the
following: `autoreconf -i` or `env NOCONFIGURE=1 ./autogen.sh`.
First, `./configure` the project for building with the appropriate options specified
for your environment:
`./configure <options>`
TIP: If the above fails, please see above about developer source control versions.
Next, compile the project (respecting if `make` or `gmake` is needed):
* Compilation:
`make`
* Compilation on *BSD or Solaris:
`gmake`
Finally, the additional targets listed below may be of use in your environment:
* Execute all unit testing:
`make check`
* Installing:
`make install`
* Uninstall:
`make uninstall`
==== `./configure` flags ====
When configuring, the following flags can be used and combined to adjust the suite
to your choosing:
* with-airpcap=DIR: needed for supporting airpcap devices on windows (cygwin or msys2 only)
Replace DIR above with the absolute location to the root of the
extracted source code from the Airpcap CD or downloaded SDK available
online. Required on Windows to build besside-ng, besside-ng-crawler,
easside-ng, tkiptun-ng and wesside-ng when building experimental tools.
The developer pack (Compatible with version 4.1.1 and 4.1.3) can be downloaded at
https://support.riverbed.com/content/support/software/steelcentral-npm/airpcap.html
* with-experimental: needed to compile tkiptun-ng, easside-ng, buddy-ng, buddy-ng-crawler,
airventriloquist and wesside-ng. libpcap development package is also
required to compile most of the tools.
If not present, not all experimental tools will be built.
On Cygwin, libpcap is not present and the Airpcap SDK replaces it.
See --with-airpcap option above.
* with-ext-scripts: needed to build `airoscript-ng`, `versuck-ng`, `airgraph-ng` and
`airdrop-ng`.
Note: Each script has its own dependencies.
* with-gcrypt: Use libgcrypt crypto library instead of the default OpenSSL.
And also use internal fast sha1 implementation (borrowed from GIT)
Dependency (Debian): libgcrypt20-dev
* with-duma: Compile with DUMA support. DUMA is a library to detect buffer overruns and under-runs.
Dependencies (debian): duma
* disable-libnl: Set-up the project to be compiled without libnl (1 or 3). Linux option only.
* without-opt: Do not enable stack protector (on GCC 4.9 and above).
* enable-shared: Make a OSdep a shared library.
* disable-shared: When combined with enable-static, it will statically compile Aircrack-ng.
* with-avx512: On x86, add support for AVX512 instructions in aircrack-ng. Only use it when
the current CPU supports AVX512.
* with-static-simd=<SIMD>: Compile a single optimization in aircrack-ng binary. Useful when compiling
statically and/or for space-constrained devices. Valid SIMD options: x86-sse2,
x86-avx, x86-avx2, x86-avx512, ppc-altivec, ppc-power8, arm-neon, arm-asimd.
Must be used with --enable-static --disable-shared. When using those 2 options, the default
is to compile the generic optimization in the binary. --with-static-simd merely allows
to choose another one.
===== Examples =====
* Configure and compiling:
`./configure --with-experimental`
`make`
* Compiling with gcrypt:
`./configure --with-gcrypt`
`make`
* Installing:
`make install`
* Installing (strip binaries):
`make install-strip`
* Installing, with external scripts:
`./configure --with-experimental --with-ext-scripts`
`make`
`make install`
* Testing (with sqlite, experimental and pcre)
`./configure --with-experimental`
`make`
`make check`
* Compiling on OS X with macports (and all options):
`./configure --with-experimental`
`gmake`
* Compiling on OS X 10.10 with XCode 7.1 and Homebrew:
`env CC=gcc-4.9 CXX=g++-4.9 ./configure`
`make`
`make check`
*NOTE*: Older XCode ships with a version of LLVM that does not support CPU feature
detection; which causes the `./configure` to fail. To work around this older LLVM,
it is required that a different compile suite is used, such as GCC or a newer LLVM
from Homebrew.
If you wish to use OpenSSL from Homebrew, you may need to specify the location
to its' installation. To figure out where OpenSSL lives, run:
`brew --prefix openssl`
Use the output above as the DIR for `--with-openssl=DIR` in the `./configure` line:
`env CC=gcc-4.9 CXX=g++-4.9 ./configure --with-openssl=DIR`
`make`
`make check`
* Compiling on FreeBSD with better performance
`env CC=gcc7 CXX=g++7 MAKE=gmake ./configure`
`gmake`
* Compiling on Cygwin with Airpcap (assuming Airpcap devpack is unpacked in Aircrack-ng directory)
```
cp -vfp Airpcap_Devpack/bin/x86/airpcap.dll src
cp -vfp Airpcap_Devpack/bin/x86/airpcap.dll src/aircrack-osdep
cp -vfp Airpcap_Devpack/bin/x86/airpcap.dll src/aircrack-crypto
cp -vfp Airpcap_Devpack/bin/x86/airpcap.dll src/aircrack-util
dlltool -D Airpcap_Devpack/bin/x86/airpcap.dll -d build/airpcap.dll.def -l Airpcap_Devpack/bin/x86/libairpcap.dll.a
autoreconf -i
./configure --with-experimental --with-airpcap=$(pwd)
make
```
* Compiling on DragonflyBSD with gcrypt using GCC 7
```
autoreconf -i
env CC=gcc7 CXX=g++7 MAKE=gmake ./configure --with-experimental --with-gcrypt
gmake
```
== Packaging ==
Automatic detection of CPU optimization is done at run time. This behavior
**is** desirable when packaging Aircrack-ng (for a Linux or other distribution.)
Also, in some cases it may be desired to provide your own flags completely and
not having the suite auto-detect a number of optimizations. To do this, add
the additional flag `--without-opt` to the `./configure` line:
`./configure --without-opt`
== Using precompiled binaries ==
=== Linux/BSD ===
* Use your package manager to download aircrack-ng
* In most cases, they have an old version.
* Packages (DEB and RPM) built from current git master are available on PackageCloud: https://packagecloud.io/aircrack-ng/git
=== Windows ===
* Install the appropriate "monitor" driver for your card (standard drivers doesn't work for capturing data).
* aircrack-ng suite is command line tools. So, you have to open a commandline
`Start menu -> Run... -> cmd.exe` then use them
* Run the executables without any parameters to have help
== Continous integration ==
Travis (Linux/Mac): https://travis-ci.org/aircrack-ng/aircrack-ng
AppVeyor: https://ci.appveyor.com/project/aircrack-ng/aircrack-ng
Coverity Scan: https://scan.coverity.com/projects/aircrack-ng
=== Buildbots ===
URL: https://buildbot.aircrack-ng.org/
Current buildbots:
- Intel Compiler
- Alpine Linux
- Kali Linux
- Armel Kali Linux
- Armhf Kali Linux
- FreeBSD
== Documentation ==
Documentation, tutorials, ... can be found on https://www.aircrack-ng.org
See also manpages and the forum.