language
stringlengths
0
24
filename
stringlengths
9
214
code
stringlengths
99
9.93M
aircrack-ng/.clang-format
--- AlignAfterOpenBracket: Align AlignConsecutiveAssignments: false AlignConsecutiveDeclarations: false AlignOperands: true AlignTrailingComments: false AllowShortCaseLabelsOnASingleLine: false AllowShortFunctionsOnASingleLine: All AllowShortIfStatementsOnASingleLine: true AllowShortLoopsOnASingleLine: true AlwaysBreakBeforeMultilineStrings: false BinPackArguments: false BinPackParameters: false BreakBeforeBinaryOperators: All BreakBeforeBraces: Allman BreakBeforeTernaryOperators: true ColumnLimit: 80 ContinuationIndentWidth: 4 IndentCaseLabels: true IndentWidth: 4 MaxEmptyLinesToKeep: 1 NamespaceIndentation: None PointerAlignment: Middle ReflowComments: false SortIncludes: false SpaceAfterCStyleCast: true SpaceBeforeAssignmentOperators: true SpaceBeforeParens: ControlStatements SpaceInEmptyParentheses: false SpacesInAngles: false SpacesInParentheses: false SpacesInSquareBrackets: false Standard: Cpp11 TabWidth: 4 UseTab: Always
aircrack-ng/.codespellrc
[codespell] skip = *.patch,./LICENSE.OpenSSL,./test/password.lst,./test/password-2.lst,./test/password-3.lst, ignore-words-list = aci,ba,curent,datas,inout,keep-alives,nnumber,overthere,parm,parms,ue,varian,wan
aircrack-ng/.coverityignore
apparmor/ contrib/ manpages/ patches/ scripts/ .github/ .vscode/ .clang-format .editorconfig .gitignore .pre-commit-config.yaml AC_VERSION.in AUTHORS centos_autotools.sh ChangeLog docker_package_install.sh Dockerfile Dockerfile.release INSTALLING LICENSE.OpenSSL README SECURITY.md
aircrack-ng/.editorconfig
[*] charset=utf-8 end_of_line=lf insert_final_newline=false indent_style=tab indent_size=4 [{*.c,*.cp,*.cc,*.hpp,*.cpp,*.tcc,*.hp,*.cxx,*.icc,*.mm,*.hxx,*.ii,*.hh,*.m,*.i,*.h,*.h++,*.c++,*.pch,*.inl}] indent_style=tab indent_size=4 insert_final_newline=false [{CMakeLists.txt,*.cmake}] indent_style=space indent_size=2 [{Makefile.*,Makefile,GNUmakefile,makefile,*.mk}] indent_style=tab tab_width=2 [{*.yml,*.yaml}] indent_style=space indent_size=2 [appveyor.yml] end_of_line=crlf
aircrack-ng/.gitignore
/*-ng /besside-ng-crawler /ivstools /kstats /wpaclean src/osdep/.os.Linux src/osdep/libosdep.a src/tags tags *.a *.so *.dll *.o *.exe *.log *.trs *.zip *.tar.* common.cfg Makefile.in aclocal.m4 autom4te.cache/ compile /config.h /config.h.in config.guess config.log config.status config.sub configure install-sh libtool ltmain.sh missing reautogen.sh src/Makefile.in *.lo .deps .libs .dirstamp /depcomp /aminclude_static.am /stamp-h1 *.la *.gcda *.gcno *.orig /test-driver /**/*-coverage.info /**/*-coverage /**/*.log /**/*.trs /scripts/airdrop-ng/build /scripts/airgraph-ng/build /test-calc-4pmk /test-calc-mic /test-calc-pmk /test-calc-ptk /test-cipher-arcfour /test-decrypt-ccmp /test-digest-md5 /test-digest-sha1 /test-encrypt-ccmp /test-encrypt-wep /test-hex_string_to_array /test-kdf-pbkdf2-hmac-sha1 /test-mac-hmac-md5 /test-mac-hmac-sha1 /test-mac-hmac-sha256 /build/m4/stubs/* !/build/m4/stubs/.gitkeep /test/test-env.sh /.idea /.clang_complete CMakeLists.txt /cmake-build-* *.gcda *.gcno Makefile !/contrib/commview/Makefile !/contrib/airpcap/Makefile !/contrib/peek/Makefile !/scripts/airgraph-ng/lib/Makefile /scripts/airmon-ng /benchmark.csv /.cccc /cccc.opt /.scannerwork /.bash_history /.cproject /.lesshst /.project /.rpmdb /.settings benchmark*.csv /bw-output compile_commands.json coverage*.info /test/cryptounittest/default.profraw /test-calc-one-pmk /test-string-has-suffix /test-wpapsk /test-wpapsk-cmac /test-circular-buffer /test-circular-queue /GPATH /GRTAGS /GSYMS /GTAGS /VERSION /AC_VERSION /aminclude_static.am /config.h /config.h.in /include/aircrack-ng/version.h /manpages/*.1 /manpages/*.8 /.ccls-cache /.cache /.gdb_history /cscope* /strace_out /.clangd /r*hs /r*hs-bad /r*tr /r*tr-bad *~ *.pidb /.vscode/settings.json /infer-out/
YAML
aircrack-ng/.pre-commit-config.yaml
--- # See https://pre-commit.com for more information # See https://pre-commit.com/hooks.html for more hooks exclude: > (?x)^( .github/|AUTHORS|ChangeLog|INSTALLING|LICENSE|README| appveyor.yml|build/airpcap.dll.def|contrib/|lib/csharp| lib/radiotap|include/aircrack-ng/third-party|patches/| test/|scripts/|manpages/|apparmor/ ) fail_fast: false repos: - repo: https://github.com/pre-commit/pre-commit-hooks rev: v4.0.1 hooks: - id: trailing-whitespace exclude_types: [asm] - id: check-added-large-files - id: mixed-line-ending exclude_types: [asm] - id: check-byte-order-marker - id: check-executables-have-shebangs - id: check-merge-conflict - repo: https://github.com/pocc/pre-commit-hooks rev: v1.3.5 hooks: - id: clang-format args: ["--style=file", "-i"] - repo: https://github.com/shellcheck-py/shellcheck-py rev: v0.7.2.1 hooks: - id: shellcheck files: 'test/|scripts/|build/' - repo: https://github.com/hadolint/hadolint rev: v2.12.0 hooks: - id: hadolint files: 'Dockerfile|Dockerfile.release'
aircrack-ng/AUTHORS
Original Author =============== Thomas d'Otreppe <tdotreppe@aircrack-ng.org> Contributors ============ * Zero Chaos - Airmon-ng maintainer - Occasional driver patch fixer - Driver tester * Joseph Benden <joe@aircrack-ng.org> - Instituted the project's coding style & formatting guidelines - Performed conversion from Subversion and Trac to GitHub - Continuous Integration: Buildbot system as well as AppVeyor setup and tuning TravisCI - Converted project from Makefiles to an Autotools-based build - Forged the WPA cracking engine; capable of linearly scaling up to at least 96 cores - Dynamically utilize the best SIMD instructions, at run-time, instead of build-time - Improved compilation on non-x86 platforms - Fixed many issues relating to SIMD on non-x86 architectures * Levert - Initial Subversion, trac and buildbot set-up * Andrea Bittau - osdep: OS-dependant capture/injection layer conditionally (OS) compiled * hirte (Martin Beck) <martin.beck2@gmx.de> - Aircrack-ng: implementation of PTW, KoreK attack speedup - Aireplay-ng: Fragmentation attack, Shared Key Authentication attack, injection test, hirte attack, Caffe Latte, Client Fragmentation, using two wireless interfaces in aireplay-ng (one for capture, one for injection) - Airodump-ng: Screen formatting and layout improvements - ieee80211 and mac80211 driver patches and driver-related changes/fixes in the tools - osdep improvements (mac80211 among other things) and fixes - New tools: airtun-ng, tkiptun-ng, airserv-ng, airdriver-ng, airbase-ng - IVS file format - airmon-ng improvements - Partial handshake cracking and detection * Carlos Lopez <clopez@igalia.com> - Added support for gcrypt instead of openssl - Crypto unit tests and tests for other tools - Manpage reorganization and improvements - Makefile fixes and improvements - Travis CI set-up - Airodump-ng: --manufacturer, --wps options * DarkAudax - Wiki: Documentation and tutorials - Added unit tests * ASPj (Pedro Larbig) - Driver-related fixes - New tools: Airtun-ng - ieee80211 driver patches (ipw3945, rt73, rt2570, prism2) - MDK3 - WDS support in different tools - besside-ng-crawler * Leandro Meiners <lmeiners@coresecurity.com/gmail.com> and Diego Sor <dsor@coresecurity.com/diegos@gmail.com> - WPA Migration mode attack and documentation * nathanh2011 - Revamped GPS logging functionality and added logcsv format * XayOn - Airoscript-ng - Airgraph-ng and airdrop-ng improvements * Daouid - Airoscript * Chris Lundquist - Aircrack-ng: Crack HCCAPx files - Aircrack-ng: Improve loading speed of large capture files - Aircrack-ng: Improve processing speed of large capture files * kimocoder (Christian B.) <kimocoder@aircrack-ng.org> - rtl8812au driver * dzk|kuro <dzk.kuro@gmail.com> - Initial capture/injection on BSD * Erik Tews <e_tews@cdc.informatik.tu-darmstadt.de> - Author of PTW attack * Loris Degioanni - Airpcap support * NetRoller3D - mac80211 driver patches and related fixes/improvements in osdep - Airmon-ng fixes - Radiotap support (and PPI detection) in various tools - Airdriver-ng improvements * Moshe Kaplan - Coverity Scan set-up - Memory leak and other fixes - AppArmor profiles * TheX1le (Ben Smith) - airgraph-ng - versuck-ng - airdrop-ng * nx5 (Alvaro Salmador) <naplam33@msn.com> - Aircrack-ng: WPA SSE2 implementation * Len White - Aircrack-ng: WPA AVX/AVX2 code porting from JTR * Tim de Waal - Airventriloquist-ng Thanks to ========= Alon Bar-Lev <alon.barlev@gmail.com> Almantsas Jano yh0- <yysjryysjr@gmail.com> Darko Sancanin <darko.sancanin@gmail.com> Fabrice Fontaine Julian Tyler LatinSud aka SuD layoyo Marohiver Michael Buesch <mb@bu3sch.de> myst404 Ryan Schmidt neheb (Rosen Penev) San Foxman Samuel Henrique tjt263 ZhaoChunsheng Kyle Fuller <inbox@kylefuller.co.uk> SemiSkimmedSteve mnt XBM5 Raúl Calvo Laorden Lars Engels darkfires Marks Mathy Vanhoef Wojciech Waga Gustavo Zacarias steev rmh Arnaud Fontaine beini yadox Ramiro Polla matrix.use.linux m4tr1x dan Christoph J. Thompson stsp Edgan Wiz Wouter van Kesteren buzzsaw slyfox Sergei Trofimovich mrpisto Paul Fertser impulse32 jeroenimo iceblox Ludovic Drolez Christian Mock Weedy ... and to anybody else who contributed, who, sometimes wishes to remain anonymous.
Shell Script
aircrack-ng/autogen.sh
#!/bin/sh # # Aircrack-ng # # Copyright (C) 2017 Joseph Benden <joe@benden.us> # # Autotool support was written by: Joseph Benden <joe@benden.us> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA # # In addition, as a special exception, the copyright holders give # permission to link the code of portions of this program with the # OpenSSL library under certain conditions as described in each # individual source file, and distribute linked combinations # including the two. # # You must obey the GNU General Public License in all respects # for all of the code used other than OpenSSL. # # If you modify file(s) with this exception, you may extend this # exception to your dnl version of the file(s), but you are not obligated # to do so. # # If you dnl do not wish to do so, delete this exception statement from your # version. # # If you delete this exception statement from all source files in the # program, then also delete it here. set -euf test -n "${srcdir:-}" || srcdir="$(dirname "$0")" test -n "${srcdir:-}" || srcdir=. cd "$srcdir" missing_tool() { _prog="$1" _env="$2" echo "Could not auto-detect '${_prog}'; please install or specify the '${_env}' environment variable." exit 1 } if [ -z "${LIBTOOLIZE:-}" ]; then if which libtoolize >/dev/null 2>/dev/null; then LIBTOOLIZE="$(which libtoolize 2>/dev/null)" elif which glibtoolize >/dev/null 2>/dev/null; then LIBTOOLIZE="$(which glibtoolize 2>/dev/null)" else missing_tool libtoolize LIBTOOLIZE fi fi if [ -z "${ACLOCAL:-}" ]; then if which aclocal >/dev/null 2>/dev/null; then ACLOCAL="$(which aclocal 2>/dev/null)" else missing_tool aclocal ACLOCAL fi fi if [ -z "${AUTOCONF:-}" ]; then if which autoconf >/dev/null 2>/dev/null; then AUTOCONF="$(which autoconf 2>/dev/null)" else missing_tool autoconf AUTOCONF fi fi if [ -z "${AUTOHEADER:-}" ]; then if which autoheader >/dev/null 2>/dev/null; then AUTOHEADER="$(which autoheader 2>/dev/null)" else missing_tool autoheader AUTOHEADER fi fi if [ -z "${AUTOMAKE:-}" ]; then if which automake >/dev/null 2>/dev/null; then AUTOMAKE="$(which automake 2>/dev/null)" else missing_tool automake AUTOMAKE fi fi "$LIBTOOLIZE" --force --copy --automake "$ACLOCAL" -I build/m4/stubs -I build/m4 ${ACLOCAL_FLAGS:-} "$AUTOCONF" "$AUTOHEADER" "$AUTOMAKE" \ --gnu --add-missing --force --copy \ -Wno-portability -Wno-portability { cat <<EOF #!/usr/bin/env bash ./autogen.sh "$@" "\$@" EOF } > reautogen.sh chmod +x reautogen.sh if [ -n "${NOCONFIGURE:-}" ]; then echo "Done. ./configure skipped." exit $? fi exec ./configure "$@"
Shell Script
aircrack-ng/centos_autotools.sh
#!/bin/sh # Install newer version of autotools, automake, libtool, and pkgconfig on CentOS 7 if [ ! -f /etc/os-release ]; then echo 'os-release not present, aborting' exit 1 fi . /etc/os-release # Untested on Red Hat if [ "x${ID}" != 'xcentos' ] && [ "x${ID}" != 'xredhat' ]; then echo 'OS is not CentOS or Red Hat, aborting' exit 1 fi if [ "x${VERSION_ID}" != 'x7' ]; then echo "Invalid CentOS/Red Hat version. Expected 7, got ${VERSION_ID}, aborting" exit 1 fi yum install epel-release # Install packages if not already present # Yeah, automake is required to build a newer version of automake PACKAGES="tar glib2-devel gcc gcc-c++ make m4 perl-Data-Dumper help2man automake" NB_INSTALLED_PKG=$(yum list install ${PACKAGES} | sed -n '/Installed Packages/,$p' | wc -l) # Count includes the "Installed Packages" line, so decreasing count by 1 NB_INSTALLED_PKG=$((NB_INSTALLED_PKG-1)) NB_PKG=$(echo ${PACKAGES} | wc -w) [ ${NB_PKG} -ne ${NB_INSTALLED_PKG} ] && yum install ${PACKAGES} autoconf_version=2.69 automake_version=1.16.1 libtool_version=2.4.6 pkgconf_version=0.29 TMP_DIR=$(mktemp -d) cd ${TMP_DIR} echo "Installing autoconf ${autoconf_version}" curl -L http://ftp.gnu.org/gnu/autoconf/autoconf-${autoconf_version}.tar.xz > autoconf-${autoconf_version}.tar.xz \ && tar xJf autoconf-${autoconf_version}.tar.xz \ && cd autoconf-${autoconf_version} \ && ./configure --prefix=/usr/local \ && make \ && make install \ && cd .. # Requires autoconf 2.65+ echo "Installing automake ${automake_version}" curl -L http://ftp.gnu.org/gnu/automake/automake-${automake_version}.tar.xz > automake-${automake_version}.tar.xz \ && tar xJf automake-${automake_version}.tar.xz \ && cd automake-${automake_version} \ && ./configure --prefix=/usr/local \ && make \ && make install \ && cd .. echo "Installing libtool ${libtool_version}" curl -L http://ftp.gnu.org/gnu/libtool/libtool-${libtool_version}.tar.xz > libtool-${libtool_version}.tar.xz \ && tar xJf libtool-${libtool_version}.tar.xz \ && cd libtool-${libtool_version} \ && ./configure --prefix=/usr/local \ && make \ && make install \ && cd .. echo "Installing pkg-config ${pkgconf_version}" curl -L https://pkg-config.freedesktop.org/releases/pkg-config-${pkgconf_version}.tar.gz > pkg-config-${pkgconf_version}.tar.gz \ && tar xzf pkg-config-${pkgconf_version}.tar.gz \ && cd pkg-config-${pkgconf_version} \ && ./configure --prefix=/usr/local --libdir=/usr/lib64 \ && make \ && make install \ && cd .. echo 'Done'
aircrack-ng/ChangeLog
Version 1.7 (changes from aircrack-ng 1.6) - Released 10 May 2022: * Airdecap-ng: Endianness fixes * Airdecap-ng: Output PCAP as little endian * Airodump-ng: Fixed blank encryption field when APs have TKIP (and/or CCMP) with WPA2 * Airodump-ng: Updated encryption filter (-t/--encrypt) for WPA3 and OWE * Airodump-ng: Fixed out-of-order timestamp captures * Airodump-ng: Ignore NULL PMKID * Airodump-ng: Fixed dropping management frames with zeroed timestamp * Airodump-ng: Fixed sorting where sometimes it started with a different field * Airodump-ng: Allow setting colors only in AP selection mode * Airodump-ng: Fix crash on 4K Linux console * Airodump-ng: Fixed issue where existing clients not linked to an AP become hidden when hitting 'o' * Airodump-ng: Allow use of WiFi 6E 6GHz frequencies * Airodump-ng: Look for oui.txt in /usr/share/hwdata * Airgraph-ng: Fixed graphviz package conflict * Airgraph-ng: Fixed downloading OUI with python3 * Airgraph-ng: Ensure support/ directory is created when installing * Aircrack-ng: Fixed static compilation * Aircrack-ng: Fix handshake replay counter logic * Aircrack-ng: Handle timeout when parsing EAPOL * Aircrack-ng: Fixed WEP display * Aircrack-ng: Fixed spurious EXIT messages * Aircrack-ng: Improved handshake selection by fixing EAPOL timing and clearing state * Aircrack-ng: Ignore NULL PMKID * Aircrack-ng: Added Apple M1 detection * Aireplay-ng: In test mode, detect tampering of sequence number by firmware/driver * Aireplay-ng: Fixed incorrectly rewritten loops affecting fragmentation attack, and in some cases, SKA fake auth * Aireplay-ng: Fixed a bunch of instances where packets had their duration updated instead of the sequence number * Airmon-ng: Fix avahi killing * Airmon-ng: rewrite service stopping entirely * Airmon-ng: Codestyle fixes and code cleanup * Airmon-ng: Added a few Raspberry Pi hardware revisions * Airmon-ng: Fixes for 8812au driver * Airmon-ng: Fix iwlwifi firmware formatting * Airmon-ng: Remove broken KVM detection * Airmon-ng: Show regdomain in verbose mode * Airmon-ng: Updated Raspberry Pi hardware revisions * Airmon-ng: Document frequency usage * Airmon-ng: Add a sleep to help predictable names due to udev sometimes renaming interface * Airmon-ng: Added warning for broken radiotap headers in kernel 5.15 to 5.15.4 * Airmon-ng: shellcheck fixes * Airmon-ng: support systemctl as some systems don't support 'service' anymore * Airmon-ng: Fixes for pciutils 3.8, backward compatible * Airbase-ng: use enum for frame type/subtype * Airbase-ng: remove a few IE in association responses * Besside-ng: Support and detect all channels in 5GHz in Auto-Channel mode * OSdep: Search additional IE for channel information * OSdep: Android macro fixes * Patches: Add missing patches that were on https://patches.aircrack-ng.org but not in repo * Patches: Updated freeradius-wpe patch for v3.2.0 * Patches: Updated hostapd-wpe patch for v2.10 * Patches: Added docker containers to test WPE patches * Autotools: make dist now creates VERSION file * Autotools: Added maintainer mode * Autotools: Initial support for Link Time Optimization (LTO) builds * Integration tests: Added a new test, and improved some existing ones * Airgraph-ng: switch airodump-join to Python 3 * Manpages: Fixes (typos, tools name, etc.) and improvements * README: Updated dependencies and their installation on various distros in README.md and INSTALLING * README: Fixed typos and spelling in README.md and INSTALLING * Packages: Packages on PackageCloud now support any distro using .deb and .rpm, however, it requires reinstalling repo (BREAKING CHANGE) * General: Fix compilation with LibreSSL 3.5 * General: Fix issues reported by Infer * General: Updated buildbots * General: Add Linux uclibc support * General: Compilation fixes on macOS with the Apple M1 CPU * General: Removed TravisCI and AppVeyor * General: Use Github Actions for CI (Linux, Win, macOS, code style, and PVS-Studio) * General: Added vscode devcontainer and documentation * General: Fix warnings from PVS-Studio and build with pedantic (See PR2174) * General: Shell script fixes thanks to shellcheck * General: Fixes for GCC 10 and 11 * General: Fixed cross-compilation * General: Code refactoring, deduplication, cleanup, and misc code improvements * General: Coverity Scan fixes, which includes memory leaks, race conditions, division by 0, and other issues * General: PVS Studio improvements,fixes and updates * General: Code formatting/style fixes * General: Various fixes and improvements (code, CI, integration tests, coverity) * General: Update bug reporting template and update the process Version 1.6 (changes from aircrack-ng 1.5.2) - Released 25 Jan 2020: * Aircrack-ng: Added support for MidnightBSD * Aircrack-ng: Fixed ARM processors display with -u * Aircrack-ng: Fixed AVX-512F support * Aircrack-ng: Fixed cracking speed calculation * Aircrack-ng: Fixed cracking WEP beyond 10k IVS * Aircrack-ng: Fixed creating new session and added test case * Aircrack-ng: Fixed encryption display in some cases when prompting for network to crack * Aircrack-ng: Fixed exiting Aircrack-ng in some cases * Aircrack-ng: Fixed logical and physical processor count detection * Aircrack-ng: Fixed PMKID length check * Aircrack-ng: Various fixes and improvements to WPA cracking engine and its performance * Airdecap-ng: Decrypt both directions when WDS is in use * Airdecap-ng: Fixed decrypting WPA PCAP when BSSID changes * Airgraph-ng: Added support for WPA3 * Airgraph-ng: Switch to argparse * Airmon-ng: Added detection for wicd, Intel Wireless Daemon (iwd), net_applet * Airmon-ng: Handle case when avahi keeps getting restarted * Airmon-ng: Indicates when interface doesn't exist * Airodump-ng: Added autocolorization interactive key * Airodump-ng: Added option to read PCAP in realtime (-T) * Airodump-ng: Added PMKID detection * Airodump-ng: Added support for GMAC * Airodump-ng: Added support for WPA3 and OWE (Enhanced Open) * Airodump-ng: Basic UTF-8 support * Airodump-ng: Checked management frames are complete before processing IE to avoid switch from WEP to WPA * Airodump-ng: Display signal when reading from PCAP * Airodump-ng: Fixed netxml output with hidden SSID * Airodump-ng: Improved rates calculation for 802.11n/ac * Airtun-ng: Fixed using -p with -e * Autoconf: Fixed order of ssl and crypto libraries * dcrack: Fixed client reporting benchmark * dcrack: Now handles chunked encoding when communicating (default in Python3) * Freeradius-WPE: Updated patch for v3.0.20 * General: Added NetBSD endianness support * General: Added python3 support to scripts * General: Added script to update autotools on CentOS 7 * General: Added security policy to report security issues * General: Reorganizing filesystem layout (See PR 2032), and switch to automake 1.14+ * General: Convert to non-recursive make (part of PR 2032) * General: Deduplicating functions and code cleanups * General: Fixed packaging on cygwin due to openssl library name change * General: Fixed SPARC build on Solaris 11 * General: Removed coveralls.io * General: Updated dependencies in README.md/INSTALLING * General: Use upstream radiotap library, as a sub-tree * General: various fixes and improvements (code, CI, integration tests, coverity) * HostAPd-WPE: Updated for v2.9 * Manpages: Fixes and improvements * Tests: Added Integration tests for aireplay-ng, airodump-ng, aircrack-ng, airbase-ng, and others * Tests: Added tests for airdecap-ng, aircrack-ng Version 1.5.2 (changes from aircrack-ng 1.4) - Released 09 Dec 2018: * Airodump-ng: Fixed AP selection slip in interactive mode * Airodump-ng: Revamped GPS logging functionality and added new logging format (logcsv) * Aircrack-ng: Only load the maximum supported and available crypto engine * Aircrack-ng: Reworked wordlist producer/consumer queue * Airserv-ng: Fixed communication between platforms with different size int * Airmon-ng: Improved detection of Raspberry Pis * General: Signed and unsigned comparison fixes * Package: Added package for Ubuntu 18.10 (Cosmic) * General: Code cleanups * General: Added more tests * General: Compilation improvements/fixes in autotools * General: Big endian fixes * General: Fixed building on FreeBSD and OpenBSD * General: Added instructions to compile on DragonflyBSD and OpenBSD * General: Fixed spelling errors Version 1.4 (changes from aircrack-ng 1.3) - Released 29 Sep 2018: * Aircrack-ng: Added PMKID cracking * Aircrack-ng: Serious speed up and memory usage decrease when loading large files (multiple Gb) using AVL trees * Aircrack-ng: Added hwloc (Hardware Locality) to improve performance * Aircrack-ng: Support cracking PCAP with Protected Management Frames (802.11w) * Aircrack-ng: Merged check_thread() and read_thread() * Aircrack-ng: Allow static linking with chosen SIMD * Aircrack-ng: Display AVX512F when present * Airodump-ng: Added clients GPS coordinates in NetXML file * Airdecap-ng: Improve decrypting/parsing speed * Airmon-ng: Updated/fixed using with nexmon * Airmon-ng: Better check for lspci requirement on systems that don't have PCI/PCIe devices * Airmon-ng: Added support for rtl8812au/8814au/rtl88xxau driver * Build: Fixed building with a few different architectures * Build: Switch to new CI/CD tool, PyDeployer * Build: Improved building on Windows (and building/testing with AppVeyor) * Build: Improved and tweaked CI systems (buildbots, Travis, AppVeyor) * Build: Support for statically linking libraries/binaries * Build: Automatic development packages build for multiple Linux distro and upload to PackageCloud.io * Tests: Added new tests for Aircrack-ng * Tests: Added new capture files * Freeradius-WPE: Fixed opening log file twice * General: Fixed loading PCAP on system with a different endianness * General: Fixed memory leaks and issues reported by static analysis tools * General: Fixed "error while loading shared libraries" * General: Various other small improvements in the tools, build system, tests and documentation * General: Update FSF address * General: Code formatting Version 1.3 (changes from aircrack-ng 1.2) - Released 10 Jul 2018: * Aircrack-ng: Allow using Hashcat HCCAPX files as input files. * Aircrack-ng: Fixed floating point exception due to division by 0 when displaying stats. * Aircrack-ng: Updated manpage regarding hex wordlist usage. * Aircrack-ng: Added save/restore session when cracking using wordlists (-N and -R). * Aircrack-ng: Moved crypto to its own library, aircrack-crypto/ (aka crypto engine). * Aircrack-ng: Now back to a single binary thanks to crypto-engine. * Aircrack-ng: Performance improvements of the crypto engine across various CPU architectures. * Aircrack-ng: Added support for AVX512 in the crypto-engine (and build). * Aircrack-ng: Improved building crypto-engine across CPU architectures and compilers (gcc, clang and ICC). * Aircrack-ng: Allow to list available SIMD optimizations. * Aircrack-ng: Improved benchmark tool for unusual CPU/cores count. * Airodump-ng: Fixed running in the background. * Airodump-ng: Don't show WPA handshake capture notice for out-of-scope ESSIDs. * Airodump-ng: Add --background 0/1 to force disable/enable background settings and override autodetection of background. * Airodump-ng: Added support for GCMP, GCMP-256 and CCMP-256. * Airolib-ng: Fixed importing data when interrupting process using Ctrl-C. * dcrack: Check if dictionary and capture file exists before uploading them. * dcrack: Clean up dictionary before uploading it to the server. * dcrack: Gracefully stop and display errors instead of printing stacktrace whenever possible. * dcrack: Move temporary user files to /tmp and cleanup when done. * dcrack: Fixed displaying status when no clients are connected to the server. * dcrack: Validate uploaded PCAP and display success/failure. * dcrack: Improved removing BSSID. * WPAClean: Fixed crash with invalid prism2 header PCAP and added tests. * WPAClean: Don't create output file if no handshake are present or if input file is bad. * WPAClean: Fixed memory leak. * Airmon-ng: Fixed display of interface name if name is too long. * OSdep: Fixed memory leak and null pointer dereference. * OSdep: Fixed byteorder macros and other tools crashing. * OSdep: Added support to build as a shared library. * FreeRADIUS-WPE: Updated instructions for v3.0.17. * HostAPd-wpe: Added Response-Identity logging and displaying NETNTLM hash in hashcat format. * Airgraph-ng: Renamed dump-join to airodump-join. * General: Added coveralls.io badge. * General: Added --without-opt to disable stack protector when using GCC >= 4.9 * General: Various improvements and fixes, some from Coverity Scan and Valgrind. * General: Fixed typos reported by codespell. * General: Extracted console functions and moved to aircrack-util/. * General: Renamed osdep/ to aircrack-osdep/. * General: Fixed and added functions prototypes and commented out unused functions. * General: Reformat source code using clang-format and added .clang-format file for IDE. * General: Improvements to AppVeyor and TravisCI builds * Building: Added NEON intrinsic support. * Building: Support paths containing spaces, during autoreconf. * Building: Fix compilation without getauxval in the trampoline binary. * Building: Fixed compiler warnings on Windows, FreeBSD. * Building: Fixes and documentation for OSX. * Building: Added support for tcmalloc and jemalloc. * Building: Added instruction to build Windows binaries with Airpcap. * Unit test: Using CMocka for some tests * Documentation: Updated explanations regarding building some experimental tools. Version 1.2 (changes from aircrack-ng 1.2-rc5) - Released 15 Apr 2018: * General: Fixed compiling Windows binaries and updated README.md/INSTALLING. * General: Fixed commands to install dependencies on Debian/Ubuntu and FreeBSD. * General: Added command to install dependencies on Fedora/CentOS/RHEL. * General: Removed packages/ directory. * General: Added Alpine Linux and Kali Linux buildbots. * General: Fixed configure with --with-libpcap-include=/somewhere/include and --with-libpcap-lib=/somewhere/lib. * General: Fixed search for ethtool when running as a non-root user. * General: Various fixes. * Airmon-ng: Fixed mktemp on Alpine Linux. Version 1.2-rc5 (changes from aircrack-ng 1.2-rc4) - Released 03 Apr 2018: * General: Switching to autotools which allows compiling on more plateforms. * General: Updated README.md and INSTALLING files. * General: Fixed compilation on a lot of platforms. * General: Fixed compilation warnings across platforms and compilers. * General: Fixed typos in the tools and in manpages. * General: Replace %d/ld with %u/lu for unsigned printf parameters. * General: Added option to disable stack protector. * General: Improved makefile to get reproducible builds. * General: Fixed compilation with OpenSSL 1.1.0. * General: Updated radiotap parsing code. * General: Updated all URLs to use HTTPS. * General: Fixed compilation with libreSSL. * General: Added WPS 2.0 test PCAP. * General: Do not use stackguard on Windows. * General: Fixed warnings on GCC7. * General: Improved code quality using Coverity Scan. * General: Added badges for Coverity scan and Intel compiler buildbot * Aircrack-ng: Use trampoline binary to automatically select fastest executable depending on the CPU * Aircrack-ng: Fixed missing include for linecount. * Aircrack-ng: Fixed concurrency issues when reading multiple WEP PCAP. * Aircrack-ng: Added support for creating HCCAPx file format. * Airodump-ng: Get the channel from HT information. * Airodump-ng: Detect WPS 2.x. * Airodump-ng: Also check current directory for OUI file. * Airodump-ng: Fixed writing ESSID to CSV, Kismet CSV and Kismet NetXML files when ESSID gets decloaked and cloaked length was 1. * Aireplay-ng: Added deauthentication reason code option. * Aireplay-ng: Increase amount of AP to test when running injection test. * Airodump-ng: Fixed 802.11a channel hopping list. * Airodump-ng: Fix creation of .xor files. * Airodump-ng: Added support for HT channels (HT20/HT40-/HT40+). * Airodump-ng: Now displaying correct rate for 802.11n or 802.11ac AP. * Airmon-ng: Fixed checking for processes. * Airmon-ng: Fixed display of "cannot access '/sys/class/ieee80211/': No such file or directory". * Airmon-ng: Fixed bashisms. * Airmon-ng: Fixed display of specific drivers. * Airmon-ng: Fixed display of cards on the sdio bus. * Airmon-ng: Now supports nexmon driver on RPi 3 (and 0 Wireless) using Kali Linux. * Airmon-ng: Added identification for another realtek chipset and generic Ralink/MT. * Airmon-ng: Handle 2 types of rfkill commands and updated unblock text. * Airmon-ng: more portable modinfo usage. * Airmon-ng: remove grep -P references upon request. * Airmon-ng: Do not replace driver name by ?????? when driver is valid. * Airgraph-ng: Removed irrelevant comment in README. * Airgraph-ng: Handle SSID with double quotes. * Airgraph-ng: Fixed parsing OUI file. * Airdrop-ng: Updated lorcon2 installation instructions. * Besside-ng: Fixed 'wi_read(): No child processes' error. * Airdecloak-ng: Fixed segfault due to NULL pointer dereference. * osdep: Remove wi_set_channel(1) on open wifi interface (cygwin). * osdep: Fixed RAW socket resource leak. * Patches: Created WPE patches and documentation for current HostAPd and Freeradius versions. * Airodump-ng: Fix incorrect if conditions which always are false. * Airodump-ng: Remove useless not NULL check. * Airventriloquist: New tool from https://github.com/Caesurus/airventriloquist/ * dcrack: Fixed indentation. * TravisCI: Fixed compilation on OSX. * AppVeyor: Added support for AppVeyor, CI for cygwin builds. Version 1.2-rc4 (changes from aircrack-ng 1.2-rc3) - Released 14 Feb 2016: * Airodump-ng: Increase console window size. * Aircrack-ng: Added time remaining and percentage done when doing WPA cracking with a dictionary (file). * Aircrack-ng: Make benchmark last 15 seconds for a more accurate value. * Aircrack-ng: Fixed compilation on Cygwin 64 and drastically improve cracking speed for all CPUs (up to +175% performance). * Airmon-ng: Improved chipset detection on FreeBSD. * Airmon-ng: Display chipset for some Broadcom SDIO. * Airbase-ng: Fixed broadcasting 'default'. * General: Updated and cleanup TravisCI file to test compilation and testing on OSX. * General: Fixed reading large files on Cygwin. * General: Fixed a bunch of compilation warnings with gcc and clang. * General: Fixed compilation on Solaris, OpenBSD, DragonFlyBSD 4.4, NetBSD, OSX. * General: Fixed compilation on ARM and MIPS. * General: Improved compatibility on FreeBSD and Cygwin (RAM and CPU detection). * General: Fixed gcc segfault on cygwin. * General: Memory cleanups, fixed memory leaks and fix other issues reported by Valgrind. * Testing: Fixes on various OSes. * INSTALLING: Updated installation instructions for different OS. * TravisCI: Improved file. Version 1.2-rc3 (changes from aircrack-ng 1.2-rc2) - Released 21 Nov 2015: * Airodump-ng: Prevent sending signal to init which caused the system to reboot/shutdown. * Airbase-ng: Allow to use a user-specified ANonce instead of a randomized one when doing the 4-way handshake * Aircrack-ng: Fixed compilation warnings. * Aircrack-ng: Removed redundant NULL check and fixed typo in another one. * Aircrack-ng: Workaround for segfault when compiling aircrack-ng with clang and gcrypt and running a check. * Airmon-ng: Created version for FreeBSD. * Airmon-ng: Prevent passing invalid values as channel. * Airmon-ng: Handle udev renaming interfaces. * Airmon-ng: Better handling of rfkill. * Airmon-ng: Updated OUI URL. * Airmon-ng: Fix VM detection. * Airmon-ng: Make lsusb optional if there doesn't seem to be a usb bus. Improve pci detection slightly. * Airmon-ng: Various cleanup and fixes (including wording and typos). * Airmon-ng: Display iw errors. * Airmon-ng: Improved handling of non-monitor interfaces. * Airmon-ng: Fixed error when running 'check kill'. * Airdrop-ng: Display error instead of stack trace. * Airmon-ng: Fixed bashism. * Airdecap-ng: Allow specifying output file names. * Airtun-ng: Added missing parameter to help screen. * Besside-ng-crawler: Removed reference to darkircop.org (non-existent subdomain). * Airgraph-ng: Display error when no graph type is specified. * Airgraph-ng: Fixed make install. * Manpages: Fixed, updated and improved airodump-ng, airmon-ng, aircrack-ng, airbase-ng and aireplay-ng manpages. * Aircrack-ng GUI: Fixes issues with wordlists selection. * OSdep: Add missing RADIOTAP_SUPPORT_OVERRIDES check. * OSdep: Fix possible infinite loop. * OSdep: Use a default MTU of 1500 (Linux only). * OSdep: Fixed compilation on OSX. * AppArmor: Improved and added profiles. * General: Fixed warnings reported by clang. * General: Updated TravisCI configuration file * General: Fixed typos in various tools. * General: Fixed clang warning about 'gcry_thread_cbs()' being deprecated with gcrypt > 1.6.0. * General: Fixed compilation on cygwin due to undefined reference to GUID_DEVCLASS_NET * General: Fixed compilation with musl libc. * General: Improved testing and added test cases (make check). * General: Improved mutexes handling in various tools. * General: Fixed memory leaks, use after free, null termination and return values in various tools and OSdep. * General: Fixed compilation on FreeBSD. * General: Various fixes and improvements to README (wording, compilation, etc). * General: Updated copyrights in help screen. Version 1.2-rc2 (changes from aircrack-ng 1.2-rc1) - Released 10 April 2015: * Airtun-ng: Adds WPA CCMP and TKIP decryption and CCMP encryption * Compilation: Added support for DUMA. * Makefile: Renamed 'unstable' to 'experimental'. * Airodump-ng: Fixed XML sanitizing. * Airmon-ng: Airmon-zc is now stable enough to replace airmon-ng. * Manpages: Removed airdriver-ng manpage and references to it (forgot to do it before the previous release). * Manpages: Updated 'see also' references in all manpages. * PCRE: Added it in various places and docs. * WZCook: Fixed processing values stored in register. * Updated a few headers files (if_llc, ieee80211, ethernet and if_arp). * Travis CI: updated make parameter and add testing with pcre. * Compilation: de-hardcode -lpcap to allow specifying pcap libraries. * Makefile: Fixed installing/uninstalling Airdrop-ng documentation files. * Makefile: Fixed uninstalling ext_scripts. * Airodump-ng: Added new paths (and removed one) for OUI files and simplified logic to find the OUI file. * Aircrack-ng: Fixed ignoring -p when specified after -S. * Airmon-ng: fixes for openwrt busybox ps/grep issues which do not seem present in other versions of busybox * Airmon-ng: fix vm detection. * Airserv-ng: Fixed channel setting (and assert call). * Airodump-ng: Fixes to NetXML (unassociated clients missing and various other small bugs) and update the code to match current NetXML output. * Airodump-ng: Removed requirement for 2 packets before AP is written to output (text) files. * Airodump-ng: Fixed formatting of ESSID and display of WPA/WPA2 (as well as a bunch of other small fixes) in CSV file. * Airodump-ng: Fixed GPSd. * Airodump-ng: Allow to specify write interval for CSV, kismet CSV and NetXML files. * Airserv-ng: Fixed wrong station data displayed in Airodump-ng. * General: Fixed 64 bit promotion issues. * General: Fixed a bunch of uninitialized values and non-zeroed structures (upon allocating them). * General: Added Stack protection. * Various other small fixes and improvements. Version 1.2-rc1 (changes from aircrack-ng 1.2-beta3) - Released 31 October 2014: * Airodump-ng should be able to parse the canonical oui file. * Airodump-ng: Fixed GPS stack overflow. * Airodump-ng: Fixed stopping cleanly with Ctrl-C. * Airmon-zc: better handling for when modules are not available (incomplete). * Airmon-zc: users can now start the monitor interface again to change channels. * Airmon-zc: update to use ip instead of ifconfig if available. * Airmon-zc: better handling of devices without pci bus. * Aireplay-ng: Fixed tcp_test stack overflow. * OSdep: Fixed libnl detection. Also avoid detection on non Linux systems. * OSdep: Fixed segmentation fault that happens with a malicious server. * Besside-ng: Add regular expression matching for the SSID. * Buddy-ng: Fixed segmentation fault. * Makefile: Fixed 'commands commence before first target' error when building Aircrack-ng. * Fixed segfault when changing the optimization when compiling with gcc thanks to Ramiro Polla. * Removed airdriver-ng (outdated and not meant for today's kernels). * Added gitignore file. * Fixed build issues on other compilers by using stdint.h types. * Fixed CVE-2014-8321, CVE-2014-8322, CVE-2014-8323 and CVE-2014-8324 across multiple tools. * Updating installation file and added pkg-config as a requirement. * Various small fixes and improvements. Version 1.2-beta3 (changes from aircrack-ng 1.2-beta2) - Released 31 March 2014: * Finally properly fixed the buffer overflow. * Fixed channel parsing (eg 108, 125) and updated radiotap parser. * Various other small fixes. Version 1.2-beta2 (changes from aircrack-ng 1.2-beta1) - Released 30 November 2013: * Airbase-ng: Fixed order of IE when creating soft Access Point. * Airbase-ng: Fixed Caffe Latte Attack not working for all clients. * Aircrack-ng: Improved PTW speed thanks to Ramiro Polla. * Airmon-zc: Fixed improper use of the interface. * Airdecap-ng: Fixed decoding captures with WMM enabled. * Various: Fixed memory leaks in Aircrack-ng, Aireplay-ng, OSdep. * Added support for static analysis using Coverity Scan. * Fixed compilation due to PIC unfriendly assembly on Gentoo hardened. * Fixed running tests using 'make check'. * Fixed building aircrack-ng with recent version of gcc and also on cygwin. * Various other small fixes. Version 1.2-beta1 (changes from aircrack-ng 1.1) - Released 25 May 2013: * Airmon-ng: Added chipset information for ar9170usb, wl, rt2800usb, ar9271, wl12xx, RT3070STA, ath9k_htc, r871x_usb_drv, ath5k, carl9170 and various Intel drivers. * Airmon-ng: Fixed chipset information ipw2200. * Airmon-ng: Fixed output for r8187 driver. * Airmon-ng: Improved chipset information for a few drivers. * Airmon-ng: Support for displaying information about ath9k. * Airmon-ng: Added 'check kill' to automatically kill services that could interfere. * Airmon-ng: Fixed issues with Intel chipsets detection. * Airmon-ng: Updated iw download link. * Airmon-ng: Better mac80211 handling. * Airmon-ng: Added detection for WiLink TI driver, rtl819xU, iwlwifi. * Airmon-zc: Improved version of Airmon-ng with more detailed information. * Airdecap-ng: Fixed decoding QoS frames (Closes: #667 and #858). * Airgraph-ng: Use Aircrack-ng Makefile instead of its own. * Airbase-ng: Fixed bug using clients list. * Airbase-ng: Fixed issue with QoS (ticket #760). * Airbase-ng: Fixed sending beacons with null SSID. * Airbase-ng: Allow non ASCII ESSID. * Airodump-ng: Fixed buffer overflow (ticket #728). * Airodump-ng: Fixed channel parsing. * Airodump-ng: Fixed FreeBSD battery reading. * Airodump-ng: Renamed "Packets" column to "Frames" ("Packets" was not correct). * Airodump-ng: Fixed XML bugs when outputting NetXML: ESSID containing '&' or chinese characters, when multiple encryption are used. * Airodump-ng: Add alternative paths for Airodump-ng OUI file. * Airodump-ng: Added GPSd 2.92+ support (JSON). * Airodump-ng: Add option --manufacturer to display manufacturer column on airodump-ng. * Airodump-ng: Add feature to show APs uptime (--uptime) based on the timestamp. * Airodump-ng-OUI-update: Fixed OUI URL and allow CURL redirect (ticket #829). * Airdrop-ng: removed .py from file names. * Airdrop-ng: Fixed bug in installer. * Airdrop-ng: Fixed OUI lookup. * Airdrop-ng: Fixed bug when several BSSID have the same ESSID. * Airdrop-ng: Doesn't constantly parse anymore, wait 5 seconds each time it parses. * Airdrop-ng: Fixed crash when failing to get channel or when rules file didn't exist. * Airdrop-ng: Fixed to use lorcon.py/lorcon2 libs. * Airdrop-ng: Updated README. * Airdrop-ng: Fixed error preventing update to work. * Versuck-ng: New script to do the same thing as the kismet autowep plugin from the CLI. * Aircrack-ng: Fixed counter display error when cracking WPA. * Aircrack-ng: Added output of the WPA handshake to EWSA project file. * Aircrack-ng: Added output of the WPA handshake to oclhashcat+ project file. * Aircrack-ng: Added benchmark option, -S. * Aircrack-ng: Fixed -u option. * Aircrack-ng: PIC fix for hardened systems from Francisco Blas Izquierdo Riera (klondike) * Aircrack-ng: Allow dictionaries larger than 2Gb. * Aircrack-ng: Give a better message when there's an error with the dictionary. * Aircrack-ng: Prevent a buffer overflow from happening (Wojciech Waga). * Aireplay-ng: Added migration mode attack from Leandro Meiners and Diego Sor from Core Security (BlackHat Las Vegas 2010) * Aireplay-ng, Airodump-ng: Added option to ignore issue with -1 channel. * Airserv-ng: Fixed crash when clients disconnect. * Besside-ng-crawler: Added EAPOL Crawler. * Airdecloak-ng: Fixed bug when using pcap files with PPI headers. * dcrack: Distributed cracking server/client. * wifi-detect.sh: reference script for testing wifi card detection using iwconfig vs ls /sys/class/net * WPA Clean: Tool to merge and clean WPA capture files. * Wireless Panda: C# Library to parse Airodump-ng output files (and added example project). * OSdep (Linux): Setting fixed bitrates on mac80211 2.6.31 and up. * OSdep (Linux): Added support for nl80211 thanks to impulse32. Use 'make libnl=true' to add netlink support (Ticket #1004). * Manpages: Improvement and fixes for Airgraph-ng, Airodump-ng, packetforge-ng, Aircrack-ng * Manpages: Fixed various spelling issues and single quote issues. * Makefiles: Added tests for the different tools. * Makefiles: Various fixes and improvements. * Makefiles: Added support for libgrypt instead of OpenSSL via parameter. * Patches: Added a few patches. * Removed useless script: patchchk. * Finally fixed licensing issues. * Fixed endianness issues in most of the tools. * Fixed cppcheck errors (Ticket #957). * Fixed various compilation issues on Linux and Cygwin, GNU/Hurd, Darwin (OSX) and Sparc. * Fixed compilation on recent gcc versions on Linux, Cygwin. * Added instructions for Travis CI: Free Hosted Continuous Integration Platform for the Open Source Community. * Added Readme.Md for GitHub. Aircrack-ng subversion repository is synced on GitHub: http://github.com/aircrack-ng/aircrack-ng * Various other small bug fixes. Version 1.1 (changes from aircrack-ng 1.0) - Released 24 April 2010: * airdrop-ng: New tool by TheX1le. * airodump-ng, aircrack-ng, airdecap-ng, airbase-ng: Fixed buffer overflow in airodump-ng due to forged eapol frame. * aircrack-ng: Fixed multicast detection (WPA handshake detection). * airodump-ng: Added interaction (see wiki for the commands). * airodump-ng: Fixed client time in netxml file. * airtun-ng: Add WDS and bridge support. * airbase-ng: automatically set privacy bit to 1 if WPA or WPA2 is used (-Z or -z option). * airmon-ng: Updated iw URL for v0.9.19. * airdriver-ng: Fixed link for madwifi-ng. * aireplay-ng: Chopchop enhancement to not stop but wait on deauth packets. * tkiptun-ng: Fixed segfault. * wesside-ng: Fixed compilation bug with recent version of gcc. * cygwin: Compiling sqlite isn't necessary anymore, libsqlite3-devel package can be used. * osdep: Strict aliasing and x86_64 fix. * osdep: Add tap support for Darwin/OS X. Still require tuntaposx from sourceforge to work. * All: Fixed compilation on cygwin 1.7. * All: Fixed compilation on recent version of OSX. * manpages: Fixed aireplay-ng manpage for attack 0: not disassociation packets, deauth packets. * manpages: Added the keys for interaction in airodump-ng. * patches: Added regulatory domains override patches for atheros drivers (ath5k, ath9k and ar9170). * patches: Added 2.6.32 patch for r8187 driver (ieee80211). * Makefiles: Fixed make uninstall. Version 1.0 (changes from aircrack-ng 1.0-rc4) - Released 08 September 2009: * airserv-ng: Now works fine between 32 and 64bit OSes. * wesside-ng: Fixed some endianness bugs * airodump-ng-oui-update: Make sure the user is root when updating the file. * airmon-ng: Updated iw download link (0.9.17). * All: Fixed compilation with some gcc. * patches: Added missing patches from patches.aircrack-ng.org: mac80211_2.6.28-rc4-wl_frag+ack_v3.patch * manpage: Updated aireplay-ng manpage. * INSTALLING: Removed (now) useless requirement for OSX installation. * GUI (windows): Fixed 2nd selection of a capture file. Version 1.0-rc4 (changes from aircrack-ng 1.0-rc3) - Released 27 July 2009: * airodump-ng: Decreased time before writing text files to 5 sec (instead of 20). * airodump-ng: New option --output-format option (to replace --nocap): specify output files. * airodump-ng: Fixed encryption tag value in kismet netxml files. * airodump-ng: Sanitize essid before writing it into kismet netxml files. * airodump-ng: Log manufacturer into kismet netxml files. * aireplay-ng: Fake auth: reduce the number of ACKs to 2 per packet. * aireplay-ng: Added possibility to stop sending fake auth requests after n retry failures. * aircrack-ng: Fixed compilation on FreeBSD. * aircrack-ng: Fixed aircrack-ng --help on OSX. * airmon-ng: Updated iw download link (0.9.15). * airmon-ng: Fix chipset detection for iwlagn (show "Intel 4965/5xxx" instead of "Unknown"). * airmon-ng: Display a message when udev rename madwifi-ng VAPs. * airmon-ng: sleep 1s instead of 0.1 (0.1 is not supported by all distro). * airolib-ng: Fixed locked database counter. * airdriver-ng: Updated to rt2570 k2wrlz v1.6.3 * airdriver-ng: Updated r8187 patch. * aircrack-ng, airdecap-ng, ivstools, airodump-ng, airbase-ng, aireplay-ng, airtun-ng, packetforge-ng, tkiptun-ng: Added support for PPI captures support (Thanks to dragorn). * airdecap-ng: Fixed segfault on some capture files. * wesside-ng, easside-ng: "ERROR: Packet length changed while transmitting (XX instead of YY)" should finally be fixed. * All: Added compatibility file for functions like cpu_to_le32. That should fix compilation on a lot of OSes. * All: Temporary fix to allow compilation with recent gcc (Error message: "dereferencing type-punned pointer will break strict-aliasing rules"). I hope it doesn't break anything. A cleaner fix will be applied later. * INSTALLING: OSX patch for Intel CPU isn't required anymore * INSTALLING: Updated instructions to compile sqlite on cygwin for 3.6.16. * patches: Updated sqlite (v3.6.13) patch for cygwin. * patches: Updated wlanng patch for 2.6.28. * patches: Updated madwifi-ng patch to r4073 * packages: Fixed spec (RPM) file. * GUI (windows): Use last used directory when selecting another file to crack. * GUI (windows): Allow .pcap files too (next to .cap, ...). Version 1.0-rc3 (changes from aircrack-ng 1.0-rc2) - Released 26 March 2009: * airodump-ng: Added Active Scanning Simulation. * airodump-ng: Added support for kismet-newcore netxml files (DTD v3.1.0) * airodump-ng: Changed file extensions for CSV (.csv instead of .txt) and for kismet CSV (.kismet.csv instead of .csv). * airodump-ng: Fixed WPA tag parsing and added QoS detection based on direction. * airodump-ng: Added option to only disable capture file; all other files (CSV, kismet CSV, kismet netxml, GPS) will be created. * aircrack-ng: Fixed -w with WEP. * aircrack-ng: Fixed useless memory allocation. * aircrack-ng: Fixed compilation with gcc 2.95. * aircrack-ng: Fixed compilation on 64 bit (SHA-SSE2). * aircrack-ng: Fixed errors when compiling on OS X 10.5.6 PPC. * aircrack-ng: Added an option to write the key to a file. * airolib-ng: Fixed a bug where database is created even if parameters are not correct. * airmon-ng: Added wifibox to the list of network managers. * airmon-ng: Updated iw download link (0.9.11). * airmon-ng and airdriver-ng: Move them in script/ directory. * airmon-ng: Bypass interface checks when ps command returns an error. Needed for BusyBox limited ps command. * airdriver-ng: Update legacy RT73 driver to use rt73-k2wrlz v3.0.2 * tkiptun-ng: Allow padded arp packets to the client. * airserv-ng & osdep: Fixed compilation on FreeBSD 7.1 * easside-ng & wesside-ng: Fixing again "Error Wrote 39 out of 30" error message. * manpages: Fixed manpages titles. * Makefile: Only compile and install wesside-ng, easside-ng, buddy-ng and tkiptun-ng with "make unstable=true". * patches: Updated sqlite (v3.6.11) patch for cygwin. * patches: Added patch for aircrack-ng on MacOSX * scripts: Added a script to automatically patch and install SQLite in cygwin. Version 1.0-rc2 (changes from aircrack-ng 1.0-rc1) - Released 22 Jan 2009: * aircrack-ng: Added SSE2 supports (WPA cracking speed is improved a lot) thanks to nx5. * aircrack-ng: Fixed detection of the number of CPU (especially with recent CPUs). * aircrack-ng: Fixed long lasting WPA bugs: cannot find the key with SMP computers, wasn't exiting correctly, ... * aircrack-ng: Fixed usage of a dictionary with WEP. * aircrack-ng: Now only display ASCII WEP keys when 100% of the hex key can be converted to ASCII. * aircrack-ng: You can now specify the number of threads for cracking even if you have a non-SMP computer. * aircrack-ng: Now output an error message if using -r and it wasn't compiled with sqlite support. It was a problem on some ubuntu. * airdecloak-ng: New tool to remove wep cloaked frames from a pcap file. For more details see https://www.aircrack-ng.org/doku.php?id=airdecloak-ng * airodump-ng: Added kismet csv output support. * airodump-ng: Fixed power value display (for ath interface with a high number, more than 99). * airodump-ng: Can work on the new frequencies (allowed by frequency Chaos patch). * airodump-ng: Now display if the network has QoS enabled. * aireplay-ng: Fixed crash with too short packets (seen with zd1211). * aireplay-ng: Fixed STP usage in fragmentation attack. * aireplay-ng: Fixed bug with deauth attack. * airtun-ng: Fixed STP conversion. * airolib-ng: Added sample database in test/ directory. * tkip-tun: New tool to inject on WPA1 with QoS enabled networks. Full description: decrypt packets coming from the AP in a TKIP network, which uses QoS (ieee802.11e). It also breaks the MIC Key for sending packets towards the Client correctly encrypted and signed. Stores plaintext packet and keystream in separate files. * airbase-ng: Several improvements ( See https://github.com/aircrack-ng/aircrack-ng/issues/466 ). * airbase-ng: Added compatibility with some clients. added random source IPs and MACs for cfrag attack (-N) to evade simple flood protection. * airmon-ng: Fixed some 'unary operator expected' errors. * airmon-ng: Fixed channel number setting with mac80211 drivers. * airmon-ng: Recognition of 4 new chipsets: acx1xx, at76_usb, adm8211 and AR9001U (otus). * airmon-ng: Fixed some chipset naming inconsistencies between ieee80211 and mac80211 drivers. * airmon-ng: Fixed display of "airmon-ng check". * airmon-ng: Improved mac80211 driver handling. * airdriver-ng: Fixed madwifi-ng driver download URL. * airdriver-ng: Updated openSuse information. * wesside-ng: Fixed open() with O_CREAT that needs 3 arguments. * osdep: Added TAP/TUN MTU getter. * manpages: Fixed misspelled airserv-ng manpage filename. * manpages: Added Airbase-ng, Tkiptun-ng manpages. * manpages: Updated description of all manpages. * Makefile: Fixed errors when compiling on OSX 10.5. * Makefile: Now ensure that make 3.81 or higher (mandatory) is used when compiling on OSX 10.4. * Makefile: Only install airolib-ng manpage if airolib-ng is installed. * Makefile: Added 'make check' that tests key cracking against files given in test/ directory. * general: Fixed 'evalrev' on Solaris. * general: Fixed compilation on Sun SPARC. * general: Fixed compilation on some distribution (with a recent version of gcc) due to warnings (because of not getting the return value of some functions). * general: Several compilation fixes. * patches: Updated ath5k patches * patches: Added rt2570 patch (kernel 2.6.24). * patches: Updated madwifi-ng patch for r3745. * patches: Updated mac80211 patches. * patches: Added zd1211rw patch for 2.6.26, b43/b43legacy for 2.6.26-wl. * patches: rt73, r8187 patches for fedora kernels (should work on 2.6.27). * patches: Added Defcon 16 patch (more frequencies than the usuals) for ath5k called frequency Chaos. * patches: Added injection patch for rtl8187 (mac80211). * patches: Added a universal mac80211 fragmentation and injection speed patch. * GUI (windows): Fixed: Windows GUI gives "please specify dictionary". Version 1.0-rc1 (changes from aircrack-ng 1.0-beta2) - Released 09 Jun 2008: * airbase-ng: Multi-purpose tool aimed at attacking clients as opposed to the AP. * airbase-ng: Added replay tool for external packet processing feature. * aircrack-ng: Fixed: Displaying twice the wep key at the end and "Warning: Previous crack is still running". * aircrack-ng: Fixed detection of WPA handshake (was not working correctly in previous release). * aircrack-ng: Fixed PTW attack against QoS and WDS packets. * aircrack-ng: Added oneshot option to try PTW only once. * airodump-ng: Fixed channel numbers (Fixed "fixed channel" messages). * airodump-ng: Added frequency selection (-C). * aireplay-ng: Fixed injection on OpenBSD. * aireplay-ng: Fixed a rtc bug which freezed aireplay-ng in case /dev/rtc0 is not available. * aireplay-ng: Fixed chopchop attack against QoS packets. * aireplay-ng: Added Caffe-Latte attack. * aireplay-ng: Added CFrag attack: Turns every IP and ARP packet into an ARP request against the client. * airtun-ng: Added support for fragmented packets. * airdriver-ng: Updated drivers. * airserv-ng: Various fixes. * airmon-ng: Added nl80211 usage. * airmon-ng: Use 'iw' when it is found. * airmon-ng: Fixed error with madwifi-ng when creating new VAP. * wesside-ng: Added option to ignore ACKs. * OSdep: Fixed endieanness bugs. * OSdep: Orinoco: attempt to bring interface down before switching to monitor mode. * All: Added copyright and GPL in missing files. * All: Fixed compilation on Mac OSX 10.5.2 (PPC). * GUI: Fixed "Choose" button (airdecap-ng). * Makefile: Fixed usage of iCC versions other than 9.0. * patches: Updated rtl8187 patch. * patches: Updated madwifi-ng patch. * patches: Updated sqlite patch (cygwin). * patches: Added mac80211 frag patch. * patches: Added b43 and updated bcm43xx patches. Version 1.0-beta2 (changes from aircrack-ng 1.0-beta1) - Released 01 Feb 2008: * aircrack-ng: Cracking WPA now does only require 2 packets (instead of 4). * airodump-ng: Fixed (WEP) open system and shared key system detection. * airodump-ng (win): Battery status is now displayed. * airdriver-ng: Fixed module detection. * airdriver-ng: Updated drivers. * airdriver-ng: Added firmware support. * airdriver-ng: Added softmac installation. * airdecap-ng: Save packets with ICV error in a separate file. * airolib-ng: Automatically create a database if it does not exist. "init" option is not necessary anymore. * airolib-ng: Now uses getopts for options. * airdriver-ng: Updated some drivers download locations. * airdriver-ng: Fixed softmac installation * airmon-ng: Added detection of ipwraw-ng driver. * airmon-ng: When stopping an interface, it is in managed mode * Makefile: supports DESTDIR or destdir parameter. * Makefile: renamed ROOT (used by gentoo for other stuff) variable by AC_ROOT. * manpages: Fixes for whatis * patches: updated cygwin sqlite patch * patches: updated rtl8187 patch * Added instructions to compile airolib-ng and using '-r' option in aircrack-ng for cygwin. * Fixed compilation of aircrack-ng with some gcc versions Version 1.0-beta1 (changes from aircrack-ng 0.9.2) - Released 01 October 2007: * airodump-ng: Added --berlin option (see code for more information). * airodump-ng: Fixed 100% cpu utilization while channelhopping on rtap interface * airodump-ng: Fixed frame length < 10bytes bug * airodump-ng: Added out-of-monitor-mode, channel hop and interface down detection * airodump-ng: Fixed debian bug #417388: airodump-ng doesn't restore terminal after error * airodump-ng: Fixed opening the same interface more than once * airodump-ng: Fixed PWR values for some drivers * airodump-ng: Fixed airodump sanity check (resulted in showing WPA networks without CIPHER & AUTH) * airodump-ng: Added "-f" to set the time in ms between hopping channels * airodump-ng: Added partial 40bit WEP detection * airodump-ng: Added "--showack" to print statistics about ack/cts and rts frames * airodump-ng: Added "-h" to hide the known stations in ack statistics * airodump-ng: Added "-r" to read packets from a pcap file * aircrack-ng: Added BSSID merge option * aircrack-ng: Added passive ptw attack (using also IP packets for cracking) * aircrack-ng: Made ptw attack default, for korek attack use -K * aircrack-ng: Fixed huge memory usage with ptw attack on hundreds of APs * aircrack-ng: Added -M paramteter for specifying maximum number of IVs to be read * aircrack-ng: Changed ptw testpackets from first to random (fixes invalidation of found keys) * aircrack-ng: Added --wep-decloak mode * aircrack-ng: Added --ptw-debug to allow klein or ptw disabling * aircrack-ng: PTW: Starts a new process group * aircrack-ng: Increased PTW key checking speed by 20% * aircrack-ng: Try 1000 40bit keys before starting 104bit cracking, to get the key "instantly" without waiting for 104 bit to fail * aircrack-ng: Fixed not shown ascii keys, when found key was shorter than expected * aircrack-ng: Added visual inspection of the different keybytes (--visual-inspection). * airdecap-ng: Fixed bug in calc_pmk() function causes wrong PMK to be computed * aireplay-ng: Added usage of RTS/CTS, auth and ACK to --test (more stable and faster) * aireplay-ng: Added TCP connection test to --test * aireplay-ng: Changed injection rate to be more stable * aireplay-ng: Made essid argument optional - sniffs the essid if its broadcasted * aireplay-ng: Made src mac argument (-h) optional - uses default interface mac * aireplay-ng: Added bitrate test to --test (-B) * aireplay-ng: Fixed 100% cpu utilization in --test * aireplay-ng: Added --fast switch to use first available packet without interaction * aireplay-ng: chopchop now tries header recreation workaround if icv check failed * aireplay-ng: Fixed seq field for fragment attack * aireplay-ng: Now works with rtc_cmos * aireplay-ng: Added automatic channel changing in --test to AP channel * aireplay-ng: Added channel synchronization for --test between cards * aireplay-ng: Added possibility to limit injection test to one AP "-a" or "-e" * aireplay-ng: Added BSSID/ESSID detection, so it can be enough to specify one option * makeivs-ng: Added parameters to set length, number and first IV of generated IVs * makeivs-ng: Added possibility to generate IVs sequentially or randomly * makeivs-ng: Added parameters to set percentage of false and dupe frames * makeivs-ng: Added 256bit wep support * packetforge-ng: Added support for generating more than on packet * patches: updated rtl8187 patch for 2.6.22 * patches: updated zd1211rw patch for 2.6.22 * New IVS format for storing all relevant data * Auto-creation of rtap interface if it doesn't exist (ipw2200) * Better acx, rtl8180, orinoco and madwifi-ng detection * Using OpenSSL instead of built-in crypto * Added library rx/tx support * Added airpcap rx/tx support * Added airdriver-ng script for installing and managing patched drivers * Added wesside-ng as an all in one tool for recovering the wep-key * Added easside-ng for realtime decryption (instant rx/tx) of wep frames * Added buddy-ng as loopback server for easside-ng * Added airserv-ng - server for rx/tx on another system * Added airolib-ng for using hash tables to crack wpa/wpa2 psk (supports cowpatty rainbow tables) * Fixed compilation of optimized binaries with icc * Fixed compilation on FreeBSD, NetBSD, OpenBSD and MacOSX * Better WDS handling and display * Added detection and removal of trailing fcs checksum * Fixed several memory leaks * Fixed being root when connecting to airserv-ng * Added OpenBSD sniffing support Version 0.9.3 (changes from aircrack-ng 0.9.2) - Released 24 February 2008: * Fix endianness issues in airodump-ng, aireplay-ng. * Several small bug fixes. * Updated rtl8187 patch. Version 0.9.2 (changes from aircrack-ng 0.9.1) - Released 05 February 2008: * aireplay-ng: Now works with rtc_cmos * aireplay-ng: Fixed compilation on Fedora Rawhide * airodump-ng: Fixed: Wrong information printed in CSV file (PSK for WEP with Shared key instead of SKA). * airodump-ng (airpcap): added support for 5Ghz channels. * airdecap-ng: Fixed bug in calc_pmk() function causes wrong PMK to be computed * airmon-ng: Fixed detection of N770 wireless interface * airmon-ng: Fixed Ralink rt73 detection * airmon-ng: Added driver detection through sysfs * airmon-ng: Added mac80211 support * airmon-ng: Added networkmanager detection - airmon-ng check * airmon-ng: Added detection of ipwraw-ng driver * GUI (win): Fixed file dialog for airdecap-ng * manpages: updated airodump-ng manpage * manpages: Fixes for whatis * Makefiles: Fixed OpenBSD makefile. Version 0.9.1 (changes from aircrack-ng 0.9) - Released 25 June 2007: * airodump-ng: wlan-ng driver now works again. * airodump-ng: Fixed IP address when writing to CSV file * airodump-ng: Fixed debian bug #417388: it doesn't restore terminal after error * aircrack-ng: Fixed WPA cracking on SMP computers * aircrack-ng: Fixed bug in calc_pmk() function causes wrong PMK to be computed * airmon-ng: Fixed madwifi-ng wifiX detection (due to translation in ifconfig) * patches: Added ACX injection patch * patches: Updated rtl8187 patch for 2.6.21 * GUI (win): Added PTW option to aircrack-ng tab. * GUI (win): Fixed a bug when cracking with a wordlist. Version 0.9 (changes from aircrack-ng 0.8) - Released 13 May 2007: * aireplay-ng: Added new 'attack': injection test (--test) * aireplay-ng: disallow injection with wlanng & kernel > 2.6.11 * airtun-ng: Fixed: an option wasn't shown in usage screen. * airodump-ng (win): Fixed version numbering. * airodump-ng (win): Changed first time messagebox * aircrack-ng: Fixed: --help make aircrack-ng crash * aircrack-ng: Added PTW attack (option: -z). It require full capture. * airdecap-ng: now decrypt IEEE802.11 header with 802.11e header * airmon-ng: Fixed orinoco card detection * patches: updated zd1211rw patch for kernel 2.6.21 * patches: Added bcm43xx injection patch for kernel 2.6.20 * patches: updated rtl8187 patch (for new driver version). * wzcook (win): now can work in silent mode (option: --silent) * Makefile: added make zip (cygwin only) * Makefile: fixed direct call to 'make install' or 'make strip' instead of 'make' * GUI (win): Updated aircrack-ng tab and added an about tab. Version 0.8 (changes from aircrack-ng 0.7) - Released 25 April 2007: * aireplay-ng: Works on FreeBSD-CURRENT * aircrack-ng: Fixed stdin dictionary usage * aircrack-ng: Hardcode CPUs number to 1 in case detection fails * aircrack-ng: Fixed too low trashvalue * aireplay-ng: Fixed 384 bytes keystream output * aireplay-ng: Fixed IV index bug * aireplay-ng: Better error messages for -0 and -1 * airtun-ng: Works on FreeBSD * airtun-ng: Fix compilation under FC6 (missing "linux/if.h" include). * airodump-ng: Works on FreeBSD. * airodump-ng: Added encryption filtering * airodump-ng: Fixed a SIGSEGV * airodump-ng: Added WPA handshake detection * airodump-ng: Added non associated stations filter * airodump-ng: Added support for zd1211rw * airodump-ng: Fixed 100% cpu utilisation * airmon-ng: Added support for zd1211rw driver * airmon-ng: Added support for at76c503a, rt61 and rt73 * airmon-ng: Updated some device detection * airmon-ng: Added Nokia 770 and PrismGT softmac * airmon-ng: Fixed ACX driver monitor mode startup * airmon-ng: Fixed syntax error * airtun-ng: Works on FreeBSD * airtun-ng: Added pcap support to replay saved wlan sessions * airtun-ng: Added repeater mode, bssid and netmask filter * packetforge-ng: Added null packet support * packetforge-ng: Added packet selection for -9 * Patches: Added hostap kernel 2.6.18 patch * Patches: Updated rtl8187 patch. * Patches: Updated madwifi-ng patch. * Patches: Added injection patch for zd1211 (does not work for all devices). * Added airoscript (from daouid) * Makefiles: Fixed: make uninstall did not remove all files * Updated spec file by David Bolt to be able to build RPM packages on FC, Mandriva and Suse distro * Added WEP authentication example capture * Fixed gcc 2.95 compilation * Fixed compilation on MacIntel Version 0.7 (changes from aircrack-ng 0.6.2) - Released 20 January 2007: * Makefiles: Improved + added makefiles for other OS * Makefiles: Fixed make install on Windows and MacOS * airtun-ng: Creates a tuntap interface, through which ordinary IP frames can be injected * aireplay-ng: Added fragmentation attack * aireplay-ng: Added shared key authentication * airmon-ng: Now detect the shell when installing * airmon-ng: Added support for rtl8187 * aircrack-ng: Added WEP dictionary attack * aircrack-ng: Works with 802.11e QoS packets * airodump-ng: Added MAC filtering * airodump-ng: Now use the flaw in shared-key authentication to generate a xor file containing the prga recovered from a shared-key authentication * airodump-ng: More information about encryption on the AP * airodump-ng: Receive quality indicator * airodump-ng: The way ESSID is given in the CSV file is more clear * packetforge-ng: Set the TTL value in the ip header * packetforge-ng: Close open file handles * Special handling of spanning tree packets * Added rtl8187 patch for injection * Other bug fixes Version 0.6.2 (changes from aircrack-ng 0.6.1) - Released 1 October 2006: * aireplay-ng: Applied patch to inject packets with an ipw2200 * aircrack-ng: Fixed: show_wpa_stats() 1 byte array overflow * aircrack-ng: Fixed a warning when compiling on 64bit inner_bruteforcer_thread() * aircrack-ng: Changed -d option. It's now a mask (use XX for unknown bytes). * arpforge-ng: removed. It's replaced by packetforge-ng * packetforge-ng: New tool to forge packets (by Martin Beck) + manpage written * aircrack-ng, aireplay-ng, packetforge-ng: new MAC decoding function * airmon-ng: Fixed a bug when using it with madwifi-ng * airmon-ng: Added ipw3945 detection * airodump-ng (windows): now automatically download peek.dll and peek5.sys if needed * airodump-ng: LLC null packets are skipped * makeivs: added manpage * Makefile: Fixed: make aircrack-ng-opt-prof_gen fails * updated madwifi-ng patch Version 0.6.1 (changes from aircrack-ng 0.6) - Released 27 August 2006: * aircrack-ng: Fixed missing '-s' option * aircrack-ng: Fixed: Show a different ASCII key for a same hex key * airodump-ng: Using --band option instead of --bg, --abg, --ab, ... * airodump-ng: Fixed: fails to put wlanng in monitor mode * airodump-ng: using rtap0 as interface should now work * airodump-ng and aireplay-ng: "Can't find wireless tools, exiting." should be fixed if they exist * airodump-ng and airmon-ng: rt2570 now uses prismheader (use at least beta 2 driver) * airmon-ng: Fixed: discards ipw2200 v1.1.x * airmon-ng: Fixed: show newly created madwifi-ng VAP * airmon-ng: Should now works with 'ash' shell (Zaurus, OpenWRT, ...) * INSTALL: Added a note about warnings when compiling sources * INSTALL: Added more information about installing aircrack-ng on windows * updated spec file * some other bugfixes * cygwin1.dll and msvcr70.dll are now included in windows package Version 0.6 (changes from aircrack-ng 0.5) - Released 23 June 2006: * aircrack-ng: Multithreaded keybytes bruteforcer * aircrack-ng: Now bruteforce only last keybyte by default (faster than last 2KB) * aircrack-ng: Added option to show ASCII version of the key * aircrack-ng: Fixed: bug with -d option. It adds a leading "0x00" to the key * aireplay-ng: fixed compilaton issues on some distro * aireplay-ng: fixed a bug when using 'ash' * aireplay-ng: You can change ring buffer size (-g option) * airodump-ng: Log by default only one beacon (added option to log all beacons) * airodump-ng: Dump prefix isn't mandatory anymore, not giving it won't store any data * airmon-ng: Ralink devices needs be put in ad-hoc prior to inject packets * manpages: Added kstat manpage * manpages: fixed airodump-ng manpage (hyphen used as minus sign) * Makefile: You can now compile aircrack-ng with Intel C Compiler (really faster) * Updated madwifi-ng patch to r1545 (and up; can be applied on madwifi v0.9.0 and v0.9.1) * Added instructions to compile on different plateforms/OS * Added a WPA2 capture file in test directory * Some other fixes Version 0.5 (changes from aircrack-ng 0.4.4) - Released 04 May 2006: * airodump-ng: Hop on 2.4Ghz channels by default * airodump-ng: Added support for OpenWrt devices (use prism0 as capture interface) * aircrack-ng and aireplay-ng: korek chopchop optimisation (Thanks to ASPj) * airodump-ng: Fixed: when starting, it captured data on channel 10 * aircrack-ng: Fixed: Not using all CPU on SMP systems Version 0.4.4 (changes from aircrack-ng 0.4.3) - Released 24 april 2006: * aircrack-ng: fixed a stupid bug that prevent cracking * sha1-mmx.S: GNU_STACK ELF marking * updated patch for madwifi-ng r1526 and upper Version 0.4.3 (changes from aircrack-ng 0.4.2) - Released 24 april 2006: * airmon-ng: fixed madwifi-ng (VAP creation-destruction and a cosmetic fix) * aircrack-ng: fixed compilation under OSX * airodump-ng: added elapsed time * Makefile : added a MacOSX makefile (Makefile.osx) * updated patch for madwifi-ng r1520 and upper Version 0.4.2 (changes from aircrack-ng 0.4.1) - Released 20 april 2006: * airodump-ng: Fixed: dumpfile prefix took the name of the second argument * airodump-ng: Fixed: .gps file creation if GPSd isn't used * version.c removed (the content was moved to common.c) Version 0.4.1 (changes from aircrack-ng 0.4) - Released 19 april 2006: * airodump-ng: use of parameters like aircrack-ng, aireplay-ng, ... * airodump-ng: more sanity checks * airodump-ng & aireplay-ng: forbid the use of ndiswrapper * airodump-ng & aireplay-ng: check of iwpriv existence * manpages: updated and fixed typos * Makefile: fixed "make doc" * airmon-ng: fixed and improved madwifi detection Version 0.4 (changes from aircrack-ng 0.3) - Released 16 april 2006: * Typos fixed and cosmetic changes in sources and in manpages * manpages: updated airodump-ng screenshot * manpages and aireplay-ng: renamed attack names * airodump-ng: fixed some compile warnings * airodump-ng: hopping also on .11a channels if available * airodump-ng: fixed: GPS coordinates were never shown * airmon-ng: fixed ipw2100 (Thx to OverThere) and madwifi-ng detection * aircrack-ng: speed optimizations * aircrack-ng: -x option disable last 2 keybytes bruteforce (WEP cracking is faster) * aircrack-ng: with -a option, you can use "wep" or "wpa" instead of numbers * ivstools: --merge option fixed * Makefiles: improvements * Lots of little changes * added aircrack-ng.spec for building RPM * added slack-desc for building slackware packages Version 0.3 (changes from aircrack-ng 0.2.1) - Released 30 march 2006: * aireplay-ng: typo fixed * aireplay-ng: Madwifi-ng is now supported * airodump-ng: disabled GPS coordinates if connection to gpsd fail * airodump-ng: Battery information fixed (hacked kismet code) * airodump-ng: Madwifi-ng is now supported * aircrack-ng: corrected title (when cracking a key) * aircrack-ng: uses by default all CPU for cracking (Debian bug report #352877) * manpages: Fixed some errors (Debian bug report #356551) * manpages: created ivstools manpage * Makefiles: cleaning and improvement * fixed pcap2ivs bug (it wasn't using the good MAC for bssid) * Merged mergeivs and pcap2ivs into ivstools * airmon.sh: Fixed (hopefully) detection of ipw2100 and ipw2200 (Debian bug report #340057) * airmon.sh: renamed to airmon-ng * Updated madwifi-ng patch to r1486 Version 0.2.1 (changes from aircrack-ng 0.2) - Released 20 march 2006: * corrected 2 bugs in airmon.sh and changed another little thing * one word missing for option -j in aireplay * updated madwifi-old patch to SVN r1475 * makefile cleaning * typo corrected in pcap2ivs Version 0.2 (changes from aircrack-ng 0.1) - Released 19 march 2006: * updated version number and program name * updated airmon.sh added detection of acx, madwifi-ng and bcm43xx * added manpages (Thanks to Adam Cecile) * added madwifi-ng patches * re-added missing drivers patches * added uninstall rule in makefile * added Sharp Zaurus binaries (Thanks to Rick Farina aka Zero_Chaos) * added a cygwin makefile Version 0.1 (changes from aircrack 2.41) * updated windows binaries * compiled some files for windows * Separated in multiple packages ---------------------------------------------------------------------------------------------- Older Changelog: Version 2.41 released on 2005-11-22. Changes from version 2.4: * airodump: show probing clients as "not associated" * airodump: don't subtract the noise level unless madwifi * airodump: fixed channel hopping with old orinoco * airmon.sh: added detection of the zd1211 driver Version 2.4 released on 2005-11-12. Changes from version 2.3: * airodump: display ESSIDs from Probe Requests * airodump: don't overwrite existing capture files * airodump: create a logfile of the gps coordinates * airodump: every 20s, sort the detected APs by power * airodump: display the remaining battery capacity * airodump: use ioctl() instead of calling iwconfig * airodump: added support for radiotap headers * aireplay: added option -j (FromDS packet injection) * aireplay: added prismheader support for rt2500 / rt2570 * aireplay: fixed attack -0 when injecting on ralink usb * aireplay: fixed attack -3 (ring buffer / deauth problem) * aircrack: don't bruteforce the last 2 keybytes by default * aircrack: changed the fudge factor type to float * aircrack: added option -t (restrict keyspace to BCD) * aircrack: fixed the check_wep_key false positive bug * aircrack: fixed overflow of the number of tested keys * aircrack: lower number of required IVs if -d is used * mergeivs and pcap2ivs: initial release Version 2.3 released on 2005-08-28. Changes from version 2.23: * aireplay: added patch for injection on Ralink USB * aireplay: improved deauthentication attack (-c flag) * aireplay: don't enable the prism header on athXraw * airodump: fixed rare hanging problem in dump_write_csv * airodump: workaround for ipw2200 wep data corruption bug * airodump: tweaked dump_print to make more space for ESSID * aircrack: added support for 152-bit WEP cracking * updated the documentation and merged versioning patch Version 2.23 released on 2005-08-17. Changes from version 2.22: * aireplay: updated the madwifi patch, fixes WEP/WPA support * airodump: fixed a few buffer overflows, code cleanup for gcc4 * aircrack: also printf the WEP key if >= 75% ASCII characters Version 2.22 released on 2005-08-14. Changes from version 2.21: * aireplay: now compatible with madwifi CVS 2005-08-14 * airodump: fixed the output power with newer madwifi Version 2.21 released on 2005-08-09. Changes from version 2.2: * airodump: forcefully exit when user presses Ctrl-C * airodump: bugfixed (yet again) ESSID uncloacking * airodump: re-create the ivs file if no header present * aircrack: changed the default fudge factor back to 2 * airdecap: fixed the incorrect output pcap header length Version 2.2 released on 2005-08-03. Changes from version 2.2-beta12: * aireplay: (attack 1) added G rates in the association request * fixed the Makefile for compilation on FreeBSD / Mac OS X Version 2.2-beta12 released on 2005-07-30. Changes from version 2.2-beta11: * aireplay: bugfixed the madwifi patch, switched to 20050707 * aireplay: avoid triggering "protocol XX00 is buggy" messages * airodump: don't reset the card when hopping between channels * airodump: ipw2200 didn't like calling "iwpriv ethX monitor 1" * airodump: added support for airodump on WRT54G / OpenWRT * airodump: commit the .txt statistics file every 20 seconds * aircrack: increased the default fudge factor (3 for WEP-104) Version 2.2-beta11 released on 2005-07-27. Changes from version 2.2-beta10: * aireplay: updated the madwifi patch to inject in b/g mode * aireplay: fixed attack 2 (it wrongly swapped the smac & dmac) * aircrack: (cygwin) added O_BINARY flag to force binary mode Version 2.2-beta10 released on 2005-07-23. Changes from version 2.2-beta9: * aireplay: fixed the status line not showing in attack -3 * aireplay: updated the madwifi and hostap injection patches * aireplay: added patches for injection on rt2500 and rtl8180 * aircrack: added detection of 802.1d in check_wep_key * airodump: restore prismheader link level info w/ hostap * airodump: create the output file if there's no pcap header * airdecap: added flag -l to disable ethernet conversion * updated the win32 port and rewrote the documentation Version 2.2-beta9 released on 2005-07-21. Changes from version 2.2-beta8: * aireplay: fixed the invalid rtc file descriptor bug * aircrack: actually fixed the prism header endianness bug Version 2.2-beta8 released on 2005-07-21. Changes from version 2.2-beta7: * aireplay: specify the deauth count instead of delay * aircrack: fixed an endianness issue with the prism header * aircrack: added the experimental single bruteforce attack * airodump: do enable the prismheader with wlan-ng * airodump: WEP/WPA: show the number of data packets * airodump: show total number of captured beacon packets * airodump: orinoco: fixed "iwpriv ethX monitor 1" command * airdecap: fixed an endianness issue with the packet length * airdecap: skip already processed duplicate packets Version 2.2-beta7 released on 2005-07-14. Changes from version 2.2-beta6: * airodump: don't enable the prismheader with wlan-ng * aircrack: fixed check_wepkey() to avoid false positives * completed the preliminary win32 port Version 2.2-beta6 released on 2005-07-12. Changes from version 2.2-beta5: * aireplay: fixed injection of fromds packets on Prism2 * aireplay: attack 0: target access point must be specified * aireplay: attack 1: allow the user to change reauth delay * aircrack: fixed race condition when realloc() ap->ivbuf * airodump: fixed endianness issue when parsing prism header Version 2.2-beta5 released on 2005-07-10. Changes from version 2.2-beta4: * aireplay: added patch for single-nic injection on hostap * aireplay: fixed chopchop attack in non-authenticated mode * aireplay: don't flood the AP with authentication requests * aircrack: bruteforce the last two keybytes by default * aircrack: improved handling of partial WPA handshakes * aircrack, airdecap: added WPA2 (RSN / 802.11i) support Version 2.2-beta4 released on 2005-07-03. Changes from version 2.2-beta3: * aircrack: new option to restrict WEP search space to ascii * aircrack: fixed concurrency bug with multiple .cap files * aircrack: fixed incorrect detection of WPA CCMP handshakes * aircrack: fixed incorrect handling of HMAC-SHA1 WPA MIC * aireplay: fixed deauth problem when chopchoping a packet * aireplay: added a workaround for error "Write buffer full" * airodump: added support for prism header on prism54 * airodump: save the list of detected wireless clients * airunwep: renamed to airdecap, added WPA decryption support Version 2.2-beta3 released on 2005-06-28. Changes from version 2.2-beta2: * aircrack: fixed the tracking of new IVs * aireplay: fixed the CPU usage bug in attack 3 * when reading pcap files, check the packet length Version 2.2-beta2 released on 2005-06-27. Changes from version 2.2-beta1: * aireplay: added fully automated ARP replay attack * aireplay: added automated deauthentication attack * aireplay: added fake authentication in Monitor mode * aircrack: various pthread enhancements & bugfixes Version 2.2-beta1 released on 2005-06-22. Changes from version 2.1: * aircrack: now auto-updates if new IVs are available * aircrack: fixed #285441 (struct pcap_pkthdr on AMD64) * aircrack: fixed the pcap endianness problem * aircrack: added essid filtering option and quiet mode * aircrack: only print status info every 1/20th second * aircrack: added WPA-PSK cracking support from cowpatty * aircrack: added EAPOL frame type detection and display * aircrack: each korek attack can be disabled selectively * airodump: added 802.11 b/g (2.4 GHz) channel hopping * airodump: added a file format for logging only the IVs * airodump: CRC is properly removed if driver is madwifi * airodump: input packets can be read from a pcap file * airodump: bugfixed WPA detection and ESSID uncloaking * airodump: also display a list of detected stations * aireplay: implemented chopchop and arp-forgery * aireplay: added patches for single-nic injection * 802ether: bugfixed and renamed to airunwep Version 2.1 released on 2004-10-01. Changes from version 2.0.2: * added 11g and WPA detection support in airodump * aircrack automatically avoids using WPA IVs * aircrack can break 256-bit and 512-bit WEP keys * win32 - fixed yet again the "missed IVs" bug * win32 - ported the 802ether WEP decryptor program Version 2.0.2 released on 2004-09-24. Changes from version 2.0.1: * win32 - added the WZCOOK key recovery program * fixed a bug in the BSSID iteration code in airodump * completely rewrote the documentation, moved to /docs Version 2.0.1 released on 2004-09-21. Changes from version 2.0: * win32 - fixed the channel reset bug * win32 - fixed the "missed IVs" bug * win32 - rewrote drivers.txt Version 2.0 released on 2004-09-03. Changes from version 1.4: * native win32 port of airodump and aircrack * aireplay better spots potential arp-requests Version 1.4 released on 2004-08-26. Changes from version 1.3: * fixed check_wepkey, works with exotic LLC headers * airodump prints lots of information, Kismet-style Version 1.3 released on 2004-08-19. Changes from version 1.2: * bugfixed and improved KoreK's code * renamed airunwep to 802ether Version 1.2 released on 2004-08-17. Changes from version 1.1: * implemented KoreK's advanced WEP attacks * completely rewrote the SMP engine Version 1.1 released on 2004-08-11. Changes from version 1.0: * implemented WEP arp-requests replay attack * improved the fudge calculation algorithm * added multi-processor support Version 1.0 released on 2004-07-29
aircrack-ng/configure.ac
# Aircrack-ng # # Copyright (C) 2017-2022 Joseph Benden <joe@benden.us> # # Autotool support was written by: Joseph Benden <joe@benden.us> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA # # In addition, as a special exception, the copyright holders give # permission to link the code of portions of this program with the # OpenSSL library under certain conditions as described in each # individual source file, and distribute linked combinations # including the two. # # You must obey the GNU General Public License in all respects # for all of the code used other than OpenSSL. # # If you modify file(s) with this exception, you may extend this # exception to your # version of the file(s), but you are not obligated # to do so. # # If you # do not wish to do so, delete this exception statement from your # version. # # If you delete this exception statement from all source files in the # program, then also delete it here. m4_pattern_allow([AC_VERSION]) m4_define([version_date], "May 2022") m4_define([version_major], 1) m4_define([version_minor], 7) m4_define([version_micro], 0) m4_define([version_beta], 0) m4_define([version_rc], 0) m4_define([version_scm],[m4_translit(m4_esyscmd([$(pwd)/evalrev . scm || echo]),m4_newline)]) m4_define([version_triplet],version_major.version_minor.version_micro) m4_append([version_triplet],version_scm) AC_PREREQ([2.59]) AC_INIT([aircrack-ng],[version_triplet],[https://github.com/aircrack-ng/aircrack-ng/discussions]) # # Cross-Compilation # AC_CANONICAL_BUILD AC_CANONICAL_HOST AC_CANONICAL_TARGET # # Initialize Automake # AC_CONFIG_AUX_DIR([.]) AC_CONFIG_MACRO_DIR([build/m4/stubs]) AC_CONFIG_HEADERS([config.h]) AM_INIT_AUTOMAKE([1.14 dist-bzip2 dist-zip foreign subdir-objects]) AM_MAINTAINER_MODE([disable]) AC_SUBST([ACLOCAL_AMFLAGS], ["-I build/m4/stubs -I build/m4 \${ACLOCAL_FLAGS}"]) m4_ifdef([AM_SILENT_RULES], [AM_SILENT_RULES([yes])]) # # Ensure MAKE is GNU compatible # if ! ${MAKE-make} --version /cannot/make/this >/dev/null 2>&1; then AC_MSG_ERROR([you don't seem to have GNU make; it is required]) fi # # Find tooling # AIRCRACK_NG_PROG_CC AIRCRACK_NG_PROG_CXX AX_CXX_COMPILE_STDCXX([17], [ext], [optional]) if test "$HAVE_CXX17" = "0"; then AX_CXX_COMPILE_STDCXX([14], [ext], [optional]) if test "$HAVE_CXX14" = "0"; then AX_CXX_COMPILE_STDCXX([11], [ext], [mandatory]) fi fi AC_PROG_INSTALL AM_PROG_AS PKG_PROG_PKG_CONFIG AM_PROG_CC_C_O AC_C_CONST AC_PROG_EGREP AC_CHECK_HEADERS([locale.h stdio.h stdarg.h fcntl.h malloc.h stdlib.h string.h strings.h unistd.h sys/stat.h getopt.h sys/time.h sys/types.h dirent.h]) # # Set versioning detail # AC_SUBST([_MAJ], [version_major]) AC_SUBST([_MIN], [version_minor]) AC_SUBST([_SUB_MIN], [version_micro]) AC_SUBST([_BETA], [version_beta]) AC_SUBST([_RC], [version_rc]) AC_SUBST([_SCM], [version_scm]) AC_SUBST([LT_VER], [version_major.version_minor.version_micro]) AC_SUBST([MAN_RELEASE_DATE], [version_date]) AC_SUBST([MAN_RELEASE_VERSION], ["Version version_triplet"]) AC_DEFINE([_REVISION], ["version_triplet"], [The version information of the project]) AC_DEFINE([LT_CYGWIN_VER], ["-version_major-version_minor-version_micro.dll"], [The Cygwin DLL version string suffix]) # # Initialize libtool # LT_INIT([win32-dll disable-static shared]) # # Operating Systems # AIRCRACK_NG_MAC AIRCRACK_NG_WINDOWS AIRCRACK_NG_OS_DETECT # # Required # AIRCRACK_NG_CRYPTO AIRCRACK_NG_ETHTOOL AIRCRACK_NG_LIBNL # # Optional # AIRCRACK_NG_AIRPCAP AIRCRACK_NG_EXPECT AIRCRACK_NG_EXPERIMENTAL AIRCRACK_NG_EXT_SCRIPTS AIRCRACK_NG_HWLOC AIRCRACK_NG_PCAP AIRCRACK_NG_PCRE AIRCRACK_NG_RFKILL AIRCRACK_NG_SQLITE AIRCRACK_NG_ZLIB PKG_CHECK_MODULES([CMOCKA], [cmocka], [ CMOCKA_FOUND=yes AC_SUBST([CMOCKA_CFLAGS]) AC_SUBST([CMOCKA_LIBS]) ], [CMOCKA_FOUND=no]) # # Extras, but needed # AIRCRACK_NG_LARGEFILE AIRCRACK_NG_PTHREAD AX_LIB_SOCKET_NSL AC_CHECK_LIB([dl], [dlopen], [ LIBS="$LIBS -ldl" ], [:]) AC_CHECK_LIB([m], [sin], [ LIBS="$LIBS -lm" ], [:]) AIRCRACK_NG_COMPAT saved_cflags="$CFLAGS" CFLAGS="" AC_CHECK_FUNCS([posix_memalign aligned_alloc memalign __mingw_aligned_malloc _aligned_malloc], break) CFLAGS="$saved_cflags" # # Code Coverage Support # AIRCRACK_NG_CODE_COVERAGE # # Compiler set-up # AIRCRACK_NG_COMPILER_C AIRCRACK_NG_COMPILER_CXX # # Processor feature selection/detection # AIRCRACK_NG_SIMD_C AIRCRACK_NG_SIMD_CXX # # Optional analyzers # AIRCRACK_NG_ASAN AIRCRACK_NG_DUMA AIRCRACK_NG_JEMALLOC AIRCRACK_NG_TCMALLOC AIRCRACK_NG_TSAN # # Automake # AM_CONDITIONAL([HAVE_AIRPCAP_OR_PCAP], [test "$AIRPCAP" = yes -o "$PCAP_FOUND" = yes]) AM_CONDITIONAL([MULTIBIN], [test "$with_multibin" = yes]) AM_CONDITIONAL([ENABLE_INSTALLED_TESTS], [test "nope" = yes]) # for glib tests AM_CONDITIONAL([CMOCKA], [test "$CMOCKA_FOUND" = yes]) AM_CONDITIONAL([STATIC_BUILD], [test "$enable_static" = yes]) AM_CONDITIONAL([EXPECT], [test "$EXPECT_FOUND" = yes]) # # Save flags for build summary # summary_cflags="$CFLAGS" summary_cxxflags="$CXXFLAGS" summary_cppflags="$CPPFLAGS" summary_libs="$LIBS" # # Set final flags for build # CFLAGS="$opt_cflags $CFLAGS" CPPFLAGS="$opt_cppflags $CPPFLAGS" CXXFLAGS="$opt_cxxflags $CXXFLAGS" LDFLAGS="$opt_ldflags $LDFLAGS" LIBS="$opt_libs $LIBS" # # Generate all build files # AC_CONFIG_FILES([ Makefile AC_VERSION include/aircrack-ng/version.h manpages/airbase-ng.8 manpages/aircrack-ng.1 manpages/airdecap-ng.1 manpages/airdecloak-ng.1 manpages/aireplay-ng.8 manpages/airmon-ng.8 manpages/airodump-ng.8 manpages/airodump-ng-oui-update.8 manpages/airolib-ng.1 manpages/airserv-ng.8 manpages/airtun-ng.8 manpages/airventriloquist-ng.8 manpages/besside-ng.8 manpages/besside-ng-crawler.1 manpages/buddy-ng.1 manpages/easside-ng.8 manpages/ivstools.1 manpages/kstats.1 manpages/Makefile manpages/makeivs-ng.1 manpages/packetforge-ng.1 manpages/tkiptun-ng.8 manpages/wesside-ng.8 manpages/wpaclean.1 scripts/Makefile scripts/airdrop-ng/Makefile scripts/airdrop-ng/doc/Makefile scripts/airgraph-ng/Makefile scripts/airgraph-ng/man/Makefile scripts/versuck-ng/Makefile test/test-env.sh ]) AC_OUTPUT # # Output a summary of the build to be performed # cat <<EOF ${PACKAGE} ${VERSION} Build Environment: Build Machine: ${build} Host Machine: ${host} Target Machine: ${target} Install Prefix: ${prefix} Compiler Environment: C Compiler: ${CC} C++ Compiler: ${CXX} Python: ${PYTHON} CFLAGS: ${summary_cflags} CXXFLAGS: ${summary_cxxflags} CPPFLAGS: ${summary_cppflags} LDFLAGS: ${LDFLAGS} LIBS: ${summary_libs} Optimized CFLAGS: ${opt_cflags} Optimized CXXFLAGS: ${opt_cxxflags} Optimized CPPFLAGS: ${opt_cppflags} Optimized LDFLAGS: ${opt_ldflags} Optimized LIBS: ${opt_libs} Target Environment: OS: ${OS} ASAN: ${asan} CPU L1 cache-line size: ${CACHELINE_SIZE} LTO ${with_lto:-no} Crypto Libraries: Crypto Engine: ${CRYPTO_TYPE} Gcrypt: ${GCRYPT_LIBS} OpenSSL: ${OPENSSL_LIBS} Required Libraries: Ethtool: ${ETHTOOL_FOUND} Libnl: ${NLLIBNAME_FOUND} Optional Libraries: Airpcap: ${AIRPCAP} Cmocka: ${CMOCKA_FOUND} DUMA: ${DUMA} Hwloc: ${HAVE_HWLOC} Jemalloc: ${JEMALLOC} Pcap: ${PCAP_FOUND} Pcre: ${HAVE_PCRE} Pcre2: ${HAVE_PCRE2} ${PCRE2_NOTE} Sqlite: ${HAVE_SQLITE3} Tcmalloc: ${TCMALLOC} Zlib: ${HAVE_ZLIB} Features: CMAC Support: ${HAVE_CMAC} Experimental Extra Scripts: ${EXT_SCRIPTS} Experimental Features: ${EXPERIMENTAL} EOF
aircrack-ng/Dockerfile
ARG IMAGE_BASE=debian:unstable-slim # hadolint ignore=DL3006 FROM ${IMAGE_BASE} AS builder # Install dependencies for building COPY docker_package_install.sh / RUN sh /docker_package_install.sh builder # Build Aircrack-ng # hadolint ignore=DL3059 RUN mkdir -p /aircrack-ng /output COPY . /aircrack-ng WORKDIR /aircrack-ng # hadolint ignore=SC2006 RUN set -x \ && make distclean || : && \ autoreconf -vif && \ set -e; \ ./configure --with-experimental --with-ext-scripts --enable-maintainer-mode --prefix=/usr/local && \ make -j3 && \ set +e && \ if ! make check -j3; then \ echo "Processor: $(uname -m)"; \ for file in `grep -l "(exit status: [1-9]" test/*.log`; do \ echo "[*] Test ${file}:"; \ cat "${file}"; \ done; \ exit 1; \ fi && \ set -e && \ make install DESTDIR=/output # Stage 2 # hadolint ignore=DL3006 FROM ${IMAGE_BASE} # Due to the behavior of buildx failing to copy to directories being # a symlink (whereas docker build works), copy the content to /output # then manually move all the files in /usr/local # In Arch-based distros, /usr/local/share/man is a symlink RUN mkdir /output COPY --from=builder /output/usr /output # And another workaround for Clear Linux where this directory does not exist # hadolint ignore=SC2015 RUN set -x && \ [ -d /usr/local/share/man ] || \ mkdir -p /usr/local/share/man RUN mv /output/local/share/man/* /usr/local/share/man/ && \ rmdir /output/local/share/man/ && \ cp -r /output/* /usr/ && \ rm -rf /output COPY docker_package_install.sh / # Install dependencies RUN set -x \ && sh /docker_package_install.sh stage2 \ && rm /docker_package_install.sh \ && aircrack-ng -u
aircrack-ng/Dockerfile.release
ARG IMAGE_BASE=debian:unstable-slim # hadolint ignore=DL3006 FROM ${IMAGE_BASE} AS builder # https://docs.github.com/en/actions/learn-github-actions/environment-variables#default-environment-variables # Tag name ARG GITHUB_REF_NAME # Install dependencies for building COPY docker_package_install.sh /opt RUN sh /opt/docker_package_install.sh builder # Create git archive # hadolint ignore=DL3059 RUN mkdir -p /aircrack-ng/git /aircrack-ng/archive /output COPY . /aircrack-ng/git WORKDIR /aircrack-ng/git # hadolint ignore=DL4006,SC3040 RUN set -o pipefail && \ git archive --format=tar ${GITHUB_REF_NAME} \ | tar -xf - --directory /aircrack-ng/archive # Build Aircrack-ng WORKDIR /aircrack-ng/archive RUN set -x \ && make distclean || : && \ autoreconf -vif && \ set -e; \ ./configure --with-experimental --with-ext-scripts --enable-maintainer-mode --without-opt --prefix=/usr && \ make -j3 && \ make check -j3 && \ make install DESTDIR=/output # Stage 2 # hadolint ignore=DL3006 FROM ${IMAGE_BASE} # Due to the behavior of buildx failing to copy to directories being # a symlink (whereas docker build works), copy the content to /output # then manually move all the files in /usr/local # In Arch-based distros, /usr/local/share/man is a symlink RUN mkdir /output COPY --from=builder /output/usr /output # And another workaround for Clear Linux where this directory does not exist # hadolint ignore=SC2015 RUN set -x && \ [ -d /usr/local/share/man ] || \ mkdir -p /usr/local/share/man RUN mv /output/local/share/man/* /usr/local/share/man/ && \ rmdir /output/local/share/man/ && \ cp -r /output/* /usr/ && \ rm -rf /output COPY docker_package_install.sh / # Install dependencies RUN set -x \ && sh /docker_package_install.sh stage2 \ && rm /docker_package_install.sh \ && aircrack-ng -u
Shell Script
aircrack-ng/docker_package_install.sh
#!/bin/sh echo "[*] Installing packages" STEP=$1 if [ -z "$STEP" ]; then echo "[!] Must specify 'builder' or 'stage2' as arguments" exit 1 elif [ "$STEP" = 'builder' ]; then echo "[*] Builder step" elif [ "$STEP" = 'stage2' ]; then echo "[*] Stage2 step" fi # Load OS info # shellcheck source=/dev/null . /etc/os-release if [ "${ID}" = 'debian' ] || [ "${ID_LIKE}" = 'debian' ]; then [ "${ID_LIKE}" = 'debian' ] && echo "[*] Detected debian-based distro: ${ID} (${VERSION_ID})" [ "${ID}" = 'debian' ] && echo "[*] Detected debian (${VERSION_CODENAME}/${VERSION_ID})" if [ "${STEP}" = 'builder' ]; then apt-get update \ && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends \ 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 libpcre2-dev libhwloc-dev \ libcmocka-dev hostapd wpasupplicant tcpdump screen iw usbutils expect gawk bear \ libtinfo5 python3-pip git && \ rm -rf /var/lib/apt/lists/* elif [ "${STEP}" = 'stage2' ]; then apt-get update && \ apt-get -y install --no-install-recommends \ libsqlite3-0 libssl3 hwloc libpcre2-posix3 libnl-3-200 libnl-genl-3-200 iw usbutils pciutils \ iproute2 ethtool kmod wget ieee-data python3 python3-graphviz rfkill && \ rm -rf /var/lib/apt/lists/* fi elif [ "${ID}" = 'arch' ] || [ "${ID_LIKE}" = 'arch' ]; then [ "${ID}" = 'arch' ] && echo "[*] Detected Arch Linux" [ "${ID_LIKE}" = 'arch' ] && echo "[*] Detected Arch-based Linux: ${NAME} (${ID})" if [ "${STEP}" = 'builder' ]; then pacman -Sy --noconfirm base-devel libnl openssl ethtool util-linux zlib libpcap sqlite pcre2 hwloc \ cmocka hostapd wpa_supplicant tcpdump screen iw usbutils pciutils expect git \ python python-setuptools elif [ "${STEP}" = 'stage2' ]; then pacman -Sy --noconfirm libnl openssl ethtool util-linux zlib libpcap sqlite pcre2 hwloc iw usbutils \ pciutils python-graphviz python fi elif [ "${ID}" = 'alpine' ]; then echo "[*] Detected alpine" if [ "${STEP}" = 'builder' ]; then apk add --no-cache \ gcc g++ make autoconf automake libtool libnl3-dev openssl-dev ethtool libpcap-dev cmocka-dev \ hostapd wpa_supplicant tcpdump screen iw pkgconf util-linux sqlite-dev pcre2-dev linux-headers \ zlib-dev pciutils usbutils expect hwloc-dev git python3 expect gawk bear py3-pip elif [ "${STEP}" = 'stage2' ]; then apk add --no-cache \ libnl3 openssl ethtool libpcap util-linux sqlite-dev pcre2 zlib pciutils usbutils hwloc wget \ iproute2 kmod python3 py3-graphviz urfkill iw fi elif [ "${ID}" = 'fedora' ] || [ "${ID}" = 'almalinux' ] || [ "${ID}" = 'rocky' ] || [ "${ID}" = 'ol' ]; then echo "[*] Distribution: ${NAME} (${VERSION_ID})" LIBPCAP=libpcap-devel CMOCKA=libcmocka-devel dnf distrosync -y --refresh if [ "${STEP}" = 'builder' ]; then if [ "${ID}" = 'almalinux' ] || [ "${ID}" = 'rocky' ]; then echo "[*] Install EPEL and enabling CRB" dnf install epel-release dnf-plugins-core -y dnf config-manager --set-enabled crb dnf distrosync -y --refresh elif [ "${ID}" = 'ol' ]; then echo "[*] Install EPEL" dnf install epel-release dnf-plugins-core -y dnf install xz cmake gcc -y LIBPCAP=libpcap # We're installing cmocka manually, not present in repos CMOCKA="" dnf distrosync -y --refresh cd /tmp || exit curl https://cmocka.org/files/1.0/cmocka-1.0.1.tar.xz -o cmocka-1.0.1.tar.xz tar -xf cmocka-1.0.1.tar.xz cd cmocka-1.0.1 || exit mkdir build cd build || exit cmake .. make make install # Otherwise tests will fail because it cannot open the shared library export LD_LIBRARY_PATH=/usr/local/lib:/usr/local/lib64 ldconfig cd / || exit fi dnf install -y libtool pkgconfig sqlite-devel autoconf automake openssl-devel ${LIBPCAP} \ pcre2-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel ${CMOCKA} \ make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel \ expect python3-pip python3-setuptools git elif [ "${STEP}" = 'stage2' ]; then GRAPHVIZ=python3-graphviz [ "${ID}" != 'fedora' ] && GRAPHVIZ=graphviz-python3 dnf install -y libnl3 openssl-libs zlib libpcap sqlite-libs pcre2 hwloc iw ethtool pciutils \ usbutils expect python3 ${GRAPHVIZ} iw util-linux ethtool kmod fi elif [ "${ID}" = 'opensuse-leap' ]; then echo "[*] Detected openSUSE Leap" if [ "${STEP}" = 'builder' ]; then zypper install -y autoconf automake libtool pkg-config libnl3-devel libopenssl-1_1-devel zlib-devel \ libpcap-devel sqlite3-devel pcre2-devel hwloc-devel libcmocka-devel hostapd screen \ wpa_supplicant tcpdump iw gcc-c++ gcc ethtool pciutils usbutils expect python3-pip \ python3-setuptools git elif [ "${STEP}" = 'stage2' ]; then zypper install -y libnl3-200 libopenssl1_1 zlib libpcap sqlite3 libpcre2-8-0 hwloc iw ethtool pciutils \ usbutils expect python3 python3-graphviz iw util-linux ethtool kmod fi elif [ "${ID}" = 'gentoo' ]; then echo "[*] Detected Gentoo" if [ "${STEP}" = 'builder' ]; then export EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --getbinpkg=y" cat <<EOF >/etc/portage/binrepos.conf [binhost] priority = 9999 sync-uri = https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64/ EOF emerge --sync >/dev/null emerge app-portage/elt-patches dev-db/sqlite dev-lang/python dev-libs/libbsd dev-libs/libnl dev-libs/libpcre2 \ dev-libs/openssl dev-vcs/git net-libs/libpcap net-wireless/iw net-wireless/lorcon sys-apps/hwloc \ net-wireless/wireless-tools sys-apps/ethtool sys-apps/hwdata sys-apps/pciutils sys-apps/usbutils \ sys-devel/autoconf sys-devel/automake sys-devel/gnuconfig sys-devel/libtool sys-libs/zlib elif [ "${STEP}" = 'stage2' ]; then export EMERGE_DEFAULT_OPTS="--binpkg-respect-use=y --getbinpkg=y" cat <<EOF >/etc/portage/binrepos.conf [binhost] priority = 9999 sync-uri = https://gentoo.osuosl.org/experimental/amd64/binpkg/default/linux/17.1/x86-64/ EOF emerge --sync >/dev/null emerge dev-db/sqlite dev-lang/python dev-libs/libbsd dev-libs/libnl dev-libs/libpcre2 dev-libs/openssl \ net-libs/libpcap net-wireless/iw net-wireless/lorcon net-wireless/wireless-tools sys-apps/ethtool \ sys-apps/hwdata sys-apps/hwloc sys-apps/pciutils sys-apps/usbutils sys-libs/zlib app-portage/gentoolkit eclean --deep distfiles && eclean --deep packages emerge --depclean app-portage/gentoolkit rm -fr /var/db/repos/gentoo /etc/portage/binrepos.conf fi elif [ "${ID}" = 'clear-linux-os' ]; then echo "[*] Detected Clear Linux (${VERSION_ID})" if [ "${STEP}" = 'builder' ]; then # Build hostapd swupd bundle-add wget c-basic devpkg-openssl devpkg-libnl wget https://w1.fi/releases/hostapd-2.10.tar.gz tar -zxf hostapd-2.10.tar.gz cd hostapd-2.10/hostapd || exit 1 cp defconfig .config make make install hostapd -v # Install the rest of the packages swupd bundle-add devpkg-libgcrypt devpkg-hwloc devpkg-libpcap # Split it in multiple parts to avoid failure: "Error: Bundle too large by xxxxM" swupd bundle-add devpkg-pcre2 devpkg-sqlite-autoconf git swupd bundle-add ethtool network-basic software-testing swupd bundle-add sysadmin-basic wpa_supplicant os-testsuite elif [ "${STEP}" = 'stage2' ]; then # Break it in multiple steps to avoid the issue mentioned above swupd bundle-add libnl openssl devpkg-zlib devpkg-libpcap swupd bundle-add sqlite devpkg-pcre2 hwloc network-basic ethtool swupd bundle-add sysadmin-basic python-extras fi else echo "[!] Unsupported distro: ${ID} - PR welcome" exit 1 fi # shellcheck disable=SC2181 if [ $? -ne 0 ]; then echo '[!] ERROR, aborting' exit 1 fi exit 0
aircrack-ng/evalrev
#!/bin/sh set -euf DIR=${1:-} CMD=${2:-} SCM="" if [ x$DIR = "x" ] then DIR="." fi if test -d "${DIR}/.git"; then # # Locate the closest annotated tag # REVISION="$(git describe --abbrev=0 --tags 2>/dev/null || echo unknown)" # # Determine if we are a development branch, if so then append the # short SHA1. # EXACTLY="$(git describe --abbrev=0 --tags --exact-match 2>/dev/null || echo)" if test -z "$EXACTLY"; then REVISION="${REVISION}_rev-$(git rev-parse --verify --short HEAD)" SCM="_rev-$(git rev-parse --verify --short HEAD)" fi elif test -d "${DIR}/.svn"; then REVISION="_r$(svnversion $DIR 2> /dev/null | sed 's/[^0-9]*//g')" SCM="_r$(svnversion $DIR 2> /dev/null | sed 's/[^0-9]*//g')" if test x$REVISION = "x"; then REVISION="_r$(svn info $DIR 2> /dev/null | grep -i revision | sed 's/[^0-9]*//g')" SCM="_r$(svn info $DIR 2> /dev/null | grep -i revision | sed 's/[^0-9]*//g')" fi if test x$REVISION = "x"; then if test -f "${DIR}/.svn/entries"; then REVISION="_r$(cat ${DIR}/.svn/entries | grep -i revision | head -n 1 | sed 's/[^0-9]*//g')" SCM="_r$(cat ${DIR}/.svn/entries | grep -i revision | head -n 1 | sed 's/[^0-9]*//g')" fi fi if test x$REVISION = "x"; then REVISION="_r1" SCM="_r1" fi elif [ -n "${GITHUB_SHA}" ]; then SHORT_SHA_REVISION="$(echo ${GITHUB_SHA} | cut -b 1-8)" VERSION=$(cat ${DIR}/AC_VERSION 2>/dev/null) REVISION="${VERSION}_rev-${SHORT_SHA_REVISION}" SCM="_rev-${SHORT_SHA_REVISION}" else REVISION="$(cat ${DIR}/AC_VERSION 2>/dev/null)" fi if test "x$CMD" = "xscm"; then echo $SCM elif test "x$CMD" = "xquoted"; then echo \"$REVISION\" else echo $REVISION fi
aircrack-ng/INSTALLING
== Building == === Requirements === * Autoconf * Automake * Libtool * shtool * OpenSSL development package or libgcrypt development package. * Airmon-ng (Linux) requires ethtool, usbutils, and often pciutils. * 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, DragonFlyBSD, OpenBSD and NetBSD) * FreeBSD, DragonFlyBSD, OpenBSD, NetBSD, Solaris and OS X with Macports: gmake * Linux/Cygwin: make and Standard C++ Library development package (Debian: libstdc++-dev) Note: Airmon-ng only requires pciutils if the system has a PCI/PCIe bus and it is populated. Such bus can be present even if not physically visible. For example, it is present, and populated on the Raspberry Pi 4, therefore pciutils is required on that device. === Optional stuff === * If you want SSID filtering with regular expression in airodump-ng (--essid-regex) PCRE or PCRE2 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 Airpcap SDK instead; see above) * rfkill * If you want Airodump-ng to log GPS coordinates, gpsd is needed * 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 * CMocka for unit testing * For integration testing on Linux only: tcpdump, HostAPd, WPA Supplicant and screen === 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, tcpdump, screen, HostAPd and WPA Supplicant should not be dependencies when packaging Aircrack-ng. ==== Linux ==== ===== Arch Linux ===== `sudo pacman -Sy base-devel libnl openssl ethtool util-linux zlib libpcap sqlite pcre2 hwloc cmocka hostapd wpa_supplicant tcpdump screen iw usbutils pciutils` ===== 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 libpcre2-dev libhwloc-dev libcmocka-dev hostapd wpasupplicant tcpdump screen iw usbutils` ==== Fedora ==== `sudo yum install libtool pkgconfig sqlite-devel autoconf automake openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel` ==== CentOS/RHEL 7 ==== `sudo yum install epel-release` `sudo ./centos_autotools.sh` # Remove older installation of automake/autoconf `sudo yum remove autoconf automake` `sudo yum install sqlite-devel openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel` Note: autoconf, automake, libtool, and pkgconfig in the repositories are too old. The script centos_autotools.sh automatically installs dependencies to compile then install the tools. ==== CentOS/RHEL 8 ==== `sudo yum config-manager --set-enabled powertools` `sudo yum install epel-release` `sudo yum install git libtool pkgconfig sqlite-devel autoconf automake openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel` ===== openSUSE ===== `sudo zypper install autoconf automake libtool pkg-config libnl3-devel libopenssl-1_1-devel zlib-devel libpcap-devel sqlite3-devel pcre2-devel hwloc-devel libcmocka-devel hostapd wpa_supplicant tcpdump screen iw gcc-c++ gcc ethtool pciutils usbutils` ===== Mageia ===== `sudo urpmi autoconf automake libtool pkgconfig libnl3-devel libopenssl-devel zlib-devel libpcap-devel sqlite3-devel pcre2-devel hwloc-devel libcmocka-devel hostapd wpa_supplicant tcpdump screen iw gcc-c++ gcc make` ===== Alpine ===== `sudo apk add gcc g++ make autoconf automake libtool libnl3-dev openssl-dev ethtool libpcap-dev cmocka-dev hostapd wpa_supplicant tcpdump screen iw pkgconf util-linux sqlite-dev pcre2-dev linux-headers zlib-dev pciutils usbutils` Note: Community repository needs to be enabled for iw ==== Clear Linux ==== `sudo swupd bundle-add c-basic devpkg-openssl devpkg-libnl devpkg-hwloc devpkg-libpcap devpkg-pcre2 devpkg-sqlite-autoconf ethtool wget network-basic software-testing sysadmin-basic wpa_supplicant` Note: hostapd must be compiled manually, it is not present in the repository ==== BSD ==== ===== FreeBSD ===== `pkg install pkgconf shtool libtool gcc9 automake autoconf pcre2 sqlite3 openssl gmake hwloc cmocka` ===== DragonflyBSD ===== `pkg install pkgconf shtool libtool gcc8 automake autoconf pcre2 sqlite3 libgcrypt gmake cmocka` ===== OpenBSD ===== `pkg_add pkgconf shtool libtool gcc automake autoconf pcre2 sqlite3 openssl gmake cmocka` ===== NetBSD ===== `pkg_add pkgconf libtool gcc7 automake autoconf pcre2 sqlite3 openssl gmake cmocka` ==== macOS ==== XCode, Xcode command line tools and HomeBrew are required. `brew install autoconf automake libtool openssl shtool pkg-config hwloc pcre2 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 libpcre2-devel -P libssl-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 pcre2-devel libsqlite-devel` === Docker containers === We have two repositories on DockerHub: - aircrackng/release (https://hub.docker.com/r/aircrackng/release): Each release - aircrackng/git (https://hub.docker.com/r/aircrackng/git): every commit in the git repository Base command for the git version: `sudo docker run --rm -it aircrackng/git` Available platforms/CPU architectures: - linux/386 (base image: debian:unstable-slim) - linux/amd64 (base image: debian:unstable-slim) - linux/arm/v5 (base image: debian:unstable-slim) - linux/arm/v6 (base image: alpine:3) - linux/arm/v7 (base image: debian:unstable-slim) - linux/arm64/v8 (base image: debian:unstable-slim) - linux/mips64le (base image: debian:unstable-slim) - linux/ppc64le (base image: debian:unstable-slim) - linux/riscv64 (base image: debian:unstable-slim) - linux/s390x (base image: debian:unstable-slim) === 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` * Execute all integration testing (requires root): `make integration` * 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 underruns. Dependency (Debian): duma * disable-libnl: Set up the project to be compiled without libnl (1 or 3). Linux option only. * without-opt: Do not enable -O3 optimizations. * 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. * --enable-maintainer-mode: It is important to enable this flag when developing with Aircrack-ng. This flag enables additional compile warnings and safety features. ===== 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 pcre2) `./configure --with-experimental` `make` `make check` * Compiling on OS X with macports (and all options): `./configure --with-experimental` `gmake` * Compiling on macOS running on M1/AARCH64 and Homebrew: `autoreconf -vif` `env CPPFLAGS="-Wno-deprecated-declarations" ./configure --with-experimental` `make` `make check` * 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 gcc9 `env CC=gcc9 CXX=g++9 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 8 ``` autoreconf -i env CC=gcc8 CXX=g++8 MAKE=gmake ./configure --with-experimental --with-gcrypt gmake ``` * Compiling on OpenBSD (with autoconf 2.69 and automake 1.16) ``` export AUTOCONF_VERSION=2.69 export AUTOMAKE_VERSION=1.16 autoreconf -i env MAKE=gmake ./configure gmake ``` * Compiling and debugging aircrack-ng ``` export CFLAGS='-O0 -g' export CXXFLAGS='-O0 -g' ./configure --with-experimental --enable-maintainer-mode --without-opt make LD_LIBRARY_PATH=.libs gdb --args ./aircrack-ng [PARAMETERS] ``` == IDE development == === VS Code - devcontainers === A VS Code development environment is provided, as is, for rapid setup of a development environment. This additionally adds support for GitHub Codespaces. ==== Requirements ==== The first requirement is a working Docker Engine (https://docs.docker.com/engine/install/) environment. Next, an installation of VS Code (https://code.visualstudio.com/) with the following extension(s): - Remote - Containers: https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers by Microsoft. Note: The "Remote - Containers" extension will refuse to work with OSS Code. ==== Usage ==== 1. Clone this repository to your working folder: ``` $ git clone --recursive https://github.com/aircrack-ng/aircrack-ng.git $ cd aircrack-ng ``` 2. After cloning this repository, open the folder inside VS Code. ``` $ code . ``` IMPORTANT: You should answer "Yes", if it asks if the folder should be opened inside a remote container. If it does not ask, then press `Ctrl+Shift+P` and type `open in container`. This should bring up the correct command, for which pressing enter will run said command. 3. A number of warnings might appear about a missing `compile_commands.json` file. These are safe to ignore for a moment, as this file is automatically generated after the initial compilation. 4. Now build the entire project by pressing `Ctrl+R` and selecting `Build Full` from the pop-up menu that appears. 5. VS Code should detect the `compile_commands.json` file and ask if it should be used; selecting "Yes, always" will complete the initial setup of a fully working IDE. IMPORTANT: If it doesn't detect the file, pressing `Ctrl+Shift+P` and typing `reload window` will bring up the selection to fully reload the environment. 6. At this point, nearly all features of VS Code will function; from Intellisense, auto-completion, live documentation, to code formatting. Additionally, there are pre-configured tasks for builds and tests, as well as an example GDB/LLDB configuration for debugging `aircrack-ng`. == 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 pre-compiled binaries == === Linux/BSD === Aircrack-ng is available in most distributions repositories. However, it is not always up-to-date. === Windows === * Install the appropriate "monitor" driver for your card; standard drivers don't work for capturing data. * Aircrack-ng suite is command line tools. So, you have to open a command-line `Start menu -> Run... -> cmd.exe` then use them * Run the executables without any parameters to have help == Documentation == Some more information is present in the README file. Documentation, tutorials, ... can be found on https://aircrack-ng.org Support is available in the GitHub Discussions (https://github.com/aircrack-ng/aircrack-ng/discussions) and on IRC (in #aircrack-ng on Libera Chat). Every tool has its own manpage. For aircrack-ng, `man aircrack-ng`
aircrack-ng/LICENSE
GNU GENERAL PUBLIC LICENSE Version 2, June 1991 Copyright (C) 1989, 1991 Free Software Foundation, Inc. 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Everyone is permitted to copy and distribute verbatim copies of this license document, but changing it is not allowed. Preamble The licenses for most software are designed to take away your freedom to share and change it. By contrast, the GNU General Public License is intended to guarantee your freedom to share and change free software--to make sure the software is free for all its users. This General Public License applies to most of the Free Software Foundation's software and to any other program whose authors commit to using it. (Some other Free Software Foundation software is covered by the GNU Library General Public License instead.) You can apply it to your programs, too. When we speak of free software, we are referring to freedom, not price. Our General Public Licenses are designed to make sure that you have the freedom to distribute copies of free software (and charge for this service if you wish), that you receive source code or can get it if you want it, that you can change the software or use pieces of it in new free programs; and that you know you can do these things. To protect your rights, we need to make restrictions that forbid anyone to deny you these rights or to ask you to surrender the rights. These restrictions translate to certain responsibilities for you if you distribute copies of the software, or if you modify it. For example, if you distribute copies of such a program, whether gratis or for a fee, you must give the recipients all the rights that you have. You must make sure that they, too, receive or can get the source code. And you must show them these terms so they know their rights. We protect your rights with two steps: (1) copyright the software, and (2) offer you this license which gives you legal permission to copy, distribute and/or modify the software. Also, for each author's protection and ours, we want to make certain that everyone understands that there is no warranty for this free software. If the software is modified by someone else and passed on, we want its recipients to know that what they have is not the original, so that any problems introduced by others will not reflect on the original authors' reputations. Finally, any free program is threatened constantly by software patents. We wish to avoid the danger that redistributors of a free program will individually obtain patent licenses, in effect making the program proprietary. To prevent this, we have made it clear that any patent must be licensed for everyone's free use or not licensed at all. The precise terms and conditions for copying, distribution and modification follow. GNU GENERAL PUBLIC LICENSE TERMS AND CONDITIONS FOR COPYING, DISTRIBUTION AND MODIFICATION 0. This License applies to any program or other work which contains a notice placed by the copyright holder saying it may be distributed under the terms of this General Public License. The "Program", below, refers to any such program or work, and a "work based on the Program" means either the Program or any derivative work under copyright law: that is to say, a work containing the Program or a portion of it, either verbatim or with modifications and/or translated into another language. (Hereinafter, translation is included without limitation in the term "modification".) Each licensee is addressed as "you". Activities other than copying, distribution and modification are not covered by this License; they are outside its scope. The act of running the Program is not restricted, and the output from the Program is covered only if its contents constitute a work based on the Program (independent of having been made by running the Program). Whether that is true depends on what the Program does. 1. You may copy and distribute verbatim copies of the Program's source code as you receive it, in any medium, provided that you conspicuously and appropriately publish on each copy an appropriate copyright notice and disclaimer of warranty; keep intact all the notices that refer to this License and to the absence of any warranty; and give any other recipients of the Program a copy of this License along with the Program. You may charge a fee for the physical act of transferring a copy, and you may at your option offer warranty protection in exchange for a fee. 2. You may modify your copy or copies of the Program or any portion of it, thus forming a work based on the Program, and copy and distribute such modifications or work under the terms of Section 1 above, provided that you also meet all of these conditions: a) You must cause the modified files to carry prominent notices stating that you changed the files and the date of any change. b) You must cause any work that you distribute or publish, that in whole or in part contains or is derived from the Program or any part thereof, to be licensed as a whole at no charge to all third parties under the terms of this License. c) If the modified program normally reads commands interactively when run, you must cause it, when started running for such interactive use in the most ordinary way, to print or display an announcement including an appropriate copyright notice and a notice that there is no warranty (or else, saying that you provide a warranty) and that users may redistribute the program under these conditions, and telling the user how to view a copy of this License. (Exception: if the Program itself is interactive but does not normally print such an announcement, your work based on the Program is not required to print an announcement.) These requirements apply to the modified work as a whole. If identifiable sections of that work are not derived from the Program, and can be reasonably considered independent and separate works in themselves, then this License, and its terms, do not apply to those sections when you distribute them as separate works. But when you distribute the same sections as part of a whole which is a work based on the Program, the distribution of the whole must be on the terms of this License, whose permissions for other licensees extend to the entire whole, and thus to each and every part regardless of who wrote it. Thus, it is not the intent of this section to claim rights or contest your rights to work written entirely by you; rather, the intent is to exercise the right to control the distribution of derivative or collective works based on the Program. In addition, mere aggregation of another work not based on the Program with the Program (or with a work based on the Program) on a volume of a storage or distribution medium does not bring the other work under the scope of this License. 3. You may copy and distribute the Program (or a work based on it, under Section 2) in object code or executable form under the terms of Sections 1 and 2 above provided that you also do one of the following: a) Accompany it with the complete corresponding machine-readable source code, which must be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, b) Accompany it with a written offer, valid for at least three years, to give any third party, for a charge no more than your cost of physically performing source distribution, a complete machine-readable copy of the corresponding source code, to be distributed under the terms of Sections 1 and 2 above on a medium customarily used for software interchange; or, c) Accompany it with the information you received as to the offer to distribute corresponding source code. (This alternative is allowed only for noncommercial distribution and only if you received the program in object code or executable form with such an offer, in accord with Subsection b above.) The source code for a work means the preferred form of the work for making modifications to it. For an executable work, complete source code means all the source code for all modules it contains, plus any associated interface definition files, plus the scripts used to control compilation and installation of the executable. However, as a special exception, the source code distributed need not include anything that is normally distributed (in either source or binary form) with the major components (compiler, kernel, and so on) of the operating system on which the executable runs, unless that component itself accompanies the executable. If distribution of executable or object code is made by offering access to copy from a designated place, then offering equivalent access to copy the source code from the same place counts as distribution of the source code, even though third parties are not compelled to copy the source along with the object code. 4. You may not copy, modify, sublicense, or distribute the Program except as expressly provided under this License. Any attempt otherwise to copy, modify, sublicense or distribute the Program is void, and will automatically terminate your rights under this License. However, parties who have received copies, or rights, from you under this License will not have their licenses terminated so long as such parties remain in full compliance. 5. You are not required to accept this License, since you have not signed it. However, nothing else grants you permission to modify or distribute the Program or its derivative works. These actions are prohibited by law if you do not accept this License. Therefore, by modifying or distributing the Program (or any work based on the Program), you indicate your acceptance of this License to do so, and all its terms and conditions for copying, distributing or modifying the Program or works based on it. 6. Each time you redistribute the Program (or any work based on the Program), the recipient automatically receives a license from the original licensor to copy, distribute or modify the Program subject to these terms and conditions. You may not impose any further restrictions on the recipients' exercise of the rights granted herein. You are not responsible for enforcing compliance by third parties to this License. 7. If, as a consequence of a court judgment or allegation of patent infringement or for any other reason (not limited to patent issues), conditions are imposed on you (whether by court order, agreement or otherwise) that contradict the conditions of this License, they do not excuse you from the conditions of this License. If you cannot distribute so as to satisfy simultaneously your obligations under this License and any other pertinent obligations, then as a consequence you may not distribute the Program at all. For example, if a patent license would not permit royalty-free redistribution of the Program by all those who receive copies directly or indirectly through you, then the only way you could satisfy both it and this License would be to refrain entirely from distribution of the Program. If any portion of this section is held invalid or unenforceable under any particular circumstance, the balance of the section is intended to apply and the section as a whole is intended to apply in other circumstances. It is not the purpose of this section to induce you to infringe any patents or other property right claims or to contest validity of any such claims; this section has the sole purpose of protecting the integrity of the free software distribution system, which is implemented by public license practices. Many people have made generous contributions to the wide range of software distributed through that system in reliance on consistent application of that system; it is up to the author/donor to decide if he or she is willing to distribute software through any other system and a licensee cannot impose that choice. This section is intended to make thoroughly clear what is believed to be a consequence of the rest of this License. 8. If the distribution and/or use of the Program is restricted in certain countries either by patents or by copyrighted interfaces, the original copyright holder who places the Program under this License may add an explicit geographical distribution limitation excluding those countries, so that distribution is permitted only in or among countries not thus excluded. In such case, this License incorporates the limitation as if written in the body of this License. 9. The Free Software Foundation may publish revised and/or new versions of the General Public License from time to time. Such new versions will be similar in spirit to the present version, but may differ in detail to address new problems or concerns. Each version is given a distinguishing version number. If the Program specifies a version number of this License which applies to it and "any later version", you have the option of following the terms and conditions either of that version or of any later version published by the Free Software Foundation. If the Program does not specify a version number of this License, you may choose any version ever published by the Free Software Foundation. 10. If you wish to incorporate parts of the Program into other free programs whose distribution conditions are different, write to the author to ask for permission. For software which is copyrighted by the Free Software Foundation, write to the Free Software Foundation; we sometimes make exceptions for this. Our decision will be guided by the two goals of preserving the free status of all derivatives of our free software and of promoting the sharing and reuse of software generally. NO WARRANTY 11. BECAUSE THE PROGRAM IS LICENSED FREE OF CHARGE, THERE IS NO WARRANTY FOR THE PROGRAM, TO THE EXTENT PERMITTED BY APPLICABLE LAW. EXCEPT WHEN OTHERWISE STATED IN WRITING THE COPYRIGHT HOLDERS AND/OR OTHER PARTIES PROVIDE THE PROGRAM "AS IS" WITHOUT WARRANTY OF ANY KIND, EITHER EXPRESSED OR IMPLIED, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE. THE ENTIRE RISK AS TO THE QUALITY AND PERFORMANCE OF THE PROGRAM IS WITH YOU. SHOULD THE PROGRAM PROVE DEFECTIVE, YOU ASSUME THE COST OF ALL NECESSARY SERVICING, REPAIR OR CORRECTION. 12. IN NO EVENT UNLESS REQUIRED BY APPLICABLE LAW OR AGREED TO IN WRITING WILL ANY COPYRIGHT HOLDER, OR ANY OTHER PARTY WHO MAY MODIFY AND/OR REDISTRIBUTE THE PROGRAM AS PERMITTED ABOVE, BE LIABLE TO YOU FOR DAMAGES, INCLUDING ANY GENERAL, SPECIAL, INCIDENTAL OR CONSEQUENTIAL DAMAGES ARISING OUT OF THE USE OR INABILITY TO USE THE PROGRAM (INCLUDING BUT NOT LIMITED TO LOSS OF DATA OR DATA BEING RENDERED INACCURATE OR LOSSES SUSTAINED BY YOU OR THIRD PARTIES OR A FAILURE OF THE PROGRAM TO OPERATE WITH ANY OTHER PROGRAMS), EVEN IF SUCH HOLDER OR OTHER PARTY HAS BEEN ADVISED OF THE POSSIBILITY OF SUCH DAMAGES. END OF TERMS AND CONDITIONS How to Apply These Terms to Your New Programs If you develop a new program, and you want it to be of the greatest possible use to the public, the best way to achieve this is to make it free software which everyone can redistribute and change under these terms. To do so, attach the following notices to the program. It is safest to attach them to the start of each source file to most effectively convey the exclusion of warranty; and each file should have at least the "copyright" line and a pointer to where the full notice is found. <one line to give the program's name and a brief idea of what it does.> Copyright (C) <year> <name of author> This program is free software; you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation; either version 2 of the License, or (at your option) any later version. This program is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details. You should have received a copy of the GNU General Public License along with this program; if not, write to the Free Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA Also add information on how to contact you by electronic and paper mail. If the program is interactive, make it output a short notice like this when it starts in an interactive mode: Gnomovision version 69, Copyright (C) year name of author Gnomovision comes with ABSOLUTELY NO WARRANTY; for details type `show w'. This is free software, and you are welcome to redistribute it under certain conditions; type `show c' for details. The hypothetical commands `show w' and `show c' should show the appropriate parts of the General Public License. Of course, the commands you use may be called something other than `show w' and `show c'; they could even be mouse-clicks or menu items--whatever suits your program. You should also get your employer (if you work as a programmer) or your school, if any, to sign a "copyright disclaimer" for the program, if necessary. Here is a sample; alter the names: Yoyodyne, Inc., hereby disclaims all copyright interest in the program `Gnomovision' (which makes passes at compilers) written by James Hacker. <signature of Ty Coon>, 1 April 1989 Ty Coon, President of Vice This General Public License does not permit incorporating your program into proprietary programs. If your program is a subroutine library, you may consider it more useful to permit linking proprietary applications with the library. If this is what you want to do, use the GNU Library General Public License instead of this License.
aircrack-ng/LICENSE.OpenSSL
LICENSE ISSUES ============== The OpenSSL toolkit stays under a dual license, i.e. both the conditions of the OpenSSL License and the original SSLeay license apply to the toolkit. See below for the actual license texts. Actually both licenses are BSD-style Open Source licenses. In case of any license issues related to OpenSSL please contact openssl-core@openssl.org. OpenSSL License --------------- /* ==================================================================== * Copyright (c) 1998-2007 The OpenSSL Project. All rights reserved. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * * 1. Redistributions of source code must retain the above copyright * notice, this list of conditions and the following disclaimer. * * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in * the documentation and/or other materials provided with the * distribution. * * 3. All advertising materials mentioning features or use of this * software must display the following acknowledgment: * "This product includes software developed by the OpenSSL Project * for use in the OpenSSL Toolkit. (http://www.openssl.org/)" * * 4. The names "OpenSSL Toolkit" and "OpenSSL Project" must not be used to * endorse or promote products derived from this software without * prior written permission. For written permission, please contact * openssl-core@openssl.org. * * 5. Products derived from this software may not be called "OpenSSL" * nor may "OpenSSL" appear in their names without prior written * permission of the OpenSSL Project. * * 6. Redistributions of any form whatsoever must retain the following * acknowledgment: * "This product includes software developed by the OpenSSL Project * for use in the OpenSSL Toolkit (http://www.openssl.org/)" * * THIS SOFTWARE IS PROVIDED BY THE OpenSSL PROJECT ``AS IS'' AND ANY * EXPRESSED OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR * PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE OpenSSL PROJECT OR * ITS CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, * SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; * LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, * STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) * ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED * OF THE POSSIBILITY OF SUCH DAMAGE. * ==================================================================== * * This product includes cryptographic software written by Eric Young * (eay@cryptsoft.com). This product includes software written by Tim * Hudson (tjh@cryptsoft.com). * */ Original SSLeay License ----------------------- /* Copyright (C) 1995-1998 Eric Young (eay@cryptsoft.com) * All rights reserved. * * This package is an SSL implementation written * by Eric Young (eay@cryptsoft.com). * The implementation was written so as to conform with Netscapes SSL. * * This library is free for commercial and non-commercial use as long as * the following conditions are aheared to. The following conditions * apply to all code found in this distribution, be it the RC4, RSA, * lhash, DES, etc., code; not just the SSL code. The SSL documentation * included with this distribution is covered by the same copyright terms * except that the holder is Tim Hudson (tjh@cryptsoft.com). * * Copyright remains Eric Young's, and as such any Copyright notices in * the code are not to be removed. * If this package is used in a product, Eric Young should be given attribution * as the author of the parts of the library used. * This can be in the form of a textual message at program startup or * in documentation (online or textual) provided with the package. * * Redistribution and use in source and binary forms, with or without * modification, are permitted provided that the following conditions * are met: * 1. Redistributions of source code must retain the copyright * notice, this list of conditions and the following disclaimer. * 2. Redistributions in binary form must reproduce the above copyright * notice, this list of conditions and the following disclaimer in the * documentation and/or other materials provided with the distribution. * 3. All advertising materials mentioning features or use of this software * must display the following acknowledgement: * "This product includes cryptographic software written by * Eric Young (eay@cryptsoft.com)" * The word 'cryptographic' can be left out if the rouines from the library * being used are not cryptographic related :-). * 4. If you include any Windows specific code (or a derivative thereof) from * the apps directory (application code) you must include an acknowledgement: * "This product includes software written by Tim Hudson (tjh@cryptsoft.com)" * * THIS SOFTWARE IS PROVIDED BY ERIC YOUNG ``AS IS'' AND * ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE * IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE * ARE DISCLAIMED. IN NO EVENT SHALL THE AUTHOR OR CONTRIBUTORS BE LIABLE * FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS * OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) * HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT * LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * * The licence and distribution terms for any publically available version or * derivative of this code cannot be changed. i.e. this code cannot simply be * copied and put under another distribution licence * [including the GNU Public Licence.] */
aircrack-ng/Makefile.am
# Aircrack-ng # # Copyright (C) 2017 Joseph Benden <joe@benden.us> # # Autotool support was written by: Joseph Benden <joe@benden.us> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA # # In addition, as a special exception, the copyright holders give # permission to link the code of portions of this program with the # OpenSSL library under certain conditions as described in each # individual source file, and distribute linked combinations # including the two. # # You must obey the GNU General Public License in all respects # for all of the code used other than OpenSSL. # # If you modify file(s) with this exception, you may extend this # exception to your dnl version of the file(s), but you are not obligated # to do so. # # If you dnl do not wish to do so, delete this exception statement from your # version. # # If you delete this exception statement from all source files in the # program, then also delete it here. AM_MAKEFLAGS = --no-print-directory ACLOCAL_AMFLAGS = -I build/m4/stubs -I build/m4 SUBDIRS = manpages \ scripts AM_CPPFLAGS = -I$(abs_srcdir) \ -I$(abs_builddir)/include \ -I$(abs_srcdir)/include \ -I$(abs_builddir)/lib \ -I$(abs_srcdir)/lib \ -I$(abs_builddir)/lib/radiotap \ -I$(abs_srcdir)/lib/radiotap \ $(CRYPTO_INCLUDES) \ $(CODE_COVERAGE_CPPFLAGS) CFLAGS += $(CODE_COVERAGE_CFLAGS) CXXFLAGS += $(CODE_COVERAGE_CXXFLAGS) LIBS += $(CODE_COVERAGE_LIBS) COMMON_CFLAGS = $(PTHREAD_CFLAGS) $(CRYPTO_CFLAGS) $(ZLIB_CFLAGS) COMMON_LDADD = $(PTHREAD_LIBS) $(CRYPTO_LDFLAGS) $(CRYPTO_LIBS) $(ZLIB_LIBS) bin_PROGRAMS = sbin_PROGRAMS = noinst_LTLIBRARIES = lib_LTLIBRARIES = EXTRA_DIST = AC_VERSION check_PROGRAMS = TESTS = INTEGRATION_TESTS = LIBACCRYPTO_LIBS = libaccrypto.la LIBAIRCRACK_CE_WEP_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wep.la LIBAIRCRACK_LIBS = libaircrack.la LIBAIRCRACK_OSDEP_LIBS= libaircrack-osdep.la if CYGWIN LIBAIRCRACK_OSDEP_LIBS+= -liphlpapi -lsetupapi endif LIBCOWPATTY_LIBS = libcowpatty.la LIBPTW_LIBS = libptw.la LIBRADIOTAP_LIBS = libradiotap.la LIBAIRCRACK_CE_WPA_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa.la LIBAIRCRACK_CE_WPA_X86_AVX512_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-x86-avx512.la LIBAIRCRACK_CE_WPA_X86_AVX2_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-x86-avx2.la LIBAIRCRACK_CE_WPA_X86_AVX_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-x86-avx.la LIBAIRCRACK_CE_WPA_X86_SSE2_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-x86-sse2.la LIBAIRCRACK_CE_WPA_ARM_NEON_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-arm-neon.la LIBAIRCRACK_CE_WPA_PPC_ALTIVEC_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-ppc-altivec.la LIBAIRCRACK_CE_WPA_PPC_POWER8_LIBS = $(LIBACCRYPTO_LIBS) libaircrack-ce-wpa-ppc-power8.la LIBAIRCRACK_CE_WPA_PATH = $(abs_top_builddir)/ include $(top_srcdir)/Makefile.integration.mk include $(top_srcdir)/include/Makefile.inc include $(top_srcdir)/lib/Makefile.inc include $(top_srcdir)/src/Makefile.inc include $(top_srcdir)/test/Makefile.inc include $(top_srcdir)/aminclude_static.am clean-local: code-coverage-clean distclean-local: code-coverage-dist-clean dist-hook: $(AM_V_GEN)echo $(VERSION) > $(distdir)/AC_VERSION
aircrack-ng/Makefile.integration.mk
INTEGRATION_TEST_SUITE_LOG = integration-test-suite.log am__set_INTEGRATION_TESTS_bases = \ bases='$(INTEGRATION_TEST_LOGS)'; \ bases=`for i in $$bases; do echo $$i; done | sed 's/\.log$$//'`; \ bases=`echo $$bases` am__integration_test_logs1 = $(INTEGRATION_TESTS:=.log) INTEGRATION_TEST_LOGS = $(am__integration_test_logs1:.log=.log) # Leading 'am--fnord' is there to ensure the list of targets does not # expand to empty, as could happen e.g. with make check TESTS=''. am--fnord $(INTEGRATION_TEST_LOGS) $(INTEGRATION_TEST_LOGS:.log=.trs): $(am__force_recheck) $(INTEGRATION_TEST_SUITE_LOG): $(INTEGRATION_TEST_LOGS) @$(am__set_INTEGRATION_TESTS_bases); \ am__f_ok () { test -f "$$1" && test -r "$$1"; }; \ redo_bases=`for i in $$bases; do \ am__f_ok $$i.trs && am__f_ok $$i.log || echo $$i; \ done`; \ if test -n "$$redo_bases"; then \ redo_logs=`for i in $$redo_bases; do echo $$i.log; done`; \ redo_results=`for i in $$redo_bases; do echo $$i.trs; done`; \ if $(am__make_dryrun); then :; else \ rm -f $$redo_logs && rm -f $$redo_results || exit 1; \ fi; \ fi; \ if test -n "$$am__remaking_logs"; then \ echo "fatal: making $(INTEGRATION_TEST_SUITE_LOG): possible infinite" \ "recursion detected" >&2; \ elif test -n "$$redo_logs"; then \ am__remaking_logs=yes $(MAKE) $(AM_MAKEFLAGS) $$redo_logs; \ fi; \ if $(am__make_dryrun); then :; else \ st=0; \ errmsg="fatal: making $(INTEGRATION_TEST_SUITE_LOG): failed to create"; \ for i in $$redo_bases; do \ test -f $$i.trs && test -r $$i.trs \ || { echo "$$errmsg $$i.trs" >&2; st=1; }; \ test -f $$i.log && test -r $$i.log \ || { echo "$$errmsg $$i.log" >&2; st=1; }; \ done; \ test $$st -eq 0 || exit 1; \ fi @$(am__sh_e_setup); $(am__tty_colors); $(am__set_INTEGRATION_TESTS_bases); \ ws='[ ]'; \ results=`for b in $$bases; do echo $$b.trs; done`; \ test -n "$$results" || results=/dev/null; \ all=` grep "^$$ws*:test-result:" $$results | wc -l`; \ pass=` grep "^$$ws*:test-result:$$ws*PASS" $$results | wc -l`; \ fail=` grep "^$$ws*:test-result:$$ws*FAIL" $$results | wc -l`; \ skip=` grep "^$$ws*:test-result:$$ws*SKIP" $$results | wc -l`; \ xfail=`grep "^$$ws*:test-result:$$ws*XFAIL" $$results | wc -l`; \ xpass=`grep "^$$ws*:test-result:$$ws*XPASS" $$results | wc -l`; \ error=`grep "^$$ws*:test-result:$$ws*ERROR" $$results | wc -l`; \ if test `expr $$fail + $$xpass + $$error` -eq 0; then \ success=true; \ else \ success=false; \ fi; \ br='==================='; br=$$br$$br$$br$$br; \ result_count () \ { \ if test x"$$1" = x"--maybe-color"; then \ maybe_colorize=yes; \ elif test x"$$1" = x"--no-color"; then \ maybe_colorize=no; \ else \ echo "$@: invalid 'result_count' usage" >&2; exit 4; \ fi; \ shift; \ desc=$$1 count=$$2; \ if test $$maybe_colorize = yes && test $$count -gt 0; then \ color_start=$$3 color_end=$$std; \ else \ color_start= color_end=; \ fi; \ echo "$${color_start}# $$desc $$count$${color_end}"; \ }; \ create_testsuite_report () \ { \ result_count $$1 "TOTAL:" $$all "$$brg"; \ result_count $$1 "PASS: " $$pass "$$grn"; \ result_count $$1 "SKIP: " $$skip "$$blu"; \ result_count $$1 "XFAIL:" $$xfail "$$lgn"; \ result_count $$1 "FAIL: " $$fail "$$red"; \ result_count $$1 "XPASS:" $$xpass "$$red"; \ result_count $$1 "ERROR:" $$error "$$mgn"; \ }; \ { \ echo "$(PACKAGE_STRING): $(subdir)/$(INTEGRATION_TEST_SUITE_LOG)" | \ $(am__rst_title); \ create_testsuite_report --no-color; \ echo; \ echo ".. contents:: :depth: 2"; \ echo; \ for b in $$bases; do echo $$b; done \ | $(am__create_global_log); \ } >$(INTEGRATION_TEST_SUITE_LOG).tmp || exit 1; \ mv $(INTEGRATION_TEST_SUITE_LOG).tmp $(INTEGRATION_TEST_SUITE_LOG); \ if $$success; then \ col="$$grn"; \ else \ col="$$red"; \ test x"$$VERBOSE" = x || cat $(INTEGRATION_TEST_SUITE_LOG); \ fi; \ echo "$${col}$$br$${std}"; \ echo "$${col}Integration test-suite summary for $(PACKAGE_STRING)$${std}"; \ echo "$${col}$$br$${std}"; \ create_testsuite_report --maybe-color; \ echo "$$col$$br$$std"; \ if $$success; then :; else \ echo "$${col}See $(subdir)/$(INTEGRATION_TEST_SUITE_LOG)$${std}"; \ if test -n "$(PACKAGE_BUGREPORT)"; then \ echo "$${col}Please report to $(PACKAGE_BUGREPORT)$${std}"; \ fi; \ echo "$$col$$br$$std"; \ fi; \ $$success || exit 1 integration-TESTS: @list='$(RECHECK_LOGS)'; test -z "$$list" || rm -f $$list @list='$(RECHECK_LOGS:.log=.trs)'; test -z "$$list" || rm -f $$list @test -z "$(INTEGRATION_TEST_SUITE_LOG)" || rm -f $(INTEGRATION_TEST_SUITE_LOG) @set +e; $(am__set_INTEGRATION_TESTS_bases); \ log_list=`for i in $$bases; do echo $$i.log; done`; \ trs_list=`for i in $$bases; do echo $$i.trs; done`; \ log_list=`echo $$log_list`; trs_list=`echo $$trs_list`; \ for b in $$bases; do \ p='$$b$(EXEEXT)'; \ $(am__check_pre) $(LOG_DRIVER) --test-name "$$b" \ --log-file $$b.log --trs-file $$b.trs \ $(am__common_driver_flags) $(AM_LOG_DRIVER_FLAGS) $(LOG_DRIVER_FLAGS) -- $(LOG_COMPILE) \ "$$b" $(AM_TESTS_FD_REDIRECT); \ done; \ $(MAKE) $(AM_MAKEFLAGS) $(INTEGRATION_TEST_SUITE_LOG) TEST_LOGS="$$log_list"; \ exit $$?; integration: $(MAKE) $(AM_MAKEFLAGS) $(check_PROGRAMS) $(integration_PROGRAMS) $(MAKE) $(AM_MAKEFLAGS) integration-TESTS mostlyclean-local: -test -z "$(INTEGRATION_TEST_LOGS)" || rm -f $(INTEGRATION_TEST_LOGS) -test -z "$(INTEGRATION_TEST_LOGS:.log=.trs)" || rm -f $(INTEGRATION_TEST_LOGS:.log=.trs) -test -z "$(INTEGRATION_TEST_SUITE_LOG)" || rm -f $(INTEGRATION_TEST_SUITE_LOG)
aircrack-ng/README
Documentation, tutorials, ... can be found on https://www.aircrack-ng.org See also manpages and the forum (GitHub Discussions). Installing ========== This version has more dependencies/libraries required than previous versions to be compiled. See INSTALLING file for more information OpenWrt Devices =============== You can use airodump-ng on OpenWrt devices. You'll have to use specify prism0 as interface. Airodump-ng will automatically create it. Rq: Aireplay DOESN'T work on OpenWrt (2.4 kernel) with broadcom chipset since the driver doesn't support injection. It *may* work with 2.6 kernels >= 2.6.24 (kamikaze 8.09+ custom-built). Known bugs: =========== Drivers ------- Madwifi-ng ---------- The cause of most of these problems (1, 2 and 3) is that Madwifi-ng cannot easily change the rate in monitor mode. Technically, when changing rate while in monitor mode, the raw socket gets invalidated and we have to get it again. Madwifi-ng is getting replaced by several drivers: ath5k, ath9k and ar9170. Problem 1: No client can associate to an airbase soft AP. Solution: Use a more recent driver. Madwifi-ng has been deprecated for years. Problem 2: When changing rate while you are capturing packet makes airodump-ng stall Solution 2: Restart airodump-ng or change rate before starting it. Problem 3: After some time it stops capturing packets and you're really sure no network manager are running at all. Solution 3: That's a known bug in the driver, it may happen at any time (the time before it fails can vary a lot: from 5 minutes to 50 or even more). Try (as root) unloading completely the driver with 'madwifi-unload' and then run 'modprobe ath_pci autocreate=monitor'. Problem 4: When creating a new VAP airodump-ng takes up to 10-15 seconds to see the first packet Solution 4: It's the behavior of madwifi-ng, don't worry (... be happy ;)). Orinoco ------- Problem: BSSID is not reported correctly or is 00:00:00:00:00:00 or signal is not reported correctly. Solution: None. Consider replacing your card, orinoco is really really old. Aircrack-ng ----------- Aireplay-ng ----------- Problem: Fakeauth on a WRT54G with WEP (shared authentication) doesn't work. Solution: None at this time (we'll try to fix it in an upcoming release). Airolib-ng ---------- Problem: On windows only, opening/creating a database doesn't work when airolib-ng is in directories containing special characters like 'ç', 'é', 'è', 'à', ... (directories containing spaces are not affected). Reason: It's a SQLite issue. Solution: Rename the directory or move the database into another directory. Airodump-ng ----------- Problem: Airodump-ng stop working after some time. Solution 1: You may have a network manager running that puts back the card in managed mode. You'll have to disable it (the fastest solution is killing the process) then restart airodump-ng. Solution 2: See Problem 3 of Madwifi-ng. Problem: On windows, it doesn't display a list of adapters like the old 0.X Solution: It requires you to develop your own DLL. Problem: Handshake is not captured/detected Reason: You might be too far and your signal is bad (or too close with a signal too strong). Another possibility is that Airodump-ng didn't detect the handshake properly due to being far apart in the capture. Solution 1: Check out our tutorial 'WPA Packet Capture Explained' in the wiki. Solution 2: Try running Aircrack-ng on your capture, it might detect the capture. Solution 3: Check out our wpaclean tool. Note: It will be fixed in an upcoming release. Cygwin ------ Problem: /usr/include/sys/reent.h:14:20: fatal error: stddef.h: No such file or directory Solution: It happens because the gcc and g++ version are different. Make sure they are the same. Sample files ============ wep.open.system.authentication.cap: It shows a connection (authentication then association) to a WEP network (open authentication). wep.shared.key.authentication.cap: It shows a connection (authentication then association to a WEP network (shared authentication). The difference with open authentication is that the client has to encrypt a challenge text and send it back (encrypted) to the AP to prove it has the right key. wpa.cap: This is a sample file with a WPA handshake. It is located in the test/ directory of the install files. The passphrase is 'biscotte'. Use the password file (password.lst) which is in the same directory. wpa2.eapol.cap: This is a sample file with a WPA2 handshake. It is located in the test/ directory of the install files. The passphrase is '12345678'. Use the password file (password.lst) which is in the same directory. test.ivs (http://download.aircrack-ng.org/wiki-files/other/test.ivs): This is a 128 bit WEP key file. The key is AE:5B:7F:3A:03:D0:AF:9B:F6:8D:A5:E2:C7. wep_64_ptw.cap (http://dl.aircrack-ng.org/ptw.cap): This is a 64 bit WEP key file suitable for the PTW method. The key is '1F:1F:1F:1F:1F'. wpa-psk-linksys.cap: This is a sample file with a WPA1 handshake along with some encrypted packets. Useful for testing with airdecap-ng. The password is 'dictionary'. wpa2-psk-linksys.cap: This is a sample file with a WPA2 handshake along with some encrypted packets. Useful for testing with airdecap-ng. The password is 'dictionary'. wps2.0.pcap: This is a test file with WPS 2.0 beacon. password.lst and password-2.lst: This is a sample wordlist for WPA key cracking. More wordlists can be found at https://www.aircrack-ng.org/doku.php?id=faq#where_can_i_find_good_wordlists password.db This is a sample airolib-ng database for WPA key cracking. pingreply.c Replies to all ping requests. Useful for testing sniffing/injecting packets with airtun-ng. Chinese-SSID-Name.pcap Contains a beacon with an SSID displayed in Chinese. verify_inject.py Testing DNS requests using airtun-ng. n-02.cap: This is a test file with 802.11X-2004 AES-128-CMAC handshake. Useful for testing with aircrack-ng. The password is 'bo$$password'. test-pmkid.pcap: This is a test file with PMKID. Passphrase for 'WLAN-771698' is 'SP-91862D361' test1.pcap: This is another test file with PMKID. Passphrase for the network 'ogogo' is '15211521' StayAlfred.hccapx: Hashcat HCCAPx file with WPA handshake. Passphrase for 'StayAlfred' ESSID is 'staytogether' wpa3-psk.pcap: WPA3 PSK SAE authentication. Passphrase for the network 'WPA3-Network' is 'abcdefgh' More sample pcap are available from Wireshark: https://wiki.wireshark.org/SampleCaptures#Wifi_.2F_Wireless_LAN_captures_.2F_802.11
Markdown
aircrack-ng/README.md
# Aircrack-ng ## Badges ### GitHub CI [![Alma Linux CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/almalinux.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/almalinux.yml) [![Alpine Linux](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/alpine.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/alpine.yml) [![DragonFlyBSD CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/dragonflybsd.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/dragonflybsd.yml) [![FreeBSD CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/freebsd.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/freebsd.yml) [![Kali Linux CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/kali.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/kali.yml) [![Linux CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/linux.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/linux.yml) [![Linux PCRE CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/linux-pcre.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/linux-pcre.yml) [![macOS CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/macos.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/macos.yml) [![NetBSD CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/netbsd.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/netbsd.yml) [![OpenBSD CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/openbsd.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/openbsd.yml) [![Windows CI](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/windows.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/windows.yml) ### Others [![Clang Scan-build](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/scanbuild.yml/badge.svg)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/scanbuild.yml) [![Codespell](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/codespell.yml/badge.svg)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/codespell.yml) [![Coverity Scan](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/coverity.yml/badge.svg)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/coverity.yml) [![Docker (git) push to DockerHub](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/docker.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/docker.yml) [![Markdown link](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/markdown-link.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/markdown-link.yml) [![PVS-Studio Analysis](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/pvs-studio.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/pvs-studio.yml) [![Style & Consistency](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/style.yml/badge.svg?event=push)](https://github.com/aircrack-ng/aircrack-ng/actions/workflows/style.yml) ### Repository versions ![Arch Linux package](https://img.shields.io/archlinux/v/community/x86_64/aircrack-ng) ![Debian package](https://img.shields.io/debian/v/aircrack-ng/testing?label=debian%20testing) ![Docker Image Version (latest by date)](https://img.shields.io/docker/v/aircrackng/git?color=blue&label=Docker%20Tag%20%7C%20git) ![Fedora package](https://img.shields.io/fedora/v/aircrack-ng) ![homebrew version](https://img.shields.io/homebrew/v/aircrack-ng) ![Ubuntu package](https://img.shields.io/ubuntu/v/aircrack-ng/bionic?label=Ubuntu%2018.04) ![Ubuntu package](https://img.shields.io/ubuntu/v/aircrack-ng/focal?label=Ubuntu%2020.04) ![Ubuntu package](https://img.shields.io/ubuntu/v/aircrack-ng/jammy?label=Ubuntu%2022.04) ![Ubuntu package](https://img.shields.io/ubuntu/v/aircrack-ng/kinetic?label=Ubuntu%2022.10) ![Ubuntu package](https://img.shields.io/ubuntu/v/aircrack-ng/lunar?label=Ubuntu%2023.04) ## Description Aircrack-ng is a complete suite of tools to assess WiFi network security. It focuses on different areas of WiFi security: * Monitoring: Packet capture and export of data to text files for further processing by third party tools. * Attacking: Replay attacks, deauthentication, fake access points and others via packet injection. * Testing: Checking WiFi cards and driver capabilities (capture and injection). * Cracking: WEP and WPA PSK (WPA 1 and 2). All tools are command line which allows for heavy scripting. A lot of GUIs have taken advantage of this feature. It works primarily on Linux but also Windows, macOS, FreeBSD, OpenBSD, NetBSD, as well as Solaris and even eComStation 2. # Building ## Requirements * Autoconf * Automake * Libtool * shtool * OpenSSL development package or libgcrypt development package. * Airmon-ng (Linux) requires ethtool, usbutils, and often pciutils. * 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, DragonFlyBSD, OpenBSD and NetBSD) * FreeBSD, DragonFlyBSD, OpenBSD, NetBSD, Solaris and OS X with Macports: gmake * Linux/Cygwin: make and Standard C++ Library development package (Debian: libstdc++-dev) Note: Airmon-ng only requires pciutils if the system has a PCI/PCIe bus and it is populated. Such bus can be present even if not physically visible. For example, it is present, and populated on the Raspberry Pi 4, therefore pciutils is required on that device. ## Optional stuff * If you want SSID filtering with regular expression in airodump-ng (--essid-regex) PCRE or PCRE2 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 Airpcap SDK instead; see above) * rfkill * If you want Airodump-ng to log GPS coordinates, gpsd is needed * 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 * CMocka and expect for testing * For integration testing on Linux only: tcpdump, HostAPd, WPA Supplicant and screen ## 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, tcpdump, screen, HostAPd and WPA Supplicant should not be dependencies when packaging Aircrack-ng. ### Linux #### Arch Linux sudo pacman -Sy base-devel libnl openssl ethtool util-linux zlib libpcap sqlite pcre2 hwloc cmocka hostapd wpa_supplicant tcpdump screen iw usbutils pciutils expect #### 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 libpcre2-dev libhwloc-dev libcmocka-dev hostapd wpasupplicant tcpdump screen iw usbutils expect #### Fedora sudo yum install libtool pkgconfig sqlite-devel autoconf automake openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel expect #### CentOS/RHEL 7 sudo yum install epel-release sudo ./centos_autotools.sh # Remove older installation of automake/autoconf sudo yum remove autoconf automake sudo yum install sqlite-devel openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel **Note**: autoconf, automake, libtool, and pkgconfig in the repositories are too old. The script centos_autotools.sh automatically installs dependencies to compile then install the tools. #### CentOS/RHEL 8 sudo yum config-manager --set-enabled powertools sudo yum install epel-release sudo yum install libtool pkgconfig sqlite-devel autoconf automake openssl-devel libpcap-devel pcre2-devel rfkill libnl3-devel gcc gcc-c++ ethtool hwloc-devel libcmocka-devel make file expect hostapd wpa_supplicant iw usbutils tcpdump screen zlib-devel #### openSUSE sudo zypper install autoconf automake libtool pkg-config libnl3-devel libopenssl-1_1-devel zlib-devel libpcap-devel sqlite3-devel pcre2-devel hwloc-devel libcmocka-devel hostapd wpa_supplicant tcpdump screen iw gcc-c++ gcc ethtool pciutils usbutils expect #### Mageia sudo urpmi autoconf automake libtool pkgconfig libnl3-devel libopenssl-devel zlib-devel libpcap-devel sqlite3-devel pcre2-devel hwloc-devel libcmocka-devel hostapd wpa_supplicant tcpdump screen iw gcc-c++ gcc make expect #### Alpine sudo apk add gcc g++ make autoconf automake libtool libnl3-dev openssl-dev ethtool libpcap-dev cmocka-dev hostapd wpa_supplicant tcpdump screen iw pkgconf util-linux sqlite-dev pcre2-dev linux-headers zlib-dev pciutils usbutils expect **Note**: Community repository needs to be enabled for iw #### Clear Linux sudo swupd bundle-add c-basic devpkg-openssl devpkg-libgcrypt devpkg-libnl devpkg-hwloc devpkg-libpcap devpkg-pcre2 devpkg-sqlite-autoconf ethtool wget network-basic software-testing sysadmin-basic wpa_supplicant os-testsuite **Note**: hostapd must be compiled manually, it is not present in the repository ### BSD #### FreeBSD pkg install pkgconf shtool libtool gcc9 automake autoconf pcre2 sqlite3 openssl gmake hwloc cmocka #### DragonflyBSD pkg install pkgconf shtool libtool gcc8 automake autoconf pcre2 sqlite3 libgcrypt gmake cmocka #### OpenBSD pkg_add pkgconf shtool libtool gcc automake autoconf pcre2 sqlite3 openssl gmake cmocka #### NetBSD pkg_add pkgconf libtool gcc7 automake autoconf pcre2 sqlite3 openssl gmake cmocka ### macOS XCode, Xcode command line tools and HomeBrew are required. brew install autoconf automake libtool openssl shtool pkg-config hwloc pcre2 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 libpcre2-devel -P libssl-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 pcre2-devel libsqlite-devel ## Docker containers We have two repositories on DockerHub: - [aircrackng/release](https://hub.docker.com/r/aircrackng/release): Each release - [aircrackng/git](https://hub.docker.com/r/aircrackng/git): every commit in the git repository Base command for the `git` version: `sudo docker run --rm -it aircrackng/git` Available platforms/CPU architectures: - linux/386 (base image: debian:unstable-slim) - linux/amd64 (base image: debian:unstable-slim) - linux/arm/v5 (base image: debian:unstable-slim) - linux/arm/v6 (base image: alpine:3) - linux/arm/v7 (base image: debian:unstable-slim) - linux/arm64/v8 (base image: debian:unstable-slim) - linux/mips64le (base image: debian:unstable-slim) - linux/ppc64le (base image: debian:unstable-slim) - linux/riscv64 (base image: debian:unstable-slim) - linux/s390x (base image: debian:unstable-slim) ## 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` * Execute all integration testing (requires root): `make integration` * 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 underruns. Dependency (Debian): duma * **disable-libnl**: Set up the project to be compiled without libnl (1 or 3). Linux option only. * **without-opt**: Do not enable -O3 optimizations. * **enable-shared**: Make 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. * **enable-maintainer-mode**: It is important to enable this flag when developing with Aircrack-ng. This flag enables additional compile warnings and safety features. #### 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 pcre2) ``` ./configure --with-experimental make make check ``` * Compiling on OS X with macports (and all options): ``` ./configure --with-experimental gmake ``` * Compiling on macOS running on M1/AARCH64 and Homebrew: ``` autoreconf -vif env CPPFLAGS="-Wno-deprecated-declarations" ./configure --with-experimental make make check ``` * 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 gcc9 ``` env CC=gcc9 CXX=g++9 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 8 ``` autoreconf -i env CC=gcc8 CXX=g++8 MAKE=gmake ./configure --with-experimental --with-gcrypt gmake ``` * Compiling on OpenBSD (with autoconf 2.69 and automake 1.16) ``` export AUTOCONF_VERSION=2.69 export AUTOMAKE_VERSION=1.16 autoreconf -i env MAKE=gmake CC=cc CXX=c++ ./configure gmake ``` * Compiling and debugging aircrack-ng ``` export CFLAGS='-O0 -g' export CXXFLAGS='-O0 -g' ./configure --with-experimental --enable-maintainer-mode --without-opt make LD_LIBRARY_PATH=.libs gdb --args ./aircrack-ng [PARAMETERS] ``` # IDE development ## VS Code - devcontainers A VS Code development environment is provided, as is, for rapid setup of a development environment. This additionally adds support for GitHub Codespaces. ### Requirements The first requirement is a working [Docker Engine](https://docs.docker.com/engine/install/) environment. Next, an installation of [VS Code](https://code.visualstudio.com/) with the following extension(s): - [`Remote - Containers`](https://marketplace.visualstudio.com/items?itemName=ms-vscode-remote.remote-containers) by Microsoft. > The "Remote - Containers" extension will refuse to work with OSS Code. ### Usage 1. Clone this repository to your working folder: ``` $ git clone --recursive https://github.com/aircrack-ng/aircrack-ng.git $ cd aircrack-ng ``` 2. After cloning this repository, open the folder inside VS Code. ``` $ code . ``` > IMPORTANT: You should answer "Yes", if it asks if the folder should be opened inside a remote container. If it does not ask, then press `Ctrl+Shift+P` and type `open in container`. This should bring up the correct command, for which pressing enter will run said command. 3. A number of warnings might appear about a missing `compile_commands.json` file. These are safe to ignore for a moment, as this file is automatically generated after the initial compilation. 4. Now build the entire project by pressing `Ctrl+R` and selecting `Build Full` from the pop-up menu that appears. 5. VS Code should detect the `compile_commands.json` file and ask if it should be used; selecting "Yes, always" will complete the initial setup of a fully working IDE. > IMPORTANT: If it doesn't detect the file, pressing `Ctrl+Shift+P` and typing `reload window` will bring up the selection to fully reload the environment. 6. At this point, nearly all features of VS Code will function; from Intellisense, auto-completion, live documentation, to code formatting. Additionally, there are pre-configured tasks for builds and tests, as well as an example GDB/LLDB configuration for debugging `aircrack-ng`. # 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 pre-compiled binaries ## Linux/BSD Aircrack-ng is available in most distributions repositories. However, it is not always up-to-date. ## Windows * Install the appropriate "monitor" driver for your card; standard drivers don't work for capturing data. * Aircrack-ng suite is command line tools. So, you have to open a command-line `Start menu -> Run... -> cmd.exe` then use them * Run the executables without any parameters to have help # Documentation Some more information is present in the [README](README) file. Documentation, tutorials, ... can be found on https://aircrack-ng.org Support is available in the [GitHub Discussions](https://github.com/aircrack-ng/aircrack-ng/discussions) and on IRC (in #aircrack-ng on Libera Chat). Every tool has its own manpage. For aircrack-ng, `man aircrack-ng` # Infrastructure sponsors
Markdown
aircrack-ng/SECURITY.md
# Security Policy Although we do our best to prevent vulnerabilities, and have tools to help catch most of them, we are humans after all, and there will be inevitably issues slipping through the cracks. They can fall into two categories, either in any of the tools in the Aircrack-ng suite, or in our presence online (website, forum, emails, DNS, etc.). Depending on which category they fall into, different information is needed. We do believe in coordinated disclosure, so in order to address them, and coordinate disclosure with you (and properly credit you for the discovery), report them to us. Do not open bug reports or pull requests. Our contact email for security issues is security@aircrack-ng.org If you are unsure how to proceed, need clarifications or have questions or remarks about this policy, feel free to email us to inquire. ## Aircrack-ng suite vulnerabilities ### Supported versions We only support the latest stable present on https://aircrack-ng.org For security issues present in our GitHub repository (master or any recently active branch), open a pull request or bug report. For any security issue affecting older versions of Aircrack-ng still present in currently supported Linux or BSD distributions, file a report with them, and email us a short description of the vulnerability along with a link to the bug report. ### Reporting There is no particular template to report the vulnerabilities. Keep in mind that a vulnerability is essentially a bug, so please provide us detailed information on how to reproduce it, such as: - Which Aircrack-ng tools are affected? And how? Any proof of concept to demonstrate it? - Operating systems involved, kernel versions (`uname -a` and `lsb_release -a` for example). - CPU architecture (`aircrack-ng -u` output is useful); a vulnerability on a x86 32 bit may not be exploitable on ARM 64 bit. A bug may also only be present when Aircrack-ng is compiled a certain way. - All the commands needed to trigger the issue. - Did you compile it yourself or did you get it from a package? - What equipment did you use? A packet capture may be useful; different equipment behaves differently, they have different Wi-Fi stacks, drivers, and firmwares. - A patch to fix the issue, if available. - If CVE numbers have been assigned, please provide them as well. ### Public disclosure Although it is essentially a bug, do not submit a bug report or a pull request, but email us the data first, so we can coordinate fixing the issue and assist you in filing the bug reports, and if you provided a patch, the pull request; a patch may need to be broken down in multiple commits for clarity, for example. ## Online presence For any security issue affecting us specifically (any aircrack-ng.org subdomain) such as misconfiguration of our hosting, DNS, email, servers, or misconfiguration of the software we are using, email us with all the details regarding your findings. Anything else should be reported to the author or provider of the software, hardware, or hosting.
JSON
aircrack-ng/.devcontainer/devcontainer.json
// For format details, see https://aka.ms/devcontainer.json. For config options, see the README at: // https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/cpp { "name": "Aircrack-ng", "build": { "dockerfile": "Dockerfile", // Update 'VARIANT' to pick an Debian / Ubuntu OS version: debian-10, debian-9, ubuntu-20.04, ubuntu-18.04 "args": { "VARIANT": "ubuntu-22.04" } }, "runArgs": [ "--cap-add=SYS_PTRACE", "--security-opt", "seccomp=unconfined" ], // Configure tool-specific properties. "customizations": { // Configure properties specific to VS Code. "vscode": { // Set *default* container specific settings.json values on container create. "settings": { "terminal.integrated.defaultProfile.linux": "bash", "editor.formatOnSave": true, "clang-format.executable": "/usr/local/bin/clang-format", "clang-format.fallbackStyle": "none", "clang-format.assumeFilename": "${file}", "clang-format.style": "file", "editor.defaultFormatter": "llvm-vs-code-extensions.vscode-clangd", "clangd.path": "/usr/bin/clangd-14", "C_Cpp.clang_format_fallbackStyle": "none", "C_Cpp.clang_format_path": "/usr/local/bin/clang-format", "C_Cpp.clang_format_style": "file", "C_Cpp.formatting": "clangFormat" }, // Add the IDs of extensions you want installed when the container is created. "extensions": [ "ms-vscode.cpptools", "xaver.clang-format", "llvm-vs-code-extensions.vscode-clangd" ] } }, // Use 'forwardPorts' to make a list of ports inside the container available locally. // "forwardPorts": [], // Use 'postCreateCommand' to run commands after the container is created. "postCreateCommand": "pre-commit install --install-hooks", // Comment out to connect as root instead. More info: https://aka.ms/vscode-remote/containers/non-root. "remoteUser": "vscode" }
aircrack-ng/.devcontainer/Dockerfile
# See here for image contents: https://github.com/microsoft/vscode-dev-containers/tree/v0.154.2/containers/cpp/.devcontainer/base.Dockerfile # [Choice] Debian / Ubuntu version: debian-10, debian-9, ubuntu-20.04, ubuntu-18.04 ARG VARIANT FROM mcr.microsoft.com/vscode/devcontainers/cpp:0-${VARIANT} # hadolint ignore=DL3003,DL3008 RUN apt-get update \ && export DEBIAN_FRONTEND=noninteractive \ && apt-get -y install --no-install-recommends \ 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 libpcre2-dev libhwloc-dev \ libcmocka-dev hostapd wpasupplicant tcpdump screen iw usbutils expect gawk bear \ libtinfo5 \ clangd-14 \ clang-format-14 \ python3-pip \ && rm -rf /var/lib/apt/lists/* \ && /usr/bin/pip3 install pre-commit
Markdown
aircrack-ng/.github/ISSUE_TEMPLATE/bug_report.md
--- name: Bug report about: Used to report a defect in the source code, scripts, website, documentation, etc... Post questions in the GitHub Discussions tab - Read our documentation at https://aircrack-ng.org --- <!-- **Bug reports will only be accepted against the current tip of the master git branch. Anything else will be rejected. Questions must be posted in the discussion board at <https://github.com/aircrack-ng/aircrack-ng/discussions>.** For any security-related issues such as exploits, buffer overflows, and such, refer to our security policy: <https://github.com/aircrack-ng/aircrack-ng/security/policy> Please read the following before reporting the issue: - Use the search function to check if the bug you're about to post isn't a duplicate. If an existing bug is open and you have new information, update it. If a bug exists and is closed, reopen it and add useful information to it. - Unless bugs are linked, one bug per ticket. - Don't worry about any of the items on the right panel (Assignee, Labels or Milestone), we will take care of them. The following must be taken to the GitHub Discussions first, as in these cases, it often turns out to be a technique issue or the issue is out of our control: - Not receiving any packets with airodump-ng or any other tool. - Can't crack a network. - Wireless card doesn't work. - Channel -1. Make sure to check our documentation at <https://aircrack-ng.org/doku.php> as well as our fairly comprehensive FAQ at <https://aircrack-ng.org/doku.php?id=faq>. **REMOVE ALL OF THE ABOVE TEXT** --> # Defect Report ## Issue type <!-- Please select from one of the following software defect descriptions. Pick the one(s) that best reflects the issue you are experiencing. Erase the others. --> - [ ] Defect - Compilation or `make check` issue - Attach `config.log` and provide relevant system information such as `lscpu` - Make sure dependencies are installed - [ ] Defect - Crash - [ ] Defect - Incorrect value displayed/received/stored - [ ] Defect - Unexpected behavior (obvious or confirmed in the GitHub Discussions) ## System information <!-- On Linux, OS version can often be found in /etc/os-release. On Debian-based you may use `lsb_release -i` for "OS Name", `lsb_release -r` for "OS version". Copy and paste the output of `uname -a` in Kernel version. CPU information can be gathered with `lscpu`, or `cat /proc/cpuinfo` Wireless card and chipset information is displayed with `airmon-ng`. If it doesn't display anything, add information from `lspci`, `lsusb`, and `sudo lshw -c network -sanitize`. The wireless adapter can also be found in dmesg. --> - OS Name: - OS Version: - Kernel version: - CPU: - Wireless card and chipset (if relevant): ## Aircrack-ng version <!-- For the aircrack-ng version, run `aircrack-ng | head`, it will be displayed right after 'Aircrack-ng'. When compiled from git, the short SHAsum (7 characters long) will be shown right after the version number. Don't say 'Latest' for the version, this is not helpful as it changes over time. --> - Version: - Commit Revision hash: ## Airmon-ng debug information <!-- If the issue is related to packet capture or injection, run `airmon-ng --debug` and post the output here. Please make sure to enclose with backticks for readability. --> ## Defect ### Details <!-- Summarize the issue in a paragraph or two. If you need to provide output of the different tools, or commands, file content, etc, use the backticks to enclose the text. Only post pictures if the issues when it cannot be avoided. --> ### How to reproduce the issue <!-- A clear and concise list of steps describing how to reproduce the issue, relevant commands and errors/outputs. Such as: What command(s) did you run? What was displayed/happened? What did you expect to happen or be displayed? Do not use pastebin-type links as they expire, rendering the bug report unactionable. Avoid using images whenever possible. If the content (output or error) is text and can be copy/pasted, enclose it with backticks for readability. If it is large, put it in a file and attach it to the ticket. GitHub markdown guide: https://guides.github.com/features/mastering-markdown/ Last, but not least, if you aren't familiar with bug reporting, [this](https://www.chiark.greenend.org.uk/~sgtatham/bugs.html) is an excellent read to help you describe bugs accurately. --> ## Related issues <!-- Link to any related issue from within the project or outside. Such as GitHub, other bug trackers, relevant GitHub Discussion post, relevant documentation. -->
YAML
aircrack-ng/.github/ISSUE_TEMPLATE/config.yml
blank_issues_enabled: false contact_links: - name: Website url: https://aircrack-ng.org - name: Support url: https://github.com/aircrack-ng/aircrack-ng/discussions about: We provide support in Discussion section. - name: Documentation url: https://aircrack-ng.org/doku.php about: Comprehensive documentation (for each tool, as well as tutorials, and other resources) - name: Frequently Asked Questions url: https://aircrack-ng.org/doku.php?id=faq - name: GitHub Markdown guide url: https://guides.github.com/features/mastering-markdown/ about: Proper formatting is important to distinguish the explanation in the bug report from the commands and their output - name: How to Report Bugs Effectively url: https://www.chiark.greenend.org.uk/~sgtatham/bugs.html about: By Simon Tatham
Markdown
aircrack-ng/.github/ISSUE_TEMPLATE/feature_request.md
--- name: Feature request about: Suggest an idea for this project --- Please read the following: - Always test with current git master before opening a feature request - Use the search function to see if the feature you're about to request isn't a duplicate. If an existing issue is open and you have new information, update it - One feature/topic request per ticket - Don't worry about any of the items on the right panel (Assignee, Labels or Milestone), we will take care of them **REMOVE ALL OF THE ABOVE TEXT** # Description Describe the feature/topic. Even though the following is more geared toward bug reporting, it is an excellent read to provide useful details: https://www.chiark.greenend.org.uk/~sgtatham/bugs.html If output/file content is relevant, add an example enclosed in backticks. GitHub markdown guide: https://guides.github.com/features/mastering-markdown/
YAML
aircrack-ng/.github/workflows/almalinux.yml
name: Alma Linux CI on: push: branches: - 'master' paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/kali.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' pull_request: branches: [ master ] paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' jobs: lint: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" alma: runs-on: ubuntu-22.04 needs: lint steps: - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build on linux/amd64 uses: docker/build-push-action@v3 with: platforms: linux/amd64 build-args: IMAGE_BASE=almalinux:9 push: false
YAML
aircrack-ng/.github/workflows/alpine.yml
name: Alpine Linux CI on: push: branches: - 'master' paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' pull_request: branches: - 'master' paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' jobs: lint: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" alpine: runs-on: ubuntu-22.04 needs: lint steps: - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build on linux/amd64 and linux/386 uses: docker/build-push-action@v3 with: platforms: linux/amd64, linux/386 build-args: IMAGE_BASE=alpine:3 push: false
YAML
aircrack-ng/.github/workflows/check-release-ready.yml
name: Release readiness on: push: branches: [ master ] paths: - '.github/workflows/check-release-ready.yml' pull_request: branches: [ master ] paths: - '.github/workflows/check-release-ready.yml' workflow_dispatch: jobs: release-ready: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Get last git tag id: git run: | CUR_TAG=$(git ls-remote --tags https://github.com/aircrack-ng/aircrack-ng | awk -F/ '{print $3}' | grep -E '^[0-9]\.' | sort -V | tail -n 1) echo "LAST=${CUR_TAG}" >> $GITHUB_OUTPUT echo "Tag: ${CUR_TAG} - Date: ${TAG_DATE}" - name: Get Changelog information id: changelog run: | LAST_VER=$(head -n 1 ChangeLog | awk '{print $2}') echo "LAST_VER=${LAST_VER}" >> $GITHUB_OUTPUT CHANGES_FROM=$(head -n 1 ChangeLog | awk '{print $6}' | awk -F\) '{print $1}') echo "CHANGES_FROM=${CHANGES_FROM}" >> $GITHUB_OUTPUT REL_DATE=$(head -n 1 ChangeLog | awk '{print $9 " " $10 " " $11}' | sed 's/.$//') echo "REL_DATE=${REL_DATE}" >> $GITHUB_OUTPUT ENTRIES=0 [ -n "$(head -n 2 ChangeLog | tail -n 1 | grep -E '^* ')" ] && ENTRIES=1 echo "ENTRIES=${ENTRIES}" >> $GITHUB_OUTPUT echo "Last: ${LAST_VER} - From: ${CHANGES_FROM} - Date: ${REL_DATE} - Entries present:${ENTRIES}" - name: Get info from configure id: configure run: | VERSION_MAJOR=$(grep 'm4_define(\[version_major\],' configure.ac | awk '{print $2}' | awk -F\) '{print $1}') VERSION_MINOR=$(grep 'm4_define(\[version_minor\],' configure.ac | awk '{print $2}' | awk -F\) '{print $1}') VERSION_MICRO=$(grep 'm4_define(\[version_micro\],' configure.ac | awk '{print $2}' | awk -F\) '{print $1}') if [ "${VERSION_MICRO}" -gt 0 ]; then echo "VERSION=${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO}" >> $GITHUB_OUTPUT else echo "VERSION=${VERSION_MAJOR}.${VERSION_MINOR}" >> $GITHUB_OUTPUT fi VERSION_DATE=$(grep 'm4_define(\[version_date\],' configure.ac | awk -F\" '{print $2}') echo "VERSION_DATE=${VERSION_DATE}" >> $GITHUB_OUTPUT echo "Version: ${VERSION_MAJOR}.${VERSION_MINOR}.${VERSION_MICRO} - Date: ${VERSION_DATE}" - name: Get copyright dates in some tools id: copyright run: | set -e for tool in airodump-ng aircrack-ng airbase-ng aireplay-ng; do echo "Checking ${tool}" LICENSE=$(grep Copyright src/${tool}/${tool}.c | grep $(date +%Y) || true) HELP=$(grep ' - (C) ' src/${tool}/${tool}.c | grep $(date +%Y) || true) if [ -z "${LICENSE}" ] || [ -z "${HELP}" ]; then echo "${tool}=0" >> $GITHUB_OUTPUT else echo "${tool}=1" >> $GITHUB_OUTPUT fi echo "- ${tool}: ${LICENSE} --- ${HELP}" done set +e - name: Check for iw update id: iw run: | IW_URL=$(grep -E '^IW_SOURCE=' scripts/airmon-ng.linux | awk -F\" '{print $2}' | xargs dirname) wget ${IW_URL} -O index.html CUR_IW=$(grep '<a href="iw' index.html | grep 'xz' | awk -F\" '{print $2}' | sort -V | tail -n 1) AIRMON_IW=$(echo ${IW_URL} | xargs basename) if [ "${CUR_IW}" = "${AIRMON_IW}" ]; then echo "update=0" >> $GITHUB_OUTPUT else echo "update=1" >> $GITHUB_OUTPUT fi rm -f index.html - name: Check for hostapd updates id: hostapd run: | wget https://w1.fi/hostapd/ LATEST_HOSTAPD=$(grep '.tar.gz' index.html | awk -F\" '{print $2}' | xargs basename) README_HOSTAPD=$(grep -E '^tar' patches/wpe/hostapd-wpe/README.md | awk '{print $3}' | sed 's/\r//') FILE_HOSTAPD=$(ls -1 patches/wpe/hostapd-wpe/ | grep hostapd) FILE_HOSTAPD=${FILE_HOSTAPD%-wpe.patch} if [ "${LATEST_HOSTAPD}" = "${README_HOSTAPD}" ]; then echo "readme=0" >> $GITHUB_OUTPUT else echo "readme=1" >> $GITHUB_OUTPUT fi if [ "${LATEST_HOSTAPD}" = "${FILE_HOSTAPD}.tar.gz" ]; then echo "file=0" >> $GITHUB_OUTPUT else echo "file=1" >> $GITHUB_OUTPUT fi rm -f index.html - name: Check for freeradius updates id: freeradius run: | wget https://github.com/FreeRADIUS/freeradius-server/releases.atom LATEST=$(grep '<title>' releases.atom | grep -v Release | sort -V | tail -n 1 | awk -F\> '{print $2}' | awk -F\< '{print $1}') # freeradius-server-${VERSION}-wpe.diff FR_FILENAME=$(ls -1 patches/wpe/freeradius-wpe/ | grep freeradius) README=$(grep -i 'updated patch' patches/wpe/freeradius-wpe/README.md | awk '{print $5}') if [ "freeradius-server-${LATEST}-wpe.diff" = "${FR_FILENAME}" ]; then echo "file=0" >> $GITHUB_OUTPUT else echo "file=1" >> $GITHUB_OUTPUT fi if [ "${LATEST}" = "${README}" ]; then echo "readme=0" >> $GITHUB_OUTPUT else echo "readme=1" >> $GITHUB_OUTPUT fi rm releases.atom - name: Check all the things run: | DO_FAIL=0 if [ "${{steps.changelog.outputs.LAST_VER}}" = "${{steps.git.outputs.LAST}}" ]; then echo "[!] Changelog: missing new version" DO_FAIL=1 fi if [ "${{steps.changelog.outputs.CHANGES_FROM}}" != "${{steps.git.outputs.LAST}}" ]; then echo "[!] Changelog: Invalid 'changes from' version" DO_FAIL=1 fi if [ "${{steps.changelog.outputs.ENTRIES}}" -eq 0 ]; then echo '[!] Changelog: Missing entries' DO_FAIL=1 fi date --date="${{steps.changelog.outputs.REL_DATE}}" >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "[!] Changelog: Invalid release date" DO_FAIL=1 fi date --date="1 ${{steps.configure.outputs.VERSION_DATE}}" >/dev/null 2>&1 if [ $? -ne 0 ]; then echo "[!] Configure: Invalid release date" DO_FAIL=1 fi if [ "${{steps.configure.outputs.VERSION }}" = "${{steps.git.outputs.LAST}}" ]; then echo "[!] Version and date in configure.ac must be updated" DO_FAIL=1 fi if [ "${{steps.copyright.outputs.airodump-ng }}" -eq 0 ]; then echo "[!] Missing copyrights in airodump-ng license/help screen" DO_FAIL=1 fi if [ "${{steps.copyright.outputs.aircrack-ng }}" -eq 0 ]; then echo "[!] Missing copyrights in aircrack-ng license/help screen" DO_FAIL=1 fi if [ "${{steps.copyright.outputs.airbase-ng }}" -eq 0 ]; then echo "[!] Missing copyrights in airbase-ng license/help screen" DO_FAIL=1 fi if [ "${{steps.copyright.outputs.aireplay-ng }}" -eq 0 ]; then echo "[!] Missing copyrights in aireplay-ng license/help screen" DO_FAIL=1 fi if [ "${{steps.iw.outputs.update }}" -eq 1 ]; then echo "[!] Airmon-ng: An updated version of iw is available" DO_FAIL=1 fi if [ "${{steps.hostapd.outputs.readme}}" = '1' ]; then echo "[!] Hostapd-WPE: README.md needs an update" DO_FAIL=1 fi if [ "${{steps.hostapd.outputs.file}}" = '1' ]; then echo "[!] Hostapd-WPE: patch needs an update" DO_FAIL=1 fi if [ "${{steps.freeradius.outputs.readme}}" = '1' ]; then echo "[!] Freeradius-WPE: README.md needs an update" DO_FAIL=1 fi if [ "${{steps.freeradius.outputs.file}}" = '1' ]; then echo "[!] Freeradius-WPE: patch needs an update" DO_FAIL=1 fi [ ${DO_FAIL} -eq 1 ] && exit 1 build-other-linux: needs: release-ready uses: ./.github/workflows/manual.yml build-gentoo: needs: release-ready uses: ./.github/workflows/gentoo.yml
YAML
aircrack-ng/.github/workflows/codespell.yml
name: Codespell on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] pull_request: branches: [ master ] jobs: codespell: name: Codespell spell checker runs-on: ubuntu-latest steps: - uses: actions/checkout@v3 with: submodules: 'recursive' - name: Install dependencies run: sudo apt update -y && sudo apt install -y codespell - name: Run codespell run: codespell
YAML
aircrack-ng/.github/workflows/coverity.yml
name: Coverity Scan on: workflow_dispatch: schedule: - cron: "0 */12 * * *" jobs: coverity: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 with: fetch-depth: 0 - name: Compare revision on Coverity Scan and git id: compare run: | wget https://scan.coverity.com/projects/aircrack-ng COV_REV=$(grep '<p>Version:' aircrack-ng | awk '{print $2}' | cut -b 1-30) echo "Coverity revision: ${COV_REV}" [ -z "${COV_REV}" ] && exit 1 CUR_REV=$(git rev-parse HEAD | cut -b 1-30) echo "Current git revision: ${CUR_REV}" SKIP=false if [ ${COV_REV} == ${CUR_REV} ] || [ -z "$(git diff --name-only ${COV_REV}..HEAD -- . | grep -v -f .coverityignore | grep -v coverityignore)" ]; then SKIP=true fi echo "skip=${SKIP}" >> $GITHUB_OUTPUT - name: Prepare build if: steps.compare.outputs.skip == 'false' run: | autoreconf -vif ./configure --with-experimental --enable-maintainer-mode make clean - name: Build and upload to Coverity Scan uses: vapier/coverity-scan-action@v1 if: steps.compare.outputs.skip == 'false' with: project: Aircrack-ng command: make check email: ${{ secrets.COVERITY_SCAN_EMAIL }} token: ${{ secrets.COVERITY_SCAN_TOKEN }} version: ${{ github.sha }} description: "Git revision: ${{ github.sha }}"
YAML
aircrack-ng/.github/workflows/docker-release.yml
name: Docker build on release on: push: tags: - '*' jobs: docker-release: runs-on: ubuntu-latest strategy: fail-fast: false matrix: platform: [ linux/386, linux/amd64, linux/arm/v5, linux/arm/v7, linux/arm64/v8, linux/mips64le, linux/ppc64le, linux/riscv64, linux/s390x ] steps: - name: Checkout uses: actions/checkout@v3 - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push uses: docker/build-push-action@v3 with: platforms: ${{ matrix.platform }} build-args: GITHUB_REF_NAME file: Dockerfile.release push: true tags: | aircrackng/release:${{ github.ref_name }}
YAML
aircrack-ng/.github/workflows/docker.yml
name: Docker (git) push to DockerHub on: push: branches: - 'master' paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' workflow_dispatch: jobs: lint: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" x86: runs-on: ubuntu-22.04 needs: lint steps: - name: Git Checkout uses: actions/checkout@v3 - name: Shorten git revision uses: rlespinasse/shortify-git-revision@v1 with: name: GITHUB_SHA - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push on linux/amd64 uses: docker/build-push-action@v3 #continue-on-error: true with: platforms: linux/amd64 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/386 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/386 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} armv5-6: runs-on: ubuntu-22.04 needs: lint steps: - name: Git Checkout uses: actions/checkout@v3 - name: Shorten git revision uses: rlespinasse/shortify-git-revision@v1 with: name: GITHUB_SHA - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push on linux/arm/v5 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/arm/v5 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/arm/v6 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/arm/v6 build-args: IMAGE_BASE=alpine:3 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} arm: runs-on: ubuntu-22.04 needs: lint steps: - name: Git Checkout uses: actions/checkout@v3 - name: Shorten git revision uses: rlespinasse/shortify-git-revision@v1 with: name: GITHUB_SHA - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push on linux/arm/v7 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/arm/v7 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/arm64/v8 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/arm64/v8 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} others: runs-on: ubuntu-22.04 needs: lint steps: - name: Git Checkout uses: actions/checkout@v3 - name: Shorten git revision uses: rlespinasse/shortify-git-revision@v1 with: name: GITHUB_SHA - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Login to Docker Hub if: github.event_name != 'pull_request' uses: docker/login-action@v2 with: username: ${{ secrets.DOCKERHUB_USERNAME }} password: ${{ secrets.DOCKERHUB_TOKEN }} - name: Build and push on linux/mips64le uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/mips64le push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/ppc64le uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/ppc64le push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/riscv64 uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/riscv64 push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }} - name: Build and push on linux/s390x uses: docker/build-push-action@v3 continue-on-error: true with: platforms: linux/s390x push: ${{ github.event_name != 'pull_request' }} tags: | aircrackng/git:latest aircrackng/git:${{ env.GITHUB_SHA_SHORT }}
YAML
aircrack-ng/.github/workflows/dragonflybsd.yml
name: DragonFlyBSD CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.linux' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.linux' env: LANG: en_US.UTF-8 TZ: UTC MAKE: gmake jobs: dragonflybsd: runs-on: macos-12 strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ flags: - name: OpenSSL flags: "" name: DragonFlyBSD ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} id: build uses: vmactions/dragonflybsd-vm@v0 with: envs: 'LANG TZ MAKE' usesh: true sync: rsync copyback: false prepare: | pkg install -y git pkgconf shtool libtool ${{ matrix.compiler.cc }} automake autoconf pcre2 sqlite3 gmake cmocka run: | export CC="${{ matrix.compiler.cc }}" export CXX="${{ matrix.compiler.cxx }}" alias nproc='sysctl -n hw.ncpu' CPUS=$(nproc) git config --global --add safe.directory /Users/runner/work/aircrack-ng/aircrack-ng echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ./configure --enable-maintainer-mode --with-experimental --without-opt || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" gmake -j ${CPUS} echo "::endgroup::" echo "::group::run tests" gmake -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::"
YAML
aircrack-ng/.github/workflows/freebsd.yml
name: FreeBSD CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.linux' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.linux' env: LANG: en_US.UTF-8 TZ: UTC MAKE: gmake jobs: freebsd: runs-on: macos-12 strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ flags: - name: OpenSSL flags: "" name: FreeBSD ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} id: build uses: vmactions/freebsd-vm@v0 with: envs: 'LANG TZ MAKE' usesh: true sync: rsync copyback: false prepare: | pkg install -y git pkgconf shtool libtool gcc automake autoconf pcre2 sqlite3 openssl gmake hwloc cmocka run: | export CC="${{ matrix.compiler.cc }}" export CXX="${{ matrix.compiler.cxx }}" alias nproc='sysctl -n hw.ncpu' CPUS=$(nproc) git config --global --add safe.directory /Users/runner/work/aircrack-ng/aircrack-ng echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ./configure --enable-maintainer-mode --with-experimental --without-opt || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" gmake -j ${CPUS} echo "::endgroup::" echo "::group::run tests" gmake -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::"
YAML
aircrack-ng/.github/workflows/gentoo.yml
name: Gentoo CI on: push: branches: [ master ] paths: - '.github/workflows/gentoo.yml' pull_request: branches: [ master ] paths: - '.github/workflows/gentoo.yml' workflow_call: workflow_dispatch: jobs: gentoo: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build on linux/amd64 uses: docker/build-push-action@v3 with: platforms: linux/amd64 build-args: "IMAGE_BASE=gentoo/stage3" push: false
YAML
aircrack-ng/.github/workflows/irc.yml
name: IRC notifications on: [push, pull_request, create, issues] jobs: notification: runs-on: ubuntu-22.04 name: IRC Notification steps: - name: Skip if not aircrack-ng/aircrack-ng run: | if [ "${{ github.repository }}" != 'aircrack-ng/aircrack-ng' ]; then exit 1 fi # If 2 consecutive calls happen, the second one can fail as # it's not able to get the username requested - name: Generate random username id: random run: | USERNAME=$(mktemp -u | awk -F. '{print "gh-a-ng-" $2}') echo "username=${USERNAME}" >> $GITHUB_OUTPUT - name: Commit uses: Gottox/irc-message-action@v2.1.3 if: github.event_name == 'push' with: channel: '#aircrack-ng' nickname: ${{steps.random.outputs.username}} message: |- Commit by ${{ github.actor }}: ${{ github.event.compare }} ${{ join(github.event.commits.*.message) }} - name: Pull Request Created uses: Gottox/irc-message-action@v2.1.3 if: github.event_name == 'pull_request' with: channel: '#aircrack-ng' nickname: ${{steps.random.outputs.username}} message: |- New pull request #${{ github.event.number }} by ${{ github.actor }}: ${{ github.event.pull_request.title }} - ${{ github.event.pull_request.html_url }} - name: Issue created uses: Gottox/irc-message-action@v2.1.3 if: github.event_name == 'issues' && github.event.action == 'opened' && github.event.issue.draft == false with: channel: '#aircrack-ng' nickname: ${{steps.random.outputs.username}} message: |- New issue #${{github.event.issue.number}} (${{github.event.issue.url}}) by ${{ github.actor }}: ${{github.event.issue.title}} () - name: New tag/release uses: Gottox/irc-message-action@v2.1.3 if: github.event_name == 'create' && github.event.ref_type == 'tag' with: channel: '#aircrack-ng' nickname: ${{steps.random.outputs.username}} message: |- New release in GitHub: ${{ github.event.ref }}
YAML
aircrack-ng/.github/workflows/kali.yml
name: Kali Linux CI on: push: branches: - 'master' paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' pull_request: branches: [ master ] paths-ignore: - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - 'apparmor/**' - 'contrib/**' - 'manpages/**' - 'patches/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AUTHORS' - 'ChangeLog' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'centos_autotools.sh' - 'scripts/airmon-ng.freebsd' jobs: lint: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" kali: runs-on: ubuntu-22.04 needs: lint steps: - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build on linux/amd64 uses: docker/build-push-action@v3 with: platforms: linux/amd64 build-args: IMAGE_BASE=kalilinux/kali-rolling:latest push: false
YAML
aircrack-ng/.github/workflows/linux-pcre.yml
name: Linux PCRE CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - test/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - test/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' env: LANG: en_US.UTF-8 TZ: UTC jobs: ubuntu_22_04: runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ - cc: clang cxx: clang++ flags: - name: OpenSSL flags: "" name: Ubuntu 22.04 ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - uses: actions/cache@v3 id: cache if: ${{ env.ACT != 'true' }} with: path: | /home/runner/.ccache key: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}-${{ hashFiles('.github/workflows/linux-pcre.yml') }} restore-keys: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} - name: Install dependencies run: | SUDO="$([ "$ACT" = "true" ] || echo sudo)" $SUDO apt update -q $SUDO apt-get install -y git autoconf automake build-essential ccache ethtool expect hostapd iw lcov libcmocka-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libpcap-dev libpcre3-dev libsqlite3-dev libssl-dev libtool pkg-config rfkill screen shtool tcpdump usbutils wpasupplicant zlib1g-dev - name: Ccache stats before builds run: | ccache -s - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} env: AM_COLOR_TESTS: always run: | CPUS=$(nproc) case "${{ matrix.compiler.cc }}" in clang) CC=clang CXX=clang++ export CFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" ;; *) CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} export CFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" ;; esac export CC="ccache $CC" export CXX="ccache $CXX" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" mkdir linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} cd linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ../configure --without-opt --with-experimental --enable-maintainer-mode ${{ matrix.flags.flags }} || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" make -j ${CPUS} echo "::endgroup::" cd .. - name: Ccache stats after builds run: | ccache -s ubuntu_20_04: runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ - cc: clang cxx: clang++ flags: - name: OpenSSL flags: "" name: Ubuntu 20.04 ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - uses: actions/cache@v3 id: cache if: ${{ env.ACT != 'true' }} with: path: | /home/runner/.ccache key: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}-${{ hashFiles('.github/workflows/linux-pcre.yml') }} restore-keys: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} - name: Install dependencies run: | sudo apt update -q sudo apt-get install -y autoconf automake build-essential ccache ethtool expect hostapd iw lcov libcmocka-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libpcap-dev libpcre3-dev libsqlite3-dev libssl-dev libtool pkg-config rfkill screen shtool tcpdump usbutils wpasupplicant zlib1g-dev - name: Ccache stats before builds run: | ccache -s - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} env: AM_COLOR_TESTS: always run: | CPUS=$(nproc) export CC="ccache ${{ matrix.compiler.cc }}" export CXX="ccache ${{ matrix.compiler.cxx }}" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" mkdir linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} cd linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ../configure --without-opt --with-experimental --enable-maintainer-mode ${{ matrix.flags.flags }} || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" make -j ${CPUS} echo "::endgroup::" cd .. - name: Ccache stats after builds run: | ccache -s
YAML
aircrack-ng/.github/workflows/linux.yml
name: Linux CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.freebsd' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.freebsd' env: LANG: en_US.UTF-8 TZ: UTC jobs: ubuntu_22_04: runs-on: ubuntu-22.04 strategy: fail-fast: false matrix: compiler: - cc: gcc-12 cxx: g++-12 - cc: gcc-11 cxx: g++-11 - cc: gcc-10 cxx: g++-10 - cc: gcc-9 cxx: g++-9 - cc: clang-11 cxx: clang++-11 - cc: clang-12 cxx: clang++-12 - cc: clang-13 cxx: clang++-13 - cc: clang-14 cxx: clang++-14 flags: - name: Gcrypt flags: "--with-gcrypt" - name: OpenSSL flags: "" name: Ubuntu 22.04 ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - uses: actions/cache@v3 id: cache if: ${{ env.ACT != 'true' }} with: path: | /home/runner/.ccache key: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}-${{ hashFiles('.github/workflows/linux.yml') }} restore-keys: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} - name: Install dependencies run: | SUDO="$([ "$ACT" = "true" ] || echo sudo)" $SUDO apt update -q $SUDO apt-get install -y git ${{ matrix.compiler.cc }} ${{ matrix.compiler.cxx }} autoconf automake build-essential ccache ethtool expect hostapd iw lcov libcmocka-dev libgcrypt20-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libpcap-dev libpcre2-dev libsqlite3-dev libssl-dev libtool pkg-config rfkill screen shtool tcpdump usbutils wpasupplicant zlib1g-dev - name: Ccache stats before builds run: | ccache -s - name: Initialize CodeQL uses: github/codeql-action/init@v2 with: languages: cpp - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} env: AM_COLOR_TESTS: always run: | CPUS=$(nproc) case "${{ matrix.compiler.cc }}" in clang*) CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} export CFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" ;; *) CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} export CFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" ;; esac export CC="ccache $CC" export CXX="ccache $CXX" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" mkdir linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} cd linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ../configure --without-opt --with-experimental --enable-maintainer-mode ${{ matrix.flags.flags }} || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" make -j ${CPUS} echo "::endgroup::" echo "::group::run tests" make -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::" cd .. - name: Ccache stats after builds run: | ccache -s - name: Archive artifacts if: ${{ env.ACT != 'true' }} uses: actions/upload-artifact@v3 with: name: linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} path: | linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.deps !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.dirstamp !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.a !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.la !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lai !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.o !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lo - name: Perform CodeQL Analysis uses: github/codeql-action/analyze@v2 ubuntu_20_04: runs-on: ubuntu-20.04 strategy: fail-fast: false matrix: # gcc: 9.3.0, 10.2.0 # clang: 10.0.0, 11.0.0, 12.0.1 compiler: - cc: gcc-10 cxx: g++-10 - cc: gcc-9 cxx: g++-9 - cc: clang-12 cxx: clang++-12 - cc: clang-11 cxx: clang++-11 - cc: clang-10 cxx: clang++-10 flags: - name: Gcrypt flags: "--with-gcrypt" - name: OpenSSL flags: "" name: Ubuntu 20.04 ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - uses: actions/cache@v3 id: cache if: ${{ env.ACT != 'true' }} with: path: | /home/runner/.ccache key: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}-${{ hashFiles('.github/workflows/linux.yml') }} restore-keys: ${{ runner.os }}-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} - name: Install dependencies run: | sudo apt update -q sudo apt-get install -y autoconf automake build-essential ccache ethtool expect hostapd iw lcov libcmocka-dev libgcrypt20-dev libhwloc-dev libnl-3-dev libnl-genl-3-dev libpcap-dev libpcre2-dev libsqlite3-dev libssl-dev libtool pkg-config rfkill screen shtool tcpdump usbutils wpasupplicant zlib1g-dev - name: Ccache stats before builds run: | ccache -s - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} env: AM_COLOR_TESTS: always run: | CPUS=$(nproc) export CC="ccache ${{ matrix.compiler.cc }}" export CXX="ccache ${{ matrix.compiler.cxx }}" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" mkdir linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} cd linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ../configure --without-opt --with-experimental --enable-maintainer-mode ${{ matrix.flags.flags }} || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" make -j ${CPUS} echo "::endgroup::" echo "::group::run tests" make -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::" cd .. - name: Ccache stats after builds run: | ccache -s - name: Archive artifacts uses: actions/upload-artifact@v3 if: ${{ env.ACT != 'true' }} with: name: linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} path: | linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.deps !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.dirstamp !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.a !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.la !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lai !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.o !linux-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lo
YAML
aircrack-ng/.github/workflows/macos.yml
name: macOS CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/linux.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/linux.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' env: LANG: en_US.UTF-8 TZ: UTC jobs: macos: runs-on: macos-latest strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ - cc: clang cxx: clang++ flags: - name: Gcrypt flags: "--with-gcrypt" - name: OpenSSL flags: "" name: macOS ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - uses: actions/cache@v3 id: cache with: path: | /Users/runner/Library/Caches/ccache /Users/runner/Library/Preferences/ccache/ccache.conf key: ${{ runner.os }}-macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}-${{ hashFiles('.github/workflows/macos.yml') }} restore-keys: ${{ runner.os }}-macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} - name: Install dependencies run: | brew install autoconf automake ccache cmocka expect hwloc libpcap libtool openssl pcre2 pkg-config sqlite3 shtool md5sha1sum - name: Ccache stats before builds run: | ccache -s - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} env: AM_COLOR_TESTS: always run: | CPUS=$(($(sysctl -a | grep machdep.cpu.cores_per_package | awk '{ print $2 }') * 3 / 2)) export PATH="/usr/local/opt/ccache/libexec:$PATH" case "${{ matrix.compiler.cc }}" in clang) CC=clang CXX=clang++ export CFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-zero-length-array -Wno-deprecated-declarations" ;; *) CC=${{ matrix.compiler.cc }} CXX=${{ matrix.compiler.cxx }} export CFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" export CXXFLAGS="-Werror -Wno-unused-result -Wno-deprecated-declarations" ;; esac export CC="ccache $CC" export CXX="ccache $CXX" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" mkdir macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} cd macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ../configure --without-opt --with-experimental --enable-maintainer-mode ${{ matrix.flags.flags }} || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" make -j ${CPUS} echo "::endgroup::" echo "::group::run tests" make -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::" cd .. - name: Ccache stats after builds run: | ccache -s - name: Archive artifacts uses: actions/upload-artifact@v3 with: name: macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} path: | macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }} !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.deps !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/.dirstamp !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.a !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.la !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lai !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.o !macos-${{ matrix.compiler.cc }}-${{ matrix.flags.name }}/**/*.lo
YAML
aircrack-ng/.github/workflows/manual.yml
name: Other Linux testing on: push: branches: [ master ] paths: - '.github/workflows/manual.yml' pull_request: branches: [ master ] paths: - '.github/workflows/manual.yml' workflow_call: workflow_dispatch: schedule: - cron: "0 0 2 * *" jobs: lint: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Lint Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: Dockerfile verbose: true failure-threshold: error - name: Lint Release Dockerfile uses: hadolint/hadolint-action@v3.1.0 with: dockerfile: './Dockerfile.release' verbose: true failure-threshold: error - name: Shellcheck package install script uses: sudo-bot/action-shellcheck@latest with: cli-args: "docker_package_install.sh" linux: runs-on: ubuntu-22.04 needs: lint strategy: fail-fast: false matrix: platform: [ 'clearlinux:base', 'rockylinux:9', 'almalinux:9', 'opensuse/leap:15', 'archlinux:base', 'manjarolinux/base', 'ubuntu:22.10', 'ubuntu:23.04', 'oraclelinux:9', 'fedora:38', 'fedora:39' ] steps: - name: Set up QEMU uses: docker/setup-qemu-action@v2 - name: Set up Docker Buildx uses: docker/setup-buildx-action@v2 - name: Build on linux/amd64 uses: docker/build-push-action@v3 with: platforms: linux/amd64 build-args: "IMAGE_BASE=${{ matrix.platform }}" push: false
YAML
aircrack-ng/.github/workflows/markdown-link.yml
name: "Markdown link check" on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths: - .github/workflows/markdown-link.yml - '**.md' pull_request: branches: [ master ] paths: - .github/workflows/markdown-link.yml - '**.md' jobs: markdown-link-check: runs-on: ubuntu-latest steps: - uses: actions/checkout@master - uses: gaurav-nelson/github-action-markdown-link-check@v1
YAML
aircrack-ng/.github/workflows/netbsd.yml
name: NetBSD CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' env: LANG: en_US.UTF-8 TZ: UTC MAKE: gmake jobs: netbsd: runs-on: macos-12 strategy: fail-fast: false matrix: compiler: - cc: gcc cxx: g++ flags: - name: OpenSSL flags: "" name: NetBSD ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} id: build uses: vmactions/netbsd-vm@v0 with: envs: 'LANG TZ MAKE' usesh: true sync: rsync copyback: false prepare: | pkg_add git pkgconf libtool gcc7 automake autoconf pcre2 sqlite3 openssl gmake cmocka run: | export CC="${{ matrix.compiler.cc }}" export CXX="${{ matrix.compiler.cxx }}" alias nproc='getconf NPROCESSORS_ONLN' CPUS=$(nproc) git config --global --add safe.directory /Users/runner/work/aircrack-ng/aircrack-ng echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ./configure --enable-maintainer-mode --with-experimental --without-opt || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" gmake -j ${CPUS} echo "::endgroup::" echo "::group::run tests" gmake -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::"
YAML
aircrack-ng/.github/workflows/openbsd.yml
name: OpenBSD CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' env: LANG: en_US.UTF-8 TZ: UTC MAKE: gmake jobs: openbsd: runs-on: macos-12 strategy: fail-fast: false matrix: compiler: - cc: clang cxx: clang++ flags: - name: OpenSSL flags: "" name: OpenBSD ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} steps: - uses: actions/checkout@v3 with: fetch-depth: 750 submodules: 'recursive' - name: Build with ${{ matrix.compiler.cc }} using ${{ matrix.flags.name }} id: build uses: vmactions/openbsd-vm@v0 with: envs: 'LANG TZ MAKE' usesh: true sync: rsync copyback: false prepare: | pkg_add git pkgconf shtool libtool llvm automake-1.16.5 autoconf-2.71 pcre2 sqlite3 openssl gmake cmocka run: | export CC="clang" export CXX="clang++" alias nproc='sysctl -n hw.ncpu' CPUS=$(nproc) git config --global --add safe.directory /Users/runner/work/aircrack-ng/aircrack-ng export AUTOCONF_VERSION=2.71 export AUTOMAKE_VERSION=1.16 echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" echo ">> Configure with $CC, $CXX, and ${{ matrix.flags.flags }}" ./configure --enable-maintainer-mode --with-experimental --without-opt || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" echo ">> Build using ${CPUS} jobs" gmake -j ${CPUS} echo "::endgroup::" echo "::group::run tests" gmake -j ${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::"
YAML
aircrack-ng/.github/workflows/pvs-studio.yml
name: PVS-Studio Analysis on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' env: LANG: en_US.UTF-8 TZ: UTC jobs: pvs_studio_analyzer: name: PVS-Studio Static Analyzer runs-on: ubuntu-22.04 steps: - uses: actions/checkout@v3 env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} with: submodules: 'recursive' - name: Log and setup environment env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: | mkdir -p pvs-package - name: Find latest PVS-Studio release env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} id: pvs_version run: | p=$(curl -sRL "https://pvs-studio.com/en/pvs-studio/download-all/" |\ grep -oE 'https?://cdn.pvs-studio.com/pvs-studio-[0-9.]+(-amd64\.deb)') echo "debfile=${p}" >> $GITHUB_OUTPUT - name: Fetch PVS-Studio package env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: wget "${{ steps.pvs_version.outputs.debfile }}" -O "pvs-package/pvs.deb" - name: Install packages env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: | set -xeu sudo apt update -yqq sudo apt-get -y --no-install-recommends install autoconf automake \ build-essential ccache ethtool expect hostapd iw lcov \ libcmocka-dev libgcrypt20-dev libhwloc-dev libnl-3-dev \ libnl-genl-3-dev libpcap-dev libpcre2-dev libsqlite3-dev \ libssl-dev libtool pkg-config rfkill screen shtool strace \ tcpdump usbutils wpasupplicant zlib1g-dev sudo dpkg -i "pvs-package/pvs.deb" pvs-studio-analyzer credentials \ "${{ secrets.PvsStudioName }}" "${{ secrets.PvsStudioKey }}" - name: Build env: AM_COLOR_TESTS: always PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: | set -eu CPUS=$(nproc) export CC="gcc" export CXX="g++" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vif echo "::endgroup::" echo "::group::configure" ./configure --without-opt \ --with-experimental \ --enable-maintainer-mode || { cat config.log; exit 1; } echo "::endgroup::" echo "::group::build" pvs-studio-analyzer trace -- make -j ${CPUS} echo "::endgroup::" - name: Analyze env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: | set -xeu log="pvs-analysis.log" general_criteria="GA:1,2,3;64:1,2,3;OP:1,2,3" stamp="$(date +'%Y-%m-%d_T%H%M')-${GITHUB_SHA:0:8}" reportdir="pvs-report/pvs-report-${stamp}" disable_warnings="V1032,V1042,V597,V809,V802,V1086" mkdir -p "${reportdir}" pvs-studio-analyzer analyze \ --ignore-ccache \ -a "GA;OP;CS" \ -s .pvs-suppress \ -j "$(nproc)" \ -o "${log}" plog-converter \ -p aircrack-ng \ -v "${GITHUB_SHA:0:8}" \ -a "${general_criteria}" \ -d "${disable_warnings}" \ -t fullhtml \ -o "${reportdir}/fullhtml"\ "${log}" mv "${reportdir}/fullhtml" "${reportdir}/general" plog-converter \ -a "${general_criteria}" \ -d "${disable_warnings}" \ -t csv \ -o pvs-report.csv \ "${log}" cp -l pvs-report.csv "${reportdir}/general/" pvs-studio-analyzer suppress \ -a "${general_criteria}" \ -o "${reportdir}/general/supressible-list.json" \ "${log}" cat pvs-report.csv || echo - name: Upload report env: PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.ACT != 'true' && env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} uses: actions/upload-artifact@v3 with: name: pvs-analysis-report path: pvs-report - name: Summarize report env: MAX_BUGS: 0 PVS_STUDIO_NAME: ${{ secrets.PvsStudioName }} PVS_STUDIO_KEY: ${{ secrets.PvsStudioKey }} if: ${{ env.PVS_STUDIO_NAME != null && env.PVS_STUDIO_KEY != null }} run: | ./build/count-pvs-bugs.py pvs-report.csv "${MAX_BUGS}"
YAML
aircrack-ng/.github/workflows/scanbuild.yml
name: Clang Scan-build on: push: branches: [ master ] paths: - '.github/workflows/scanbuild.yml' workflow_dispatch: schedule: - cron: "0 1 * * *" pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/style.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.freebsd' jobs: scanbuild: runs-on: ubuntu-22.04 steps: - name: Git Checkout uses: actions/checkout@v3 - name: Add LLVM repo uses: myci-actions/add-deb-repo@10 with: repo: deb http://apt.llvm.org/jammy/ llvm-toolchain-jammy-16 main repo-name: llvm keys-asc: https://apt.llvm.org/llvm-snapshot.gpg.key - name: Install required tools run: | sudo apt-get update sudo apt-get install clang-16 clang-tools-16 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 libpcre2-dev \ libhwloc-dev libcmocka-dev hostapd wpasupplicant tcpdump screen \ iw usbutils expect git -y - name: Build and run scan-build id: scanbuild run: | SCANBUILD_DIR=/tmp/scanbuild CPUS=$(nproc) autoreconf -vif CC=clang-16 CXX=clang++-16 ./configure --with-experimental --enable-maintainer-mode || { cat config.log; exit 1; } mkdir "${SCANBUILD_DIR}" scan-build-16 -sarif -o "${SCANBUILD_DIR}" -enable-checker alpha.security.taint.TaintPropagation -enable-checker alpha.security.ArrayBoundV2 make -j ${CPUS} echo "directory=${SCANBUILD_DIR}/$(ls -1 ${SCANBUILD_DIR})" >> $GITHUB_OUTPUT - name: Merge SARIF files run: | npm i @microsoft/sarif-multitool npx sarif-multitool merge ${{steps.scanbuild.outputs.directory}}/*.sarif --recurse --output-directory=. --output-file=results.sarif - name: Upload SARIF file if: github.event_name != 'pull_request' uses: github/codeql-action/upload-sarif@v2 with: sarif_file: results.sarif category: scanbuild - name: Archive artifacts (Pull request) if: github.event_name == 'pull_request' uses: actions/upload-artifact@v3 with: name: scanbuild-pr-${{ github.event.number }} path: results.sarif - name: Archive artifacts (Push) if: github.event_name != 'pull_request' uses: actions/upload-artifact@v3 with: name: scanbuild path: results.sarif
YAML
aircrack-ng/.github/workflows/style.yml
name: "Style & Consistency" on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - scripts/** - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - scripts/** - '.devcontainer/**' - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/windows.yml' - '.vscode/**' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' env: LANG: en_US.UTF-8 TZ: UTC jobs: clang_format: runs-on: ubuntu-22.04 name: Clang-Format steps: - uses: actions/checkout@v3 - name: Install dependencies run: | sudo apt-get install -y clang-format-12 - name: Check source code formatting run: | echo "::group::Process all source files with clang-format" # check formatting matches clang-format-12. Since newer versions can # have changes in formatting even without any rule changes, we have # to fix on a single version. . ./build/clang_format_all.sh git clean -f echo "::endgroup::" # Print any diff here, so the error message below is the last thing git diff set -e && git diff --quiet || ( echo "****************************************************"; echo "*** The code is not clean against clang-format ***"; echo "*** Please run clang-format-12/13/14/15 and fix ***"; echo "*** the differences then rebase/squash them into ***"; echo "*** the relevant commits. Do not add a commit ***"; echo "*** for just formatting fixes. Thanks! ***"; echo "****************************************************"; exit 1; )
YAML
aircrack-ng/.github/workflows/windows.yml
name: Windows CI on: # Allows you to run this workflow manually from the Actions tab workflow_dispatch: push: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' pull_request: branches: [ master ] paths-ignore: - apparmor/** - contrib/** - manpages/** - patches/** - '.coverityignore' - '.github/workflows/gentoo.yml' - '.github/ISSUE_TEMPLATE/**' - '.github/workflows/almalinux.yml' - '.github/workflows/alpine.yml' - '.github/workflows/check-release-ready.yml' - '.github/workflows/codespell.yml' - '.github/workflows/coverity.yml' - '.github/workflows/docker.yml' - '.github/workflows/docker-release.yml' - '.github/workflows/dragonflybsd.yml' - '.github/workflows/freebsd.yml' - '.github/workflows/irc.yml' - '.github/workflows/kali.yml' - '.github/workflows/linux.yml' - '.github/workflows/linux-pcre.yml' - '.github/workflows/macos.yml' - '.github/workflows/manual.yml' - '.github/workflows/markdown-link.yml' - '.github/workflows/netbsd.yml' - '.github/workflows/openbsd.yml' - '.github/workflows/pvs-studio.yml' - '.github/workflows/scanbuild.yml' - '.github/workflows/style.yml' - '.vscode/**' - '.clang-format' - '.editorconfig' - '.gitignore' - '.pre-commit-config.yaml' - 'AC_VERSION.in' - 'AUTHORS' - 'centos_autotools.sh' - 'ChangeLog' - 'docker_package_install.sh' - 'Dockerfile' - 'Dockerfile.release' - 'INSTALLING' - 'LICENSE' - 'LICENSE.OpenSSL' - 'README' - 'README.md' - 'SECURITY.md' - 'scripts/airmon-ng.*' env: CHERE_INVOKING: 1 LANG: en_US.UTF-8 TZ: UTC jobs: cygwin_64bit: runs-on: windows-latest steps: - run: git config --global core.autocrlf input - run: git config --global core.eol lf - uses: actions/checkout@v3 # Caching Cygwin fails due to /dev files and symlinks, sad :( - uses: actions/cache@v3 id: cache with: path: | /cygdrive/c/tools/cygwin/home/**/.ccache /cygdrive/c/tools/cygwin/home/**/AirPcap_Devpack_4_1_1_1838.zip key: ${{ runner.os }}-cygwin-64bit-${{ hashFiles('.github/workflows/windows.yml') }} restore-keys: ${{ runner.os }}-cygwin-64bit- - name: Set up Cygwin uses: cygwin/cygwin-install-action@v3 with: platform: x64 install-dir: C:\tools\cygwin packages: >- autoconf automake bison gcc-core gcc-g++ mingw-runtime mingw-binutils mingw-gcc-core mingw-gcc-g++ mingw-pthreads mingw-w32api libtool make python gettext-devel gettext intltool libiconv pkg-config git wget curl libpcre2-devel libssl-devel libsqlite3-devel zlib-devel unzip zip rsync expect libhwloc-devel ccache cmocka - name: Create home dir run: | C:\tools\cygwin\bin\bash.exe --login -c 'env' - name: Find Cygwin path to workspace id: cygwin run: | New-Variable bash -Value "C:\tools\cygwin\bin\bash.exe" -Option Constant $unix_path = (& $bash --login -e -c "cygpath '${env:GITHUB_WORKSPACE}'") echo "unix_path=${unix_path}" >> $GITHUB_OUTPUT - name: Ccache stats before builds run: | C:\tools\cygwin\bin\bash.exe -e -l -c "ccache -s" - name: Download AirPcap sources if: steps.cache.outputs.cache-hit != 'true' run: | C:\tools\cygwin\bin\bash.exe -e -l -c "cd ~ && curl -RLO https://dl.aircrack-ng.org/AirPcap_Devpack_4_1_1_1838.zip" - name: Copy cached AirPcap sources run: | C:\tools\cygwin\bin\bash.exe -e -l -c "cp -vfp ~/AirPcap_Devpack_4_1_1_1838.zip ." - name: Verify digest of AirPcap sources shell: pwsh run: | $hashFromFile = Get-FileHash -Path "AirPcap_Devpack_4_1_1_1838.zip" -Algorithm SHA256 if ($hashFromFile.Hash -ne "86dcde46603cd1229245263499ef9cb4e43ee66cd7219605d30095562888da14") { Write-Host "AirPcap failed digest check." -ForegroundColor Red $hashFromFile | Format-List Break } - name: Decompress AirPcap sources run: | C:\tools\cygwin\bin\bash.exe -e -l -c "7z -y x AirPcap_Devpack_4_1_1_1838.zip" - name: Generating AirPcap 64-bit linker files run: | C:\tools\cygwin\bin\bash.exe -e -l -c "cp -vf Airpcap_Devpack/bin/x64/airpcap.dll /cygdrive/c/Windows/System" C:\tools\cygwin\bin\bash.exe -e -l -c "dlltool -D Airpcap_Devpack/bin/x64/airpcap.dll -d build/airpcap.dll.def -l Airpcap_Devpack/bin/x64/libairpcap.dll.a" - name: Build 64-bit w/o AirPcap env: CFLAGS: "-O3 -mtune=opteron -DNDEBUG" LDFLAGS: "-Wl,--enable-auto-image-base" run: | New-Variable bash -Value "C:\tools\cygwin\bin\bash.exe" -Option Constant echo @" CPUS=`$((`$(grep -c processor /proc/cpuinfo) * 3 / 2)) export PATH="/usr/lib/ccache:`$PATH" export CC="ccache gcc" export CXX="ccache g++" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vi echo "::endgroup::" echo "::group::configure" mkdir 64bit-no-airpcap cd 64bit-no-airpcap ../configure --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-opt --with-experimental --enable-win32-portable --enable-maintainer-mode echo "::endgroup::" echo "::group::build" make -j `${CPUS} echo "::endgroup::" echo "::group::run tests" make -j `${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::" cd .. "@ | & $bash --login -o errexit -o nounset -o pipefail -o igncr shell: pwsh - name: Build 64-bit w/AirPcap env: CFLAGS: "-O3 -mtune=opteron -DNDEBUG" LDFLAGS: "-Wl,--enable-auto-image-base" run: | New-Variable bash -Value "C:\tools\cygwin\bin\bash.exe" -Option Constant echo @" CPUS=`$((`$(grep -c processor /proc/cpuinfo) * 3 / 2)) export PATH="/usr/lib/ccache:`$PATH" export CC="ccache gcc" export CXX="ccache g++" echo "::group::make distclean" make distclean || : echo "::endgroup::" echo "::group::autoreconf" autoreconf -vi echo "::endgroup::" echo "::group::configure" mkdir 64bit cd 64bit ../configure --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --without-opt --with-experimental --enable-win32-portable --enable-maintainer-mode --with-airpcap=${{ steps.cygwin.outputs.unix_path }} echo "::endgroup::" echo "::group::build" make -j `${CPUS} echo "::endgroup::" echo "::group::run tests" make -j `${CPUS} check || { find . -name 'test-suite.log' -exec cat {} ';' && exit 1; } echo "::endgroup::" echo "::group::gather packaging components" echo '>> Removing symbolic links that break Windows zip/tar' find . -type l -print -delete echo '>> Create deployment folder' mkdir -p dist/bin/64bit echo '>> Resolving run-time items for deployment' find . -path "*/.libs" -print0 | xargs -0I [] -n 1 find [] \( -name "*.exe" -o -name "*.dll" \) -exec cp -p {} "dist/bin/64bit" ';' # AirPcap DLLs cp -vfp "../Airpcap_Devpack/bin/x64/airpcap.dll" "dist/bin/64bit" # Cygwin License cp -vfp /usr/share/doc/Cygwin/CYGWIN_LICENSE "dist/LICENSE.Cygwin" # gather dependencies of Cygwin FILES="cygcrypto-1.1.dll cyghwloc-15.dll cyggcc_s-1.dll cyggcc_s-seh-1.dll cygpcre2-8-0.dll cygsqlite3-0.dll cygstdc++-6.dll cygwin1.dll cygz.dll cygxml2-2.dll cyglzma-5.dll cygiconv-2.dll" for FILE in `$FILES; do cp -vfp "/cygdrive/c/tools/cygwin/bin/`$FILE" "dist/bin/64bit" || : done echo "::endgroup::" cd .. "@ | & $bash --login -o errexit -o nounset -o pipefail -o igncr shell: pwsh - name: Ccache stats after builds run: | C:\tools\cygwin\bin\bash.exe -e -l -c "ccache -s" - name: Archive 64-bit artifacts uses: actions/upload-artifact@v3 with: name: 64bit path: | 64bit !64bit/**/*.a !64bit/**/*.la !64bit/**/*.lib !64bit/**/*.o !64bit/**/*.lo !64bit/**/*.obj gui: runs-on: windows-2022 steps: - run: git config --global core.autocrlf input - run: git config --global core.eol lf - uses: actions/checkout@v3 - name: Checkout GUI source code shell: pwsh run: | git clone --no-checkout --depth 1 --single-branch --branch Windows https://github.com/aircrack-ng/aircrack-ng.git gui Push-Location gui git reset --hard Pop-Location - name: Add msbuild to PATH uses: microsoft/setup-msbuild@v1.0.2 - name: Build shell: pwsh run: | Push-Location gui/GUI msbuild Aircrack-ng.sln /p:Configuration=Release /p:Platform="Any CPU" Pop-Location - name: Archive GUI artifacts uses: actions/upload-artifact@v3 with: name: gui path: | gui !gui/**/.git* !gui/**/obj package: runs-on: windows-latest needs: [cygwin_64bit, gui] steps: - run: git config --global core.autocrlf input - run: git config --global core.eol lf - uses: actions/checkout@v3 - name: Set up Cygwin uses: cygwin/cygwin-install-action@v3 with: platform: x64 install-dir: C:\tools\cygwin packages: >- git unzip zip rsync - name: Create home dir run: | C:\tools\cygwin\bin\bash.exe --login -c 'env' - name: Find Cygwin path to workspace id: cygwin run: | New-Variable bash -Value "C:\tools\cygwin\bin\bash.exe" -Option Constant $unix_path = (& $bash --login -e -c "cygpath '${env:GITHUB_WORKSPACE}'") echo "unix_path=${unix_path}" >> $GITHUB_OUTPUT - name: Download Cygwin 64-bit artifacts uses: actions/download-artifact@v2 with: name: 64bit path: 64bit - name: Download GUI artifacts uses: actions/download-artifact@v2 with: name: gui path: gui - name: Creating a package archive shell: pwsh run: | New-Variable bash -Value "C:\tools\cygwin\bin\bash.exe" -Option Constant & $bash -e -l -c "git config --global --add safe.directory /cygdrive/d/a/aircrack-ng/aircrack-ng" $REV = (& $bash -e -l -c "./evalrev") $env:DIST = "aircrack-ng-$REV-win" & $bash -e -l -c "git archive --format=tar --prefix=`"$env:DIST/`" HEAD | /bin/tar xf -" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to create pristine sources!" Break } echo @" mkdir -p "$env:DIST/bin" mkdir -p "$env:DIST/bin/64bit" cp -pr "gui/GUI/Aircrack-ng/bin/Release/Aircrack-ng GUI.exe" $env:DIST/bin || ls -laR rm -fr "gui/GUI/Aircrack-ng/bin" "gui/GUI/Aircrack-ng/obj" rsync -a gui/ "$env:DIST/src" rsync -a 64bit/dist/ "$env:DIST" find "$env:DIST" -name "test-*.exe" -print -delete rm -fr "$env:DIST/src/.git" "$env:DIST/.gitignore" "$env:DIST/appveyor.yml" "$env:DIST/.travis.yml" "$env:DIST/README.md" "$env:DIST/.github" "$env:DIST/patches" "$env:DIST/apparmor" zip -o -v -9 -r "$env:DIST.zip" "$env:DIST" ( cat README; echo; echo . ) | zip -z "$env:DIST.zip" exit 0 "@ | & $bash --login -o errexit -o nounset -o pipefail -o igncr - name: Save package artifacts uses: actions/upload-artifact@v3 with: name: release-windows path: | aircrack-ng-*-win.zip
JSON
aircrack-ng/.vscode/c_cpp_properties.json
{ "configurations": [ { "name": "Linux", "includePath": [ "${workspaceFolder}/**" ], "defines": [], "compilerPath": "/usr/local/bin/clang", "cStandard": "c11", "cppStandard": "c++17", "intelliSenseMode": "clang-x64", "compileCommands": "${workspaceFolder}/compile_commands.json" } ], "version": 4 }
JSON
aircrack-ng/.vscode/launch.json
{ // Use IntelliSense to learn about possible attributes. // Hover to view descriptions of existing attributes. // For more information, visit: https://go.microsoft.com/fwlink/?linkid=830387 "version": "0.2.0", "configurations": [ { "name": "(gdb) Launch aircrack-ng", "type": "cppdbg", "request": "launch", "program": "${workspaceFolder}/.libs/aircrack-ng", "args": [], "stopAtEntry": true, "cwd": "${workspaceFolder}", "environment": [ { "name": "LD_LIBRARY_PATH", "value": "${workspaceFolder}/.libs" } ], "externalConsole": false, "MIMode": "gdb", "setupCommands": [ { "description": "Enable pretty-printing for gdb", "text": "-enable-pretty-printing", "ignoreFailures": true } ] } ] }
JSON
aircrack-ng/.vscode/tasks.json
{ // See https://go.microsoft.com/fwlink/?LinkId=733558 // for the documentation about the tasks.json format "version": "2.0.0", "tasks": [ { "label": "Build Incremental", "type": "shell", "command": "make -j6 && make -j6 check", "group": { "kind": "build", "isDefault": true }, "problemMatcher": "$gcc", "promptOnClose": false, "presentation": { "echo": true, "reveal": "silent", "focus": false, "panel": "dedicated", "showReuseMessage": false, "clear": false } },{ "label": "Build Full", "type": "shell", "command": "autoreconf -vif && env CC=clang-14 CXX=clang++-14 CPP=clang-cpp-14 CFLAGS=\"-Og -g\" CXXFLAGS=\"-Og -g\" ./configure --enable-maintainer-mode --with-experimental --without-opt && bear -- make -j6 && bear -- make -j6 check", "group": "build", "problemMatcher": "$gcc", "promptOnClose": false, "presentation": { "echo": true, "reveal": "always", "focus": true, "panel": "dedicated", "showReuseMessage": false, "clear": true } },{ "label": "Test", "type": "shell", "command": "make -j6 check", "group":{ "kind": "test", "isDefault": true }, "problemMatcher": "$gcc", "promptOnClose": false, "presentation": { "echo": true, "reveal": "silent", "focus": false, "panel": "dedicated", "showReuseMessage": false, "clear": false } } ] }
aircrack-ng/apparmor/usr.bin.aircrack-ng
#include <tunables/global> /usr/bin/aircrack-ng { #include <abstractions/base> #include <abstractions/private-files-strict> # No need to access dot files deny @{HOME}/.** rw, # For reading pcap files (and sqldb) @{HOME}/** r, /tmp/** r, # For -l (and writing sqldb) owner @{HOME}/** w, owner /tmp/** w, # Needed for ptrace/core dumps /usr/bin/aircrack-ng rm, }
aircrack-ng/apparmor/usr.bin.airdecap-ng
#include <tunables/global> /usr/bin/airdecap-ng { #include <abstractions/base> #include <abstractions/private-files-strict> # No need to access dot files deny @{HOME}/.** rw, # For reading pcap files @{HOME}/** r, /tmp/** r, # For writing output files owner @{HOME}/** w, owner /tmp/** w, # Needed for ptrace/core dumps /usr/bin/airdecap-ng rm, }
aircrack-ng/apparmor/usr.bin.airdecloak-ng
#include <tunables/global> /usr/bin/airdecloak-ng { #include <abstractions/base> #include <abstractions/private-files-strict> # No need to access dot files deny @{HOME}/.** rw, # For reading pcap files @{HOME}/** r, /tmp/** r, # For writing output files owner @{HOME}/** w, owner /tmp/** w, # Needed for ptrace/core dumps /usr/bin/airdecloak-ng rm, }
aircrack-ng/apparmor/usr.bin.airgraph-ng
#include <tunables/global> /usr/bin/airgraph-ng { #include <abstractions/base> #include <abstractions/private-files-strict> # No need to access dot files deny @{HOME}/.** rw, # For reading input @{HOME}/** r, /tmp/** r, # For writing output owner @{HOME}/** w, owner /tmp/** w, # For executing 'fdp' /usr/{,local/,s}bin/fdp ix, # Needed for ptrace/core dumps /usr/bin/airgraph-ng rm, }
aircrack-ng/apparmor/usr.bin.airolib-ng
#include <tunables/global> /usr/bin/airolib-ng { #include <abstractions/base> #include <abstractions/private-files-strict> # No need to access dot files deny @{HOME}/.** rw, # For reading database files @{HOME}/** r, /tmp/** r, # For writing database files and exporting cowpatty files owner @{HOME}/** w, owner /tmp/** w, # Needed for ptrace/core dumps /usr/bin/airolib-ng rm, }
aircrack-ng/apparmor/usr.bin.buddy-ng
#include <tunables/global> /usr/bin/buddy-ng { #include <abstractions/base> capability setgid, capability setuid, capability sys_chroot, network inet dgram, network inet stream, /usr/bin/buddy-ng mr, }
aircrack-ng/apparmor/usr.bin.ivstools
#include <tunables/global> /usr/bin/ivstools { #include <abstractions/base> #include <abstractions/private-files-strict> capability dac_override, deny @{HOME}/.** rw, @{HOME}/** r, owner @{HOME}/** w, /usr/bin/ivstools mr, }
aircrack-ng/apparmor/usr.bin.kstats
#include <tunables/global> /usr/bin/kstats { #include <abstractions/base> #include <abstractions/private-files-strict> deny @{HOME}/.** rw, @{HOME}/** r, /usr/bin/kstats mr, }
aircrack-ng/apparmor/usr.bin.packetforge-ng
#include <tunables/global> /usr/bin/packetforge-ng { #include <abstractions/base> #include <abstractions/private-files-strict> deny @{HOME}/.** rw, @{HOME}/** r, owner @{HOME}/** w, /usr/bin/packetforge-ng mr, }
aircrack-ng/apparmor/usr.sbin.airbase-ng
#include <tunables/global> /usr/sbin/airbase-ng { #include <abstractions/base> #include <abstractions/nameservice> #include <abstractions/private-files-strict> capability net_admin, capability net_raw, capability setuid, network inet dgram, network packet raw, deny @{HOME}/.** rw, @{HOME}/** r, owner @{HOME}/** w, /bin/ r, /bin/*sh rCx, /bin/ls r, /dev/net/tun rw, /usr/sbin/airbase-ng mr, /proc/*/net/psched r, /tmp/ r, /sbin/ r, /sbin/iwpriv rCx, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls mrix, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.aireplay-ng
#include <tunables/global> /usr/sbin/aireplay-ng { #include <abstractions/base> #include <abstractions/private-files-strict> capability net_admin, capability net_raw, capability setuid, network packet raw, deny @{HOME}/.** rw, @{HOME}/** r, owner @{HOME}/** w, /bin/*sh rCx, /usr/sbin/aireplay-ng mr, /proc/*/net/psched r, /sbin/ r, /sbin/iwpriv rCx, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls rix, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network inet dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.airmon-ng
#include <tunables/global> /usr/sbin/airmon-ng { #include <abstractions/base> #include <abstractions/bash> #include <abstractions/private-files-strict> /usr/sbin/airmon-ng rix, /bin/cat rix, /bin/dmesg rCx, profile /bin/dmesg { #include <abstractions/base> /bin/dmesg mr, } /bin/*sh ix, /bin/grep rix, /bin/ip rCx, profile /bin/ip { #include <abstractions/base> /bin/ip mr, capability net_admin, } /bin/kmod rCx, profile /bin/kmod { #include <abstractions/base> /bin/kmod mr, /proc/cmdline r, } /bin/ps rCx, profile /bin/ps { #include <abstractions/base> /bin/ps mr, capability sys_ptrace, capability dac_override, ptrace (trace), ptrace (read), /proc/ r, /proc/*/ r, /proc/*/maps r, /proc/*/net/dev r, /proc/*/stat r, /proc/*/status r, /proc/*/task/ r, /proc/sys/kernel/pid_max r, /proc/tty/drivers r, /proc/uptime r, } /bin/readlink rix, /bin/sed rix, /bin/sleep rix, /bin/uname rix, /dev/bus/usb/ r, /dev/rfkill rix, /dev/tty* r, /dev/vmnet r, /etc/udev/udev.conf r, /proc/*/net/dev r, /proc/*/net/psched r, /proc/bus/pci/ r, /proc/ide/hd*/model r, /proc/filesystems r, /proc/meminfo r, /proc/scsi/scsi/ r, /proc/sys/dev/*/fftxqmin r, /sbin/ethtool rCx, profile /sbin/ethtool { #include <abstractions/base> /sbin/ethtool mr, capability net_admin, capability net_raw, network, } /sbin/ifconfig rCx, profile /sbin/ifconfig { #include <abstractions/base> /sbin/ifconfig mr, } /sbin/iw rCx, profile /sbin/iw { #include <abstractions/base> /sbin/iw mr, capability net_admin, /proc/net/psched r, /sys/class/ieee80211/ r, /sys/class/ieee80211/** r, /sys/devices/** r, /proc/*/net/psched r, } /sbin/iwconfig rCx, profile /sbin/iwconfig { #include <abstractions/base> /sbin/iwconfig mr, capability net_admin, capability net_raw, network inet dgram, /proc/filesystems r, /proc/*/net/dev r, } /sbin/modinfo rCx, profile /sbin/modinfo { #include <abstractions/base> /sbin/modinfo mr, /proc/cmdline r, } /sbin/modprobe rCx, profile /sbin/modprobe { #include <abstractions/base> /sbin/modprobe mr, } /sys/bus/ r, /sys/bus/pci r, /sys/bus/pci_express r, /sys/bus/usb/devices/ r, /sys/class/ r, /sys/class/ieee80211/ r, /sys/class/ieee80211/** r, /sys/class/net/ r, /sys/class/net/** r, /sys/devices/** r, /sys/module/ r, /usr/bin/basename rix, /usr/bin/cut rix, /usr/bin/*awk rix, /usr/bin/head rix, /usr/bin/id rix, /usr/bin/lspci rix, /usr/bin/lscpu rix, /usr/bin/lsusb rix, /usr/bin/sort rix, /usr/sbin/dmidecode rCx, profile /usr/sbin/dmidecode { #include <abstractions/base> /usr/sbin/dmidecode mr, } /usr/sbin/rfkill rix, /var/lib/usbutils/usb.ids r, }
aircrack-ng/apparmor/usr.sbin.airodump-ng
#include <tunables/global> /usr/sbin/airodump-ng { #include <abstractions/base> #include <abstractions/nameservice> /usr/sbin/airodump-ng mr, capability dac_override, capability setuid, capability net_raw, capability net_admin, capability sys_module, network packet raw, deny @{HOME}/.** rw, @{HOME}/** r, owner @{HOME}/**.cap w, owner @{HOME}/**.csv w, owner @{HOME}/**.kismet.netxml w, owner @{HOME}/**.gps w, /proc/*/net/psched r, /proc/acpi/ac_adapter/ r, /proc/acpi/battery/ r, /usr/share/aircrack-ng/airodump-ng-oui.txt r, /sbin/ r, /sbin/iwpriv rCx, profile /sbin/iwpriv { #include <abstractions/base> network dgram, /sbin/iwpriv mr, } /bin/*sh rCx, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls mrix, /sys/class/ieee80211/ r, } }
aircrack-ng/apparmor/usr.sbin.airserv-ng
#include <tunables/global> /usr/sbin/airserv-ng { #include <abstractions/base> capability net_admin, capability net_bind_service, capability net_raw, network inet stream, network packet raw, /usr/sbin/airserv-ng mr, /bin/ r, /bin/*sh Cx, /proc/*/net/psched r, /tmp/ r, /sbin/ r, /sbin/iwpriv Cx, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls r, /proc/filesystems r, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network inet dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.airtun-ng
#include <tunables/global> /usr/sbin/airtun-ng { #include <abstractions/base> #include <abstractions/private-files-strict> capability net_admin, capability net_raw, capability setuid, network inet dgram, network packet raw, deny @{HOME}/.** rw, @{HOME}/** r, /bin/ r, /bin/*sh Cx, /dev/net/tun rw, /proc/*/net/psched r, /sbin/ r, /sbin/iwpriv Cx, /tmp/ r, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, /usr/sbin/airtun-ng mr, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls rix, /proc/filesystems r, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.easside-ng
#include <tunables/global> /usr/sbin/easside-ng { #include <abstractions/base> capability net_admin, capability net_raw, network inet dgram, network packet raw, deny @{HOME}/.** rw, @{HOME}/**/prga.log w, /bin/ r, /bin/*sh Cx, /dev/net/tun rw, /usr/sbin/easside-ng mr, /proc/*/net/psched r, /sbin/ r, /sbin/iwpriv Cx, /tmp/ r, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls r, /proc/filesystems r, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network inet dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.tkiptun-ng
#include <tunables/global> /usr/sbin/tkiptun-ng { #include <abstractions/base> #include <abstractions/private-files-strict> capability net_admin, capability net_raw, capability setuid, capability sys_module, network packet raw, deny @{HOME}/.** rw, @{HOME}/** r, /bin/ r, /bin/*sh Cx, /usr/sbin/tkiptun-ng mr, /proc/*/net/psched r, /sbin/ r, /sbin/iwpriv Cx, /tmp/ r, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls rix, /proc/filesystems r, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> capability net_admin, capability sys_module, network inet dgram, /sbin/iwpriv mr, } }
aircrack-ng/apparmor/usr.sbin.wesside-ng
#include <tunables/global> /usr/sbin/wesside-ng { #include <abstractions/base> #include <abstractions/private-files-strict> capability dac_override, capability net_admin, capability net_raw, network packet raw, /bin/ r, /bin/*sh Cx, deny @{HOME}/.** rw, owner @{HOME}/**/wep.cap rw, /usr/sbin/wesside-ng mr, /proc/*/net/psched r, /sbin/ r, /sbin/iwpriv Cx, /tmp/ r, /usr/bin/ r, /usr/local/bin/ r, /usr/local/sbin/ r, /usr/sbin/ r, profile /bin/*sh { #include <abstractions/base> /bin/*sh mr, /bin/ls rix, /proc/filesystems r, /sys/class/ieee80211/ r, } profile /sbin/iwpriv { #include <abstractions/base> network inet dgram, /sbin/iwpriv mr, } }
aircrack-ng/build/airpcap.dll.def
LIBRARY airpcap.dll EXPORTS AirpcapClose AirpcapConvertChannelToFrequency AirpcapConvertFrequencyToChannel AirpcapFreeDeviceList AirpcapGetDecryptionState AirpcapGetDeviceCapabilities AirpcapGetDeviceChannel AirpcapGetDeviceChannelEx AirpcapGetDeviceChannelLock AirpcapGetDeviceKeys AirpcapGetDeviceList AirpcapGetDeviceMacFlags AirpcapGetDeviceSupportedChannels AirpcapGetDeviceTimestamp AirpcapGetDeviceTransmissionLock AirpcapGetDriverDecryptionState AirpcapGetDriverKeys AirpcapGetFcsPresence AirpcapGetFcsValidation AirpcapGetKernelBufferSize AirpcapGetLastError AirpcapGetLedsNumber AirpcapGetLinkType AirpcapGetMacAddress AirpcapGetReadEvent AirpcapGetStats AirpcapGetTxPower AirpcapGetVersion AirpcapOpen AirpcapRead AirpcapSetDecryptionState AirpcapSetDeviceChannel AirpcapSetDeviceChannelEx AirpcapSetDeviceChannelLock AirpcapSetDeviceKeys AirpcapSetDeviceMacFlags AirpcapSetDeviceTransmissionLock AirpcapSetDriverDecryptionState AirpcapSetDriverKeys AirpcapSetFcsPresence AirpcapSetFcsValidation AirpcapSetFilter AirpcapSetKernelBuffer AirpcapSetLinkType AirpcapSetMacAddress AirpcapSetMinToCopy AirpcapSetTxPower AirpcapStoreCurConfigAsAdapterDefault AirpcapTurnLedOff AirpcapTurnLedOn AirpcapWrite
aircrack-ng/build/benchmark
#!/usr/bin/env bash set -euf TESTS=$(./aircrack-ng --simd-list) BENCHMARKS=benchmark.csv TOP=$(dirname "$0")/.. REV=$(cd "$TOP" && "./evalrev") touch "$BENCHMARKS" echo "revision,processor,simd,nbcpus,kps" | tee -a "$BENCHMARKS" for T in $TESTS; do NCPU=$(nproc) while [ "$NCPU" -ge 1 ]; do LOOPS=1 while [ "$LOOPS" -le 5 ]; do RESULT=$(./aircrack-ng "--simd=$T" -p "$NCPU" -S | tr '\r' '\n' | awk -v max=0 '{if($1>max){max=$1}}END{print max}') echo "$REV,$(uname -m),$T,$NCPU,$RESULT" | tee -a "$BENCHMARKS" LOOPS=$((LOOPS + 1)) done [ "${NCPU}" -eq 1 ] && break [ $((NCPU & 1)) ] && NCPU=$((NCPU + 1)) NCPU=$((NCPU/2)) done done
Shell Script
aircrack-ng/build/clang_format_all.sh
#!/bin/bash # # Adapted from: # https://github.com/baldurk/renderdoc/raw/v1.x/util/clang_format_all.sh # CLANG_VERSION=(12 13 14 15) # Locate the clang-format executable. We try: # - the existing value of $CLANG_FORMAT # - the first command line argument to the script # - in order: # clang-format-Maj # clang-format # define a function to check the current $CLANG_FORMAT valid_clang_format() { if which "$CLANG_FORMAT" > /dev/null 2>&1; then # we need to make the grep pattern strict because if clang-format was built from source # then the version number contains a hash and grep could match numbers from it # for example: # $ clang-format-12 --version # clang-format version 12.0.1 (https://github.com/llvm/llvm-project.git fed41342a82f5a3a9201819a82bf7a48313e296b) if $CLANG_FORMAT --version | grep -q "version $1"; then echo "Located $CLANG_FORMAT" return 0 fi fi return 1 } # Format all source code format_code() { find src -iname '*.h' -a \( ! -path "include/aircrack-ng/third-party/*" -a ! -path "lib/radiotap/*" \) -print0 | \ xargs -0 -n1 "$CLANG_FORMAT" -i -style=file find src -iname '*.cpp' -a \( ! -path "include/aircrack-ng/third-party/*" -a ! -path "lib/radiotap/*" \) -print0 | \ xargs -0 -n1 "$CLANG_FORMAT" -i -style=file find src -iname '*.c' -a \( ! -path "include/aircrack-ng/third-party/*" -a ! -path "lib/radiotap/*" \) -print0 | \ xargs -0 -n1 "$CLANG_FORMAT" -i -style=file $CLANG_FORMAT -i -style=file include/aircrack-ng/third-party/eapol.h $CLANG_FORMAT -i -style=file include/aircrack-ng/third-party/hashcat.h } if test ! -e configure.ac; then echo "Must be at the root of the entire project." exit 1 fi; for clang_version in "${CLANG_VERSION[@]}"; do # First try the command line parameter CLANG_FORMAT=$1 if valid_clang_format "$clang_version"; then format_code exit 0 fi done for clang_version in "${CLANG_VERSION[@]}"; do # Then -maj just in case CLANG_FORMAT=clang-format-$clang_version if valid_clang_format "$clang_version"; then format_code exit 0 fi done for clang_version in "${CLANG_VERSION[@]}"; do # Then finally with no version suffix CLANG_FORMAT=clang-format if valid_clang_format "$clang_version"; then format_code exit 0 fi done # We didn't find a valid $CLANG_FORMAT, bail out echo -n "Couldn't find a correct clang-format version, was looking for "; IFS='/';echo "${CLANG_VERSION[*]}";IFS=$' \t\n' echo "Aircrack-ng requires a very specific clang-format version to ensure there isn't" echo "any variance between versions that can happen. You can install it as" echo -n "'clang-format-"; IFS='/';echo -n "${CLANG_VERSION[*]}";IFS=$' \t\n'; echo "' so that it doesn't interfere with any other" echo "versions you might have installed, and this script will find it there" exit 1
Shell Script
aircrack-ng/build/cocci.sh
#!/bin/sh echo docker run -it --rm -v "$(pwd)":/workspace --user root coccinelle:latest /bin/bash echo cd /workspace echo 'spatch --sp-file build/coccinelle/convert_u_int_form.cocci -I include -I lib --in-place --dir {include,lib,src,test}'
Python
aircrack-ng/build/count-infer-bugs.py
#!/usr/bin/python3 # SPDX-License-Identifier: GPL-2.0-or-later # # Copyright (C) 2020-2021 Kevin R. Croft <krcroft@gmail.com> # Copyright (C) 2020-2022 Joseph Benden <joe@benden.us> """ Count the number of issues found in an Infer report. Usage: count-infer-bugs.py REPORT [MAX-ISSUES] Where: - REPORT is a file in JSON-format - MAX-ISSUES is as a positive integer indicating the maximum issues that should be permitted before returning failure to the shell. Default is non-limit. """ # pylint: disable=invalid-name # pylint: disable=missing-docstring import collections import os import json import sys def parse_issues(filename): """ Returns a dict of source filename keys having occurrence-count values """ cwd = os.getcwd() issues = collections.defaultdict(int) types = collections.defaultdict(int) with open(filename) as csvfile: reader = json.load(csvfile) for row in reader: bug_type = row['bug_type_hum'] or row['bug_type'] sourcefile = os.path.realpath(row['file']) # Skip non-file lines if not sourcefile.startswith('/'): continue sourcefile = os.path.relpath(sourcefile, cwd) issues[sourcefile] += 1 types[bug_type] += 1 return issues, types def main(argv): # assume success until proven otherwise rcode = 0 # Get the issues and the total tally issues, types = parse_issues(argv[1]) tally = sum(issues.values()) tally_types = sum(types.values()) if tally_types > 0: # find the longest entry longest_name = max(len(entry) for entry in types.keys()) # Print the category and their issue counts print("Counts sorted by bug category:\n") for entry in sorted(types, key=types.get, reverse=True): print(f' {entry:{longest_name}} : {types[entry]}') print("") if tally > 0: # find the longest source filename longest_name = max(len(sourcefile) for sourcefile in issues.keys()) # Print the source filenames and their issue counts print("Counts sorted by filename:\n") for sourcefile in sorted(issues, key=issues.get, reverse=True): print(f' {sourcefile:{longest_name}} : {issues[sourcefile]}') # Print the tally against the desired maximum if len(sys.argv) == 3: max_issues = int(sys.argv[2]) print(f'\nTotal: {tally} issues (out of {max_issues} allowed)') if tally > max_issues: rcode = 1 else: print(f'\nTotal: {tally} issues') return rcode if __name__ == "__main__": sys.exit(main(sys.argv))
Python
aircrack-ng/build/count-pvs-bugs.py
#!/usr/bin/python3 # SPDX-License-Identifier: GPL-2.0-or-later # # Copyright (C) 2020-2021 Kevin R. Croft <krcroft@gmail.com> """ Count the number of issues found in an PVS-Studio report. Usage: count-pvs-issues.py REPORT [MAX-ISSUES] Where: - REPORT is a file in CSV-format - MAX-ISSUES is as a positive integer indicating the maximum issues that should be permitted before returning failure to the shell. Default is non-limit. """ # pylint: disable=invalid-name # pylint: disable=missing-docstring import collections import csv import os import sys def parse_issues(filename): """ Returns a dict of source filename keys having occurrence-count values """ cwd = os.getcwd() issues = collections.defaultdict(int) with open(filename) as csvfile: reader = csv.DictReader(csvfile) for row in reader: # Skip non-file lines if not row['FilePath'].startswith('/'): continue sourcefile = os.path.realpath(row['FilePath']) # Skip non-file lines if not sourcefile.startswith('/'): continue sourcefile = os.path.relpath(sourcefile, cwd) issues[sourcefile] += 1 return issues def main(argv): # assume success until proven otherwise rcode = 0 # Get the issues and the total tally issues = parse_issues(argv[1]) tally = sum(issues.values()) if tally > 0: # find the longest source filename longest_name = max(len(sourcefile) for sourcefile in issues.keys()) # Print the source filenames and their issue counts print("Sorted by issue count:\n") for sourcefile in sorted(issues, key=issues.get, reverse=True): print(f' {sourcefile:{longest_name}} : {issues[sourcefile]}') # Print the tally against the desired maximum if len(sys.argv) == 3: max_issues = int(sys.argv[2]) print(f'\nTotal: {tally} issues (out of {max_issues} allowed)') if tally > max_issues: rcode = 1 else: print(f'\nTotal: {tally} issues') return rcode if __name__ == "__main__": sys.exit(main(sys.argv))
Shell Script
aircrack-ng/build/infer.sh
#!/bin/sh set -euf infer --report-blacklist-path-regex lib/radiotap \ --compilation-database compile_commands.json [ -r infer-out/report.json ] || exit 2 exec ./build/count-infer-bugs.py infer-out/report.json 27
aircrack-ng/build/package-win32.ps1
####################################################################### # # Copyright (C) 2018 Joseph Benden <joe@benden.us> # # This program is free software; you can redistribute it and/or modify # it under the terms of the GNU General Public License as published by # the Free Software Foundation; either version 2 of the License, or # (at your option) any later version. # # This program is distributed in the hope that it will be useful, # but WITHOUT ANY WARRANTY; without even the implied warranty of # MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the # GNU General Public License for more details. # # You should have received a copy of the GNU General Public License # along with this program; if not, write to the Free Software # Foundation, Inc. # 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA # ####################################################################### # # Requirements: # - Microsoft Visual Studio 2017 Community is installed. # - Cygwin; both 32-bit and 64-bit. # - All Cygwin dependencies are installed in both 32-bit and in # 64-bit versions. # - Airpcap is extracted in the root of the project. # - The working directory is the root of the project. # - Assumes utilities are installed in AppVeyor-specific # locations. (Mostly default installation locations.) # # Running the script: # # powershell -File package-win32.ps1 # ####################################################################### $env:CHERE_INVOKING = 1 $env:AIRPCAP = c:\cygwin\bin\bash.exe -e -l -c "/bin/cygpath -u `'$(Get-Location)`'" $env:MSBUILD = "C:\Program Files (x86)\Microsoft Visual Studio\2017\Community\MSBuild\15.0\Bin\MSBuild.exe" $REV = c:\cygwin\bin\bash.exe -e -l -c "./evalrev" $env:DIST = "aircrack-ng-$REV-win" Write-Host -ForegroundColor Blue "Creating dist folder: $env:DIST" if ((Test-Path -Path "src\.deps")) { Write-Host -ForegroundColor Blue "Running distclean" c:\cygwin\bin\bash.exe -e -l -c "/bin/make distclean" } if ((Test-Path -Path "$env:DIST")) { Write-Host -ForegroundColor Blue "Removing existing dist folder." Remove-Item -Recurse -Force $env:DIST } Write-Host -ForegroundColor Blue "Creating pristine sources" c:\cygwin\bin\bash.exe -e -l -c "git archive --format=tar --prefix=`"$env:DIST/`" HEAD | /bin/tar xf -" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to create pristine sources!" Break } Write-Host -ForegroundColor Blue "Running autoreconf" c:\cygwin\bin\bash.exe -e -l -c "/bin/autoreconf -vi" | Out-Null if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to run autoreconf!" Break } Write-Host -ForegroundColor Blue "Building 32-bit binaries" $b32 = @" #!/bin/bash set -eufx [ -d 32bit ] && rm -fr 32bit mkdir 32bit cd 32bit env CFLAGS="-O3 -mtune=i686 -DNDEBUG" LDFLAGS="-Wl,--enable-auto-image-base" ../configure --host=i686-pc-cygwin --target=i686-pc-cygwin --with-experimental --with-airpcap=$env:AIRPCAP --enable-win32-portable /bin/make V=1 "@ $b32.Replace("`r`n","`n") | Set-Content -Path 32build.sh -Force c:\cygwin\bin\bash.exe -e -l -c "/bin/chmod +x 32build.sh && ./32build.sh" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to build 32-bit binaries!" Break } Write-Host -ForegroundColor Blue "Building 64-bit binaries" $b64 = @" #!/bin/bash set -eufx [ -d 64bit ] && rm -fr 64bit mkdir 64bit cd 64bit env CFLAGS="-O3 -mtune=opteron -DNDEBUG" LDFLAGS="-Wl,--enable-auto-image-base" ../configure --host=x86_64-pc-cygwin --target=x86_64-pc-cygwin --with-experimental --with-airpcap=$env:AIRPCAP --enable-win32-portable /bin/make V=1 "@ $b64.Replace("`r`n","`n") | Set-Content -Path 64build.sh -Force c:\cygwin64\bin\bash.exe -e -l -c "/bin/chmod +x 64build.sh && ./64build.sh" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to build 64-bit binaries!" Break } Write-Host -ForegroundColor Blue "Cloning GUI tools" if ((Test-Path -Path "gui")) { Write-Host -ForegroundColor Blue "Removing existing gui folder." Remove-Item -Recurse -Force gui } git clone --no-checkout --depth 1 --single-branch --branch Windows https://github.com/aircrack-ng/aircrack-ng.git gui Push-Location gui git reset --hard Pop-Location c:\cygwin\bin\bash.exe -e -l -c "/bin/rsync -a gui/ `"$env:DIST/src`" && /bin/rm -fr `"$env:DIST/src/.git`" `"$env:DIST/.gitignore`" `"$env:DIST/appveyor.yml`" `"$env:DIST/.travis.yml`" `"$env:DIST/README.md`" `"$env:DIST/.github`" `"$env:DIST/patches`" `"$env:DIST/apparmor`"" Push-Location gui/GUI & "$env:MSBUILD" Aircrack-ng.sln /p:Configuration=Release /p:Platform="Any CPU" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to build GUI!" Pop-Location Break } Pop-Location if ((Test-Path -Path "$env:DIST.zip")) { Write-Host -ForegroundColor Blue "Removing existing ZIP file." Remove-Item -Force "$env:DIST.zip" } $pkg = @" #!/bin/bash set -eufx mkdir "$env:DIST/bin" mkdir "$env:DIST/bin/32bit" mkdir "$env:DIST/bin/64bit" cp -pr "gui/GUI/Aircrack-ng/bin/Release/Aircrack-ng GUI.exe" $env:DIST/bin find 32bit -path "*/.libs" -print0 | xargs -0I [] -n 1 find [] \( -name "*.exe" -o -name "*.dll" \) -exec cp -p {} "$env:DIST/bin/32bit" ';' find 64bit -path "*/.libs" -print0 | xargs -0I [] -n 1 find [] \( -name "*.exe" -o -name "*.dll" \) -exec cp -p {} "$env:DIST/bin/64bit" ';' # AirPcap DLLs cp -p "Airpcap_Devpack/bin/x86/airpcap.dll" "$env:DIST/bin/32bit" cp -p "Airpcap_Devpack/bin/x64/airpcap.dll" "$env:DIST/bin/64bit" # Cygwin License cp /usr/share/doc/Cygwin/CYGWIN_LICENSE "$env:DIST/LICENSE.Cygwin" # gather dependencies of Cygwin FILES="cygcrypto-1.1.dll cyghwloc-15.dll cyggcc_s-1.dll cyggcc_s-seh-1.dll cygpcre2-8-0.dll cygsqlite3-0.dll cygstdc++-6.dll cygwin1.dll cygz.dll cygxml2-2.dll cyglzma-5.dll cygiconv-2.dll" for FILE in `$FILES; do cp -p "/cygdrive/c/cygwin/bin/`$FILE" "$env:DIST/bin/32bit" || : cp -p "/cygdrive/c/cygwin64/bin/`$FILE" "$env:DIST/bin/64bit" || : done "$env:DIST/bin/32bit/aircrack-ng" -u rc=`$("$env:DIST/bin/32bit/aircrack-ng" --simd-list | wc -c) if [ `$rc -ne 22 ]; then echo "The expected number of SIMD engines are NOT present in 32-bit binary." exit 1 fi "$env:DIST/bin/64bit/aircrack-ng" -u rc=`$("$env:DIST/bin/64bit/aircrack-ng" --simd-list | wc -c) if [ `$rc -ne 22 ]; then echo "The expected number of SIMD engines are NOT present in 64-bit binary." exit 1 fi zip -o -v -9 -r "$env:DIST.zip" "$env:DIST" ( cat README; echo; echo . ) | zip -z "$env:DIST.zip" exit 0 # # "@ $pkg.Replace("`r`n","`n") | Set-Content -Path pkg.sh -Force c:\cygwin\bin\bash.exe -e -l -c "/bin/chmod +x pkg.sh && ./pkg.sh" if ($LASTEXITCODE -ne 0) { Write-Host -ForegroundColor Red "Failed to package!" Break } Write-Host -ForegroundColor Green "Packaging successful!"
Shell Script
aircrack-ng/build/pvs-studio.sh
#!/bin/sh set -euf pvs-studio-analyzer analyze -a "GA;OP;CS" -s .pvs-suppress -j8 -o PVS-Studio.log plog-converter -a 'GA:1,2,3;64:1,2,3;OP:1,2,3' -d V1032,V1042,V597,V809,V802 -t errorfile PVS-Studio.log plog-converter -a 'GA:1,2,3;64:1,2,3;OP:1,2,3' -d V1032,V1042,V597,V809,V802 -t csv -o pvs-report.csv PVS-Studio.log ./build/count-pvs-bugs.py pvs-report.csv 98
aircrack-ng/build/valgrind.supp
{ <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: possible fun:calloc fun:allocate_dtv fun:_dl_allocate_tls fun:allocate_stack fun:pthread_create@@GLIBC_2.2.5 fun:main } { <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: definite fun:malloc fun:hwloc_bitmap_dup fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:ac_cpuset_distribute ... fun:main } { <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: indirect fun:malloc fun:hwloc_bitmap_dup fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:hwloc_distrib fun:ac_cpuset_distribute ... fun:main } { <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: reachable fun:calloc fun:_dlerror_run fun:dlopen@@GLIBC_2.2.5 fun:ac_crypto_engine_loader_load fun:load_aircrack_crypto_dso fun:main } { <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: reachable fun:calloc fun:numa_bitmask_alloc ... } { <insert_a_suppression_name_here> Memcheck:Leak match-leak-kinds: reachable ... fun:call_init.part.0 fun:call_init fun:_dl_init ... }
aircrack-ng/build/coccinelle/convert_u_int_form.cocci
@@ typedef u_int64_t; typedef uint64_t; @@ -u_int64_t +uint64_t @@ typedef u_int32_t; typedef uint32_t; @@ -u_int32_t +uint32_t @@ typedef u_int16_t; typedef uint16_t; @@ -u_int16_t +uint16_t @@ typedef u_int8_t; typedef uint8_t; @@ -u_int8_t +uint8_t
M4 Macro
aircrack-ng/build/m4/aircrack_ng_airpcap.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_AIRPCAP], [ AC_ARG_WITH(airpcap, [AS_HELP_STRING([--with-airpcap=DIR], [use given DIR for the Airpcap library])]) case $with_airpcap in no | "") AIRPCAP=no ;; *) AC_MSG_CHECKING([for 32-bit environment]) case "$(uname -m)" in x86_64* | amd64*) AC_MSG_RESULT([no]) AIRPCAP_LIB="bin/x64" ;; *) AC_MSG_RESULT([yes]) AIRPCAP_LIB="bin/x86" ;; esac AC_MSG_CHECKING([for airpcap.h]) if test -r "$with_airpcap/Airpcap_Devpack/include/airpcap.h" ; then AIRPCAP_CFLAGS="-I$with_airpcap/Airpcap_Devpack/include" AIRPCAP_LIBS="-L$with_airpcap/Airpcap_Devpack/${AIRPCAP_LIB} -lairpcap" AC_SUBST(AIRPCAP_CFLAGS) AC_SUBST(AIRPCAP_LIBS) AC_DEFINE([HAVE_AIRPCAP], [1], [Define if you have AirPcap.]) AC_MSG_RESULT([yes]) AIRPCAP=yes else AC_MSG_ERROR([airpcap.h could not be found in $with_airpcap/Airpcap_Devpack/include]) AIRPCAP=no fi ;; esac AM_CONDITIONAL([AIRPCAP], [test "$AIRPCAP" = yes]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_asan.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_ASAN], [ AC_ARG_ENABLE(asan, AS_HELP_STRING([--enable-asan], [Enable AddressSanitizer (ASAN)]), [asan=$enableval], [asan=no]) if test "x$asan" != "xno"; then # Assume both C and C++ compiler either support ASAN or not. LDFLAGS_saved="$LDFLAGS" LDFLAGS="$LDFLAGS -fsanitize=address" AX_CHECK_COMPILE_FLAG([-fsanitize=address], [ CFLAGS="$CFLAGS -fsanitize=address -DSANITIZE_ADDRESS=1" CXXFLAGS="$CXXFLAGS -fsanitize=address -DSANITIZE_ADDRESS=1" ], [LDFLAGS="$LDFLAGS_saved"]) fi ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_code_coverage.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_CODE_COVERAGE], [ AX_REQUIRE_DEFINED([AX_CODE_COVERAGE]) AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) CODE_COVERAGE_IGNORE_PATTERN="/usr/include/\* /usr/local/include/\* /usr/lib/gcc/\* /usr/local/lib/gcc/\*" AC_SUBST(CODE_COVERAGE_IGNORE_PATTERN) CODE_COVERAGE_BRANCH_COVERAGE=1 AC_SUBST(CODE_COVERAGE_BRANCH_COVERAGE) AX_CODE_COVERAGE ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_compat.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2020-2022 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_COMPAT], [ AC_CHECK_HEADERS([bsd/string.h], [HAVE_BSD_STRING_H=yes], [HAVE_BSD_STRING_H=no]) AM_CONDITIONAL([HAVE_BSD_STRING_H], [test "$HAVE_BSD_STRING_H" = yes]) AC_CHECK_LIB([bsd], [strlcpy], [ LIBS="$LIBS -lbsd" ], [:]) AC_CHECK_FUNCS([strlcpy strlcat], [:]) have_bsd=no if test "$cross_compiling" != yes then AC_RUN_IFELSE([AC_LANG_PROGRAM([ #include <stdlib.h> #include <string.h> ],[ #if defined(__APPLE__) && defined(__MACH__) exit(0); /* Apple has these as macros */ #endif #ifndef strlcpy exit(1); #endif ])], [have_bsd=yes]) fi AM_CONDITIONAL([INCLUDE_COMPAT_STRLCAT], [test "$ac_cv_func_strlcat" != yes && test "$have_bsd" != yes]) AM_CONDITIONAL([INCLUDE_COMPAT_STRLCPY], [test "$ac_cv_func_strlcpy" != yes && test "$have_bsd" != yes]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_compiler.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_COMPILER], [ AX_REQUIRE_DEFINED([AX_COMPILER_VENDOR]) AX_REQUIRE_DEFINED([AX_COMPILER_VERSION]) AX_REQUIRE_DEFINED([AX_COMPARE_VERSION]) AX_REQUIRE_DEFINED([AX_CHECK_COMPILE_FLAG]) AX_REQUIRE_DEFINED([AX_CFLAGS_WARN_ALL]) AX_REQUIRE_DEFINED([AX_CXXFLAGS_WARN_ALL]) AX_REQUIRE_DEFINED([AX_APPEND_FLAG]) AX_COMPILER_VENDOR AX_COMPILER_VERSION saved_cflags="$CFLAGS" CFLAGS="" AX_CFLAGS_WARN_ALL AX_APPEND_FLAG($CFLAGS, [opt_cflags]) CFLAGS="$saved_cflags" saved_cxxflags="$CXXFLAGS" CXXFLAGS="" AX_CXXFLAGS_WARN_ALL AX_APPEND_FLAG($CXXFLAGS, [opt_cxxflags]) CXXFLAGS="$saved_cxxflags" case "$ax_cv_c_compiler_vendor" in clang) AX_APPEND_FLAG(-Wno-unused-command-line-argument, [opt_cppflags]) AX_APPEND_FLAG(-Wno-unused-command-line-argument, [opt_cflags]) AX_APPEND_FLAG(-Wno-unused-command-line-argument, [opt_cxxflags]) AX_APPEND_FLAG(-Wno-unused-command-line-argument, [opt_ldflags]) ;; esac AC_ARG_WITH(lto, [AS_HELP_STRING([--with-lto], [enable link-time optimizations])]) AS_IF([test "x$with_lto" = "xyes"], [ AX_CHECK_COMPILE_FLAG([-flto], [ AX_APPEND_FLAG(-flto, [opt_[]_AC_LANG_ABBREV[]flags]) AX_APPEND_FLAG(-flto, [opt_ldflags]) ]) ]) AC_ARG_WITH(opt, [AS_HELP_STRING([--without-opt], [disable -O3 optimizations])]) AS_IF([test "x$enable_code_coverage" = "xno"], [ case $with_opt in yes | "") AX_CHECK_COMPILE_FLAG([-O3], [ AX_APPEND_FLAG(-O3, [opt_[]_AC_LANG_ABBREV[]flags]) ]) ;; esac ]) AC_LANG_CASE([C], [ saved_cflags="$CFLAGS" AX_CHECK_COMPILE_FLAG([-std=gnu99], [ AX_APPEND_FLAG(-std=gnu99, [opt_[]_AC_LANG_ABBREV[]flags]) ]) AX_CHECK_COMPILE_FLAG([-fcommon], [ AX_APPEND_FLAG(-fcommon, [opt_[]_AC_LANG_ABBREV[]flags]) ]) case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in gnu|clang) AX_CHECK_COMPILE_FLAG([-Wstrict-overflow=2], [ AX_APPEND_FLAG(-Wstrict-overflow=2, [opt_[]_AC_LANG_ABBREV[]flags]) ]) ;; esac case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in intel) dnl warning 2218 is: result of call is not used AX_APPEND_FLAG(-diag-disable 2218, [opt_[]_AC_LANG_ABBREV[]flags]) ;; esac ]) AX_CHECK_COMPILE_FLAG([-fvisibility=hidden], [ AX_APPEND_FLAG(-fvisibility=hidden, [opt_[]_AC_LANG_ABBREV[]flags]) ]) case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in gnu|clang|intel) AX_COMPARE_VERSION([$ax_cv_[]_AC_LANG_ABBREV[]_compiler_version], [ge], [4.1], [gcc_over41=yes], [gcc_over41=x]) AX_COMPARE_VERSION([$ax_cv_[]_AC_LANG_ABBREV[]_compiler_version], [ge], [4.5], [gcc_over45=yes], [gcc_over45=x]) AX_COMPARE_VERSION([$ax_cv_[]_AC_LANG_ABBREV[]_compiler_version], [ge], [4.9], [gcc_over49=yes], [gcc_over49=x]) ;; esac AS_IF([test "x$enable_maintainer_mode" = "xyes"], [ AS_IF([test "x$gcc_over49" = "xyes"], [ AX_CHECK_COMPILE_FLAG([-pedantic], [ AX_APPEND_FLAG(-pedantic, [opt_[]_AC_LANG_ABBREV[]flags]) case "$ax_cv_c_compiler_vendor" in clang) AX_CHECK_COMPILE_FLAG([-Wno-newline-eof], [ AX_APPEND_FLAG(-Wno-newline-eof, [opt_[]_AC_LANG_ABBREV[]flags]) ]) AX_CHECK_COMPILE_FLAG([-Wno-language-extension-token], [ AX_APPEND_FLAG(-Wno-language-extension-token, [opt_[]_AC_LANG_ABBREV[]flags]) ]) AX_CHECK_COMPILE_FLAG([-Wno-gnu-statement-expression], [ AX_APPEND_FLAG(-Wno-gnu-statement-expression, [opt_[]_AC_LANG_ABBREV[]flags]) ]) ;; esac ]) ]) AX_CHECK_COMPILE_FLAG([-Wextra], [ AX_APPEND_FLAG(-Wextra, [opt_[]_AC_LANG_ABBREV[]flags]) ]) case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in intel) AX_APPEND_FLAG(-diag-disable remark, [opt_[]_AC_LANG_ABBREV[]flags]) ;; *) AX_CHECK_COMPILE_FLAG([-Werror], [ AX_APPEND_FLAG(-Werror, [opt_[]_AC_LANG_ABBREV[]flags]) ]) ;; esac AC_LANG_CASE([C], [ case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in gnu|clang|intel) AX_APPEND_FLAG(-Wstrict-prototypes, [opt_[]_AC_LANG_ABBREV[]flags]) ;; esac ]) AX_CHECK_COMPILE_FLAG([-Wpointer-arith], [ AX_APPEND_FLAG(-Wpointer-arith, [opt_[]_AC_LANG_ABBREV[]flags]) ]) case "$ax_cv_[]_AC_LANG_ABBREV[]_compiler_vendor" in gnu|clang) dnl BSD systems complain about CMocka using ,##__VA_ARGS__ dnl Suppress this warning AX_CHECK_COMPILE_FLAG([-Werror -Wno-gnu-zero-variadic-macro-arguments], [ AX_APPEND_FLAG(-Wno-gnu-zero-variadic-macro-arguments, [opt_[]_AC_LANG_ABBREV[]flags]) ]) ;; esac ]) ]) AC_DEFUN([AIRCRACK_NG_COMPILER_C], [ AC_LANG_PUSH([C]) AIRCRACK_NG_COMPILER AC_LANG_POP([C]) ]) AC_DEFUN([AIRCRACK_NG_COMPILER_CXX], [ AC_LANG_PUSH([C++]) AIRCRACK_NG_COMPILER AC_LANG_POP([C++]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_crypto.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017,2022 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_CRYPTO],[ AC_ARG_WITH(expensive-tests, [AS_HELP_STRING([--without-expensive-tests], [disable all the CPU-intensive unit-tests.])]) case "$with_expensive_tests" in yes | y | "") AX_APPEND_FLAG(-DEXPENSIVE_TESTS, [opt_[]_AC_LANG_ABBREV[]flags]) ;; esac AC_ARG_ENABLE(static-crypto, AS_HELP_STRING([--enable-static-crypto], [Enable statically linked OpenSSL libcrypto.]), [static_crypto=$enableval], [static_crypto=no]) if test "x$static_crypto" != "xno"; then AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT]) AX_EXT_HAVE_STATIC_LIB(ZLIB, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, z libz, compress) AX_EXT_HAVE_STATIC_LIB(OPENSSL, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, crypto libcrypto, HMAC, -lz -ldl) else AX_CHECK_OPENSSL([OPENSSL_FOUND=yes],[OPENSSL_FOUND=no]) AX_LIB_GCRYPT fi CRYPTO_CFLAGS= CRYPTO_INCLUDES= CRYPTO_LIBS= CRYPTO_LDFLAGS= CRYPTO_TYPE= AC_MSG_CHECKING([for OpenSSL or libgcrypt]) if test x"$GCRYPT_LIBS" != x; then AC_MSG_RESULT([libgcrypt]) CRYPTO_CFLAGS="$GCRYPT_CFLAGS -DUSE_GCRYPT" CRYPTO_INCLUDES="" CRYPTO_LIBS="$GCRYPT_LIBS" CRYPTO_LDFLAGS="" CRYPTO_TYPE=libgcrypt elif test "$OPENSSL_FOUND" = yes; then AC_MSG_RESULT([OpenSSL]) CRYPTO_INCLUDES="$OPENSSL_INCLUDES" CRYPTO_LIBS="$OPENSSL_LIBS" CRYPTO_LDFLAGS="$OPENSSL_LDFLAGS" CRYPTO_TYPE=openssl AC_CHECK_HEADERS([openssl/cmac.h], [ AC_DEFINE([HAVE_OPENSSL_CMAC_H], [1], [Define if you have openssl/cmac.h header present.]) HAVE_CMAC=yes ], [HAVE_CMAC=no]) OPENSSL_WITH_AES= OPENSSL_WITH_ARCFOUR= OPENSSL_WITH_CMAC= OPENSSL_WITH_MD5= OPENSSL_WITH_SHA1= OPENSSL_WITH_SHA256= save_LIBS="$LIBS" save_LDFLAGS="$LDFLAGS" save_CPPFLAGS="$CPPFLAGS" LDFLAGS="$LDFLAGS $OPENSSL_LDFLAGS" LIBS="$OPENSSL_LIBS $LIBS" CPPFLAGS="$OPENSSL_INCLUDES $CPPFLAGS -Werror" AC_MSG_CHECKING([whether OpenSSL supports MD5]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include <openssl/evp.h>], [ EVP_md5(); ])], [ OPENSSL_WITH_MD5=1 AC_DEFINE([OPENSSL_WITH_MD5], [1], [Define if your OpenSSL has an MD5 implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) AC_MSG_CHECKING([whether OpenSSL supports AES]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include <openssl/evp.h>], [EVP_aes_128_cbc()])], [ OPENSSL_WITH_AES=1 AC_DEFINE([OPENSSL_WITH_AES], [1], [Define if your OpenSSL has an AES_128_cbc implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) AC_MSG_CHECKING([whether OpenSSL supports ARCFOUR]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([ #include <openssl/rc4.h> #include <string.h> ], [ #if OPENSSL_VERSION_NUMBER < 0x30000000L RC4_KEY ctx; memset(&ctx, 0, sizeof(ctx)); #else # error "no ARCFOUR here!!!" #endif ])], [ OPENSSL_WITH_ARCFOUR=1 AC_DEFINE([OPENSSL_WITH_ARCFOUR], [1], [Define if your OpenSSL has an ARC4 implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) if test x"$HAVE_CMAC" = xyes; then AC_MSG_CHECKING([whether OpenSSL supports CMAC]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include <openssl/cmac.h>], [ #if OPENSSL_VERSION_NUMBER >= 0x30000000L # error "No CMAC here!!!" #else CMAC_CTX_new() #endif ])], [ OPENSSL_WITH_CMAC=1 AC_DEFINE([OPENSSL_WITH_CMAC], [1], [Define if your OpenSSL has a CMAC implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) fi AC_MSG_CHECKING([whether OpenSSL supports SHA-1]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include <openssl/evp.h>], [ EVP_sha1(); ])], [ OPENSSL_WITH_SHA1=1 AC_DEFINE([OPENSSL_WITH_SHA1], [1], [Define if your OpenSSL has an SHA-1 implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) AC_MSG_CHECKING([whether OpenSSL supports SHA-256]) AC_LINK_IFELSE( [AC_LANG_PROGRAM([#include <openssl/evp.h>], [ EVP_sha256(); ])], [ OPENSSL_WITH_SHA256=1 AC_DEFINE([OPENSSL_WITH_SHA256], [1], [Define if your OpenSSL has an SHA-256 implementation.]) AC_MSG_RESULT([yes]) ], [ AC_MSG_RESULT([no]) ]) LDFLAGS="$save_LDFLAGS" LIBS="$save_LIBS" CPPFLAGS="$save_CPPFLAGS" else AC_MSG_ERROR([one of OpenSSL or Gcrypt was not found]) fi AC_SUBST(CRYPTO_CFLAGS) AC_SUBST(CRYPTO_INCLUDES) AC_SUBST(CRYPTO_LIBS) AC_SUBST(CRYPTO_LDFLAGS) AM_CONDITIONAL([LIBGCRYPT], [test "$CRYPTO_TYPE" = libgcrypt]) AM_CONDITIONAL([GCRYPT_WITH_AES], [test x"${GCRYPT_WITH_AES}" != x]) AM_CONDITIONAL([GCRYPT_WITH_ARCFOUR], [test x"${GCRYPT_WITH_ARCFOUR}" != x]) AM_CONDITIONAL([GCRYPT_WITH_CMAC], [test x"${GCRYPT_WITH_CMAC_AES}" != x]) AM_CONDITIONAL([GCRYPT_WITH_MD5], [test x"${GCRYPT_WITH_MD5}" != x]) AM_CONDITIONAL([GCRYPT_WITH_SHA1], [test x"${GCRYPT_WITH_SHA1}" != x]) AM_CONDITIONAL([GCRYPT_WITH_SHA256], [test x"${GCRYPT_WITH_SHA256}" != x]) AM_CONDITIONAL([OPENSSL_WITH_AES], [test x"${OPENSSL_WITH_AES}" != x]) AM_CONDITIONAL([OPENSSL_WITH_ARCFOUR], [test x"${OPENSSL_WITH_ARCFOUR}" != x]) AM_CONDITIONAL([OPENSSL_WITH_CMAC], [test x"${OPENSSL_WITH_CMAC}" != x]) AM_CONDITIONAL([OPENSSL_WITH_MD5], [test x"${OPENSSL_WITH_MD5}" != x]) AM_CONDITIONAL([OPENSSL_WITH_SHA1], [test x"${OPENSSL_WITH_SHA1}" != x]) AM_CONDITIONAL([OPENSSL_WITH_SHA256], [test x"${OPENSSL_WITH_SHA256}" != x]) AM_CONDITIONAL([STATIC_CRYPTO], [test "$static_crypto" != no]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_duma.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_DUMA], [ AX_REQUIRE_DEFINED([AC_CHECK_LIB]) AC_ARG_WITH(duma, [AS_HELP_STRING([--with-duma[[=auto|yes|no]]], [use DUMA library, [default=auto]])]) case $with_duma in yes | "" | auto) AC_CHECK_LIB([duma], [malloc], [ LIBS="$LIBS -lduma" DUMA=yes ],[ DUMA=no ]) ;; *) DUMA=no ;; esac ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_ethtool.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_ETHTOOL],[ case "$target" in *-linux-*) AC_ARG_VAR([ETHTOOL],[Use this ethtool for Airmon-ng.]) dnl Allow env override but do not be fooled by 'ETHTOOL=t'. test t = "$ETHTOOL" && unset ETHTOOL AC_CHECK_PROG([ETHTOOL], [ethtool], [$as_dir/$ac_word$ac_exec_ext], [], [$ETHTOOL_PATH$PATH_SEPARATOR$PATH$PATH_SEPARATOR/sbin$PATH_SEPARATOR/usr/sbin$PATH_SEPARATOR/usr/local/sbin]) AS_IF([test "x$ETHTOOL" = "x"],[ AC_MSG_WARN([ethtool not found; cannot build Airmon-ng]) ETHTOOL_FOUND="not found, skipping Airmon-ng" ], [ ETHTOOL_FOUND="yes, found $ETHTOOL" ]) ;; *) ETHTOOL_FOUND="not required" ;; esac ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_expect.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2019 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_EXPECT],[ AC_ARG_VAR([EXPECT],[Use this expect tool for tests.]) dnl Allow env override but do not be fooled by 'EXPECT=t'. test t = "$EXPECT" && unset EXPECT AC_CHECK_PROG([EXPECT], [expect], [$as_dir/$ac_word$ac_exec_ext], []) AS_IF([test "x$EXPECT" = "x"],[ AC_MSG_WARN([expect not found; cannot run some tests]) EXPECT_FOUND="not found" ], [ EXPECT_FOUND="yes" ]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_experimental.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_EXPERIMENTAL], [ AC_ARG_WITH(experimental, [AS_HELP_STRING([--with-experimental=[[yes|no]]], [use experimental features of Aircrack-ng, [default=yes]])]) case $with_experimental in yes|y|"" ) EXPERIMENTAL=yes ;; *) EXPERIMENTAL=no ;; esac AM_CONDITIONAL([EXPERIMENTAL], [test "$EXPERIMENTAL" = yes]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_ext_scripts.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_EXT_SCRIPTS], [ AC_CHECK_PROGS([PYTHON], [python python3 python2]) AS_IF([test x"$PYTHON" = x], [ AC_MSG_RESULT(failed to find Python) ], [ pc_cv_python_site_dir=`$PYTHON -c 'import site; print(site.getsitepackages()[[-1]])'` AC_SUBST([pythondir], [$pc_cv_python_site_dir]) AC_SUBST([pkgpythondir], [\${pythondir}/$PACKAGE_NAME]) ]) AC_CHECK_PROGS([READLINK], [greadlink readlink]) AC_ARG_WITH(ext-scripts, [AS_HELP_STRING([--with-ext-scripts], [enable experimental, extra scripts])]) case "$with_ext_scripts" in yes) AC_MSG_CHECKING([for Python requirement for ext-scripts]) AS_IF([test "x$PYTHON" = x], [ AC_MSG_FAILURE([not found]) ], [ AC_MSG_RESULT([found; $PYTHON]) ]) EXT_SCRIPTS=yes ;; *) EXT_SCRIPTS=no ;; esac AM_CONDITIONAL([EXT_SCRIPTS], [test "$EXT_SCRIPTS" = yes]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_hwloc.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2018 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_HWLOC], [ AC_ARG_ENABLE([hwloc],[AS_HELP_STRING([--enable-hwloc], [include hwloc library, [default=yes]])]) HAVE_HWLOC=no AC_ARG_ENABLE(static-hwloc, AS_HELP_STRING([--enable-static-hwloc], [Enable statically linked OpenMPI libhwloc.]), [static_hwloc=$enableval], [static_hwloc=no]) if test "x$static_hwloc" != "xno"; then enable_hwloc=yes fi AS_IF([test "x$enable_hwloc" != "xno"], [ if test "x$static_hwloc" != "xno"; then AC_REQUIRE([AX_EXT_HAVE_STATIC_LIB_DETECT]) AX_EXT_HAVE_STATIC_LIB(HWLOC, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, hwloc libhwloc, hwloc_bitmap_alloc, -lnuma -lltdl) AX_EXT_HAVE_STATIC_LIB(NUMA, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, numa libnuma, numa_bitmask_setbit, -lltdl) AX_EXT_HAVE_STATIC_LIB(LTDL, ${DEFAULT_STATIC_LIB_SEARCH_PATHS}, ltdl libltdl, lt_dlopen, -ldl) HWLOC_LIBS="$HWLOC_LIBS $NUMA_LIBS $LTDL_LIBS" AC_SUBST([HWLOC_LIBS]) HAVE_HWLOC=yes else PKG_CHECK_MODULES(HWLOC, hwloc, HWLOC_FOUND=yes, HWLOC_FOUND=no) fi AS_IF([test "x$HWLOC_FOUND" = "xyes"], [ AC_DEFINE([HAVE_HWLOC], [1], [Define if you have hwloc library.]) HAVE_HWLOC=yes ]) ]) AM_CONDITIONAL([HAVE_HWLOC], [test "$HWLOC_FOUND" = yes]) AM_CONDITIONAL([STATIC_HWLOC], [test "$static_hwloc" != no]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_jemalloc.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2018 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_JEMALLOC], [ AX_REQUIRE_DEFINED([AC_CHECK_LIB]) AC_ARG_WITH(jemalloc, [AS_HELP_STRING([--with-jemalloc[[=yes|no]]], [use jemalloc library, [default=no]])]) case $with_jemalloc in yes) AC_CHECK_LIB([jemalloc], [mallocx], [ LIBS="$LIBS -ljemalloc" JEMALLOC=yes ],[ JEMALLOC=no ]) ;; *) JEMALLOC=no ;; esac ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_largefile.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([_AIRCRACK_NG_LARGEFILE_TEST], [ AC_LANG_PUSH([C++]) AC_CHECK_SIZEOF([off_t]) AC_SYS_LONG_FILE_NAMES AC_SYS_LARGEFILE AC_FUNC_FSEEKO AC_CHECK_SIZEOF([off_t]) AC_LANG_POP([C++]) ac_cv_sizeof_off_t_cpp=$ac_cv_sizeof_off_t unset ac_cv_sizeof_off_t AC_LANG_PUSH([C]) AC_CHECK_SIZEOF([off_t]) AC_SYS_LONG_FILE_NAMES AC_SYS_LARGEFILE AC_FUNC_FSEEKO AC_CHECK_SIZEOF([off_t]) AC_LANG_POP([C]) ac_cv_sizeof_off_t_c=$ac_cv_sizeof_off_t unset ac_cv_sizeof_off_t ]) AC_DEFUN([AIRCRACK_NG_LARGEFILE], [ _AIRCRACK_NG_LARGEFILE_TEST AS_IF([test ".$ac_cv_sizeof_off_t_c" != ".$ac_cv_sizeof_off_t_cpp"], [ AS_IF([test $ac_cv_sizeof_off_t_cpp -eq 4], [ AC_DEFINE([_FILE_OFFSET_BITS], [64], [Define this if 64-bit file access requires this define to be present]) CXXFLAGS="$CXXFLAGS -D_FILE_OFFSET_BITS=64" ]) AS_IF([test $ac_cv_sizeof_off_t_c -eq 4], [ AC_DEFINE([_FILE_OFFSET_BITS], [64], [Define this if 64-bit file access requires this define to be present]) CFLAGS="$CFLAGS -D_FILE_OFFSET_BITS=64" ]) unset ac_cv_sizeof_off_t _AIRCRACK_NG_LARGEFILE_TEST AS_IF([test ".$ac_cv_sizeof_off_t_c" != ".$ac_cv_sizeof_off_t_cpp"], [ AC_MSG_ERROR([Cannot figure out how to make C and C++ compilers have the same sized off_t.]) ]) ]) AS_IF([test ".$ac_cv_sys_file_offset_bits$ac_cv_sys_large_files" != ".nono"], [ AC_DEFINE([_LARGEFILE64_SOURCE], [1], [Define this if 64-bit file access requires this define to be present]) ]) ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_libnl.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_LIBNL], [ AC_ARG_ENABLE([libnl],[AS_HELP_STRING([--enable-libnl], [include netlink library, [default=yes on Linux]])]) _aircrack_ng_enable_libnl=no case "$host_os" in LINUX* | linux*) _aircrack_ng_enable_libnl=yes ;; esac case "$_aircrack_ng_enable_libnl" in yes) case "$enable_libnl" in yes | "" | auto) PKG_CHECK_MODULES([LIBNL3X], [libnl-3.0 >= 3.2], [ # CPPFLAGS="$CPPFLAGS $LIBNL3X_CFLAGS -DCONFIG_LIBNL30 -DCONFIG_LIBNL" # LIBS="$LIBS $LIBNL3X_LIBS -lnl-genl-3" AC_DEFINE([CONFIG_LIBNL30], [1], [Define this if libnl-3.0 is present on your system]) LIBNL_CFLAGS="$LIBNL3X_CFLAGS" LIBNL_LIBS="$LIBNL3X_LIBS -lnl-genl-3" NLLIBNAME="libnl-3.0" ], [ PKG_CHECK_MODULES([LIBNL31], [libnl-3.1 = 3.1], [ AC_DEFINE([CONFIG_LIBNL30], [1], [Define this if libnl-3.0 is present on your system]) LIBNL_CFLAGS="$LIBNL31_CFLAGS" LIBNL_LIBS="$LIBNL31_LIBS -lnl-genl" NLLIBNAME="libnl-3.1" ], [ PKG_CHECK_MODULES([LIBNL30], [libnl-3.0 >= 3], [ AC_DEFINE([CONFIG_LIBNL30], [1], [Define this if libnl-3.0 is present on your system]) LIBNL_CFLAGS="$LIBNL30_CFLAGS" LIBNL_LIBS="$LIBNL30_LIBS -lnl-genl" NLLIBNAME="libnl-3.0" ], [ PKG_CHECK_MODULES([LIBNL1], [libnl-1 >= 1], [ LIBNL_CFLAGS="$LIBNL1_CFLAGS" LIBNL_LIBS="$LIBNL1_LIBS" NLLIBNAME="libnl-1" ], [ PKG_CHECK_MODULES([LIBNLT], [libnl-tiny >= 1], [ AC_DEFINE([CONFIG_LIBNL20], [1], [Define this if libnl-tiny is present on your system]) LIBNL_CFLAGS="$LIBNLT_CFLAGS" LIBNL_LIBS="$LIBNLT_LIBS" NLLIBNAME="libnl-tiny" ], [ AC_MSG_RESULT([could not find development files for any supported version of libnl. install either libnl1 or libnl3.]) NLLIBNAME="" ]) ]) ]) ]) ]) AC_SUBST([LIBNL_CFLAGS]) AC_SUBST([LIBNL_LIBS]) AC_SUBST([NLLIBNAME]) if test "x$NLLIBNAME" = x; then NLLIBNAME_FOUND="no" else NLLIBNAME_FOUND="yes, found $NLLIBNAME" AC_DEFINE([CONFIG_LIBNL], [1], [Define this if you have any supported netlink library required]) fi ;; *) NLLIBNAME_FOUND="not enabled" ;; esac ;; *) NLLIBNAME_FOUND="not required" ;; esac ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_mac.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_MAC],[ AX_REQUIRE_DEFINED([AC_CHECK_HEADER])[]dnl AX_REQUIRE_DEFINED([AC_CHECK_FILE])[]dnl AC_ARG_WITH(xcode, [AS_HELP_STRING([--with-xcode], [enable XCode support])]) case "$host_os" in DARWIN*|MACOS*|darwin*|macos*) dnl dnl Homebrew dnl AC_ARG_VAR([BREW],[Use this brew for macOS dependencies.]) dnl Allow env override but do not be fooled by 'BREW=t'. test t = "$BREW" && unset BREW AC_CHECK_PROG([BREW], [brew], [$as_dir/$ac_word$ac_exec_ext], [], [$BREW_PATH$PATH_SEPARATOR$PATH$PATH_SEPARATOR/bin$PATH_SEPARATOR/usr/bin$PATH_SEPARATOR/usr/local/bin]) AS_IF([test "x$BREW" = "x"],[ AC_MSG_WARN([Homebrew not found]) BREW_FOUND=no ], [ BREW_FOUND=yes AC_MSG_CHECKING([for openssl availability within Brew]) AS_IF([! $BREW --prefix --installed openssl 2>/dev/null], [ AC_MSG_RESULT([no]) AC_MSG_CHECKING([for openssl@1.1 availability within Brew]) AS_IF([! $BREW --prefix --installed openssl@1.1 2>/dev/null], [ AC_MSG_RESULT([no]) AC_MSG_CHECKING([for openssl@3 availability within Brew]) AS_IF([! $BREW --prefix --installed openssl@3 2>/dev/null], [ AC_MSG_RESULT([no]) ], [ dnl AC_MSG_RESULT([yes]) CFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl@3)/include" CXXFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl@3)/include" CPPFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl@3)/include" LDFLAGS="-L$($BREW --prefix openssl@3)/lib" ]) ], [ dnl AC_MSG_RESULT([yes]) CFLAGS="-I$($BREW --prefix openssl@1.1)/include" CXXFLAGS="-I$($BREW --prefix openssl@1.1)/include" CPPFLAGS="-I$($BREW --prefix openssl@1.1)/include" LDFLAGS="-L$($BREW --prefix openssl@1.1)/lib" ]) ], [ dnl AC_MSG_RESULT([yes]) CFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl)/include" CXXFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl)/include" CPPFLAGS="-Wno-deprecated-declarations -I$($BREW --prefix openssl)/include" LDFLAGS="-L$($BREW --prefix openssl)/lib" ]) ]) AC_CHECK_FILE(/usr/local/Homebrew, [ CPPFLAGS="$CPPFLAGS -I/usr/local/include" ]) dnl MacPorts AC_CHECK_FILE(/opt/local/include, [ CPPFLAGS="$CPPFLAGS -I/opt/local/include -I../.." OSX_ALT_FLAGS=true AC_CHECK_FILE(/opt/local/lib, [ LDFLAGS="$LDFLAGS -L/opt/local/lib" ], [ AC_MSG_ERROR([MacPorts installation seems broken, have includes but no libs.]) ]) ]) dnl XCode case $with_xcode in yes | "") AC_CHECK_FILE(/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr/include, [ CPPFLAGS="$CPPFLAGS -I/Applications/Xcode.app/Contents/Developer/Toolchains/XcodeDefault.xctoolchain/usr/lib/swift-migrator/sdk/MacOSX.sdk/usr/include/ -D_XCODE -I../.." OSX_ALT_FLAGS=true ]) ;; esac ;; esac ])
M4 Macro
aircrack-ng/build/m4/aircrack_ng_os_detect.m4
dnl Aircrack-ng dnl dnl Copyright (C) 2017 Joseph Benden <joe@benden.us> dnl dnl Autotool support was written by: Joseph Benden <joe@benden.us> dnl dnl This program is free software; you can redistribute it and/or modify dnl it under the terms of the GNU General Public License as published by dnl the Free Software Foundation; either version 2 of the License, or dnl (at your option) any later version. dnl dnl This program is distributed in the hope that it will be useful, dnl but WITHOUT ANY WARRANTY; without even the implied warranty of dnl MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the dnl GNU General Public License for more details. dnl dnl You should have received a copy of the GNU General Public License dnl along with this program; if not, write to the Free Software dnl Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301, USA dnl dnl In addition, as a special exception, the copyright holders give dnl permission to link the code of portions of this program with the dnl OpenSSL library under certain conditions as described in each dnl individual source file, and distribute linked combinations dnl including the two. dnl dnl You must obey the GNU General Public License in all respects dnl for all of the code used other than OpenSSL. dnl dnl If you modify file(s) with this exception, you may extend this dnl exception to your dnl version of the file(s), but you are not obligated dnl to do so. dnl dnl If you dnl do not wish to do so, delete this exception statement from your dnl version. dnl dnl If you delete this exception statement from all source files in the dnl program, then also delete it here. AC_DEFUN([AIRCRACK_NG_OS_DETECT],[ case "$host_os" in cygwin* | msys*) OS=cygwin ;; darwin* | macos*) OS=darwin ;; linux*) OS=linux ;; netbsd* | NetBSD*) OS=netbsd ;; openbsd* | OpenBSD*) OS=openbsd ;; freebsd* | FreeBSD* | hardenedbsd* | hbsd* | dragonfly* | DragonFly* | trueos* | TrueOS* | midnightbsd* | MidnightBSD*) OS=freebsd ;; *) OS=dummy ;; esac AM_CONDITIONAL([CYGWIN], [test "$OS" = cygwin]) AM_CONDITIONAL([DARWIN], [test "$OS" = darwin]) AM_CONDITIONAL([LINUX], [test "$OS" = linux]) AM_CONDITIONAL([NETBSD], [test "$OS" = netbsd]) AM_CONDITIONAL([FREEBSD], [test "$OS" = freebsd]) AM_CONDITIONAL([OPENBSD], [test "$OS" = openbsd]) AM_CONDITIONAL([DUMMY], [test "$OS" = dummy]) ])