.gear/aircrack-ng.spec | 152 ++++++++++++++++++++++++++ .gear/rules | 3 + .gear/tags/list | 1 + include/aircrack-ng/third-party/ethernet.h | 2 + include/aircrack-ng/third-party/ieee80211.h | 2 + include/aircrack-ng/third-party/if_llc.h | 2 + lib/radiotap/radiotap.h | 2 + scripts/Makefile.am | 2 +- scripts/airdrop-ng/Makefile.am | 6 - scripts/airgraph-ng/Makefile.am | 6 - scripts/airmon-ng.linux | 5 +- src/airventriloquist-ng/airventriloquist-ng.h | 2 + 12 files changed, 170 insertions(+), 15 deletions(-) diff --git a/.gear/aircrack-ng.spec b/.gear/aircrack-ng.spec new file mode 100644 index 00000000..f3583860 --- /dev/null +++ b/.gear/aircrack-ng.spec @@ -0,0 +1,152 @@ +%define _unpackaged_files_terminate_build 1 + +# LTO causes errors, disable it +%global optflags_lto %nil + +Name: aircrack-ng +Version: 1.7 +Release: alt2 + +Summary: 802.11 WEP and WPA-PSK key recovery program +License: GPLv2+ +Group: Networking/Other + +Url: http://aircrack-ng.org + +# https://github.com/aircrack-ng/aircrack-ng.git +Source: %name-%version.tar +Patch0: %name-%version-alt-build.patch + +BuildRequires(pre): rpm-build-python3 +BuildRequires: gcc-c++ +BuildRequires: libssl-devel libsqlite3-devel +BuildRequires: libnl-devel +BuildRequires: libpcre-devel +BuildRequires: libpcap-devel +BuildRequires: zlib-devel +BuildRequires: ethtool + +Requires: iw rfkill ethtool + +%description +Aircrack is an 802.11 WEP and WPA-PSK keys cracking program that can +recover keys once enough data packets have been captured. +It implements the standard FMS attack along with some optimizations +like KoreK attacks, thus making the attack much faster compared to +other WEP cracking tools. In fact aircrack is a set of tools for +auditing wireless networks. + +%package devel +Group: Development/C++ +Summary: Development files for %name + +%description devel +Development files for %name + +%prep +%setup +%patch0 -p1 + +# change python shebangs to python3 +find . -name '*.py' | xargs sed -i \ + -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \ + -e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \ + %nil + +find scripts -type f | xargs sed -i \ + -e '1s|^#!/usr/bin/env python$|#!/usr/bin/env python3|' \ + -e '1s|^#!/usr/bin/python$|#!/usr/bin/python3|' \ + %nil + +%build +export PYTHON=%__python3 + +%autoreconf +%configure --with-sqlite3 --with-experimental --with-ext-scripts +%make_build + +%install +%makeinstall_std + +%if "%python3_sitelibdir_noarch" != "%python3_sitelibdir" +mkdir -pv %buildroot%python3_sitelibdir +mv %buildroot%python3_sitelibdir_noarch/* %buildroot%python3_sitelibdir/ +%endif + +%files +%_bindir/* +%_sbindir/* +%_libdir/*.so* +%_man1dir/* +%_man8dir/* +%python3_sitelibdir/* +%_defaultdocdir/%name + +%files devel +%_includedir/* + +%changelog +* Thu Jun 30 2022 Pavel Nakonechnyi 1.7-alt2 +- Removes dependency on systemd (closes: #43117). + +* Thu Jun 30 2022 Pavel Nakonechnyi 1.7-alt1 +- Version updated to 1.7 + +* Mon Aug 30 2021 Aleksei Nikiforov 1.6-alt3 +- Disabled LTO. + +* Fri Dec 04 2020 Aleksei Nikiforov 1.6-alt2 +- Fixed build with -fno-common. +- Introduced %name-devel package. + +* Tue Mar 24 2020 Andrey Bychkov 1.6-alt1 +- Version updated to 1.6 +- porting to python3. + +* Tue Dec 17 2019 Aleksei Nikiforov 1.5.2-alt2 +- Fixed build with python. + +* Tue Jan 22 2019 Egor Zotov 1.5.2-alt1 +- Update to upstream version 1.5.2 +- Don't install airgraph-ng + +* Thu Sep 06 2018 Aleksei Nikiforov 1.3-alt1 +- Updated to upstream version 1.3. + +* Mon Apr 15 2013 Dmitry V. Levin (QA) 1.1-alt2.qa1 +- NMU: rebuilt for debuginfo. + +* Tue Dec 21 2010 Timur Aitov 1.1-alt2 +- Add iw in dependence + +* Tue Oct 12 2010 Timur Aitov 1.1-alt1 +- new version + +* Sun Oct 04 2009 Andrey Rahmatullin 1.0-alt3 +- fix installing of airolib-ng + +* Tue Sep 08 2009 Andrey Rahmatullin 1.0-alt2 +- 1.0 + +* Sat Aug 15 2009 Andrey Rahmatullin 1.0-alt1.rc4 +- 1.0-rc4 + +* Thu May 28 2009 Andrey Rahmatullin 1.0-alt1.rc3 +- 1.0-rc3 + +* Sun Mar 01 2009 Maxim Ivaniv 1.0-alt1.rc2 +- Version bump to 1.0-rc2 + +* Mon Jul 30 2007 Alex V. Myltsev 0.9.1-alt1 +- new version: critical security fix (remote execution), please upgrade +- more attacks, better SMP handling, bug fixes + +* Thu Apr 12 2007 Alex V. Myltsev 0.7-alt1 +- 0.7: many new features/attacks, bug fixes. + +* Wed Nov 22 2006 Alex V. Myltsev 0.6.2-alt1 +- 0.6.2: bug fixes. arpforge-ng is replaced by packetforge-ng. + +* Fri Sep 22 2006 Alex V. Myltsev 0.6.1-alt1 +- Initial build for Sisyphus. + diff --git a/.gear/rules b/.gear/rules new file mode 100644 index 00000000..0d80bef4 --- /dev/null +++ b/.gear/rules @@ -0,0 +1,3 @@ +spec: .gear/aircrack-ng.spec +tar: @version@:. +diff: @version@:. . name=@name@-@version@-alt-build.patch diff --git a/.gear/tags/list b/.gear/tags/list new file mode 100644 index 00000000..608c6602 --- /dev/null +++ b/.gear/tags/list @@ -0,0 +1 @@ +2cdfba41961aa2385e4505bde8536b4a9ce84c2c 1.7 diff --git a/include/aircrack-ng/third-party/ethernet.h b/include/aircrack-ng/third-party/ethernet.h index 75e9e532..61869505 100644 --- a/include/aircrack-ng/third-party/ethernet.h +++ b/include/aircrack-ng/third-party/ethernet.h @@ -8,6 +8,8 @@ #ifndef _NET_ETHERNET_H_ #define _NET_ETHERNET_H_ +#include + /* * Some basic Ethernet constants. */ diff --git a/include/aircrack-ng/third-party/ieee80211.h b/include/aircrack-ng/third-party/ieee80211.h index 81bdad41..164904ec 100644 --- a/include/aircrack-ng/third-party/ieee80211.h +++ b/include/aircrack-ng/third-party/ieee80211.h @@ -35,6 +35,8 @@ #ifndef _NET80211_IEEE80211_H_ #define _NET80211_IEEE80211_H_ +#include + /* * 802.11 protocol definitions. */ diff --git a/include/aircrack-ng/third-party/if_llc.h b/include/aircrack-ng/third-party/if_llc.h index 160a75d9..2d6970a0 100644 --- a/include/aircrack-ng/third-party/if_llc.h +++ b/include/aircrack-ng/third-party/if_llc.h @@ -34,6 +34,8 @@ #ifndef _NET_IF_LLC_H_ #define _NET_IF_LLC_H_ +#include + /* * IEEE 802.2 Link Level Control headers, for use in conjunction with * 802.{3,4,5} media access control methods. diff --git a/lib/radiotap/radiotap.h b/lib/radiotap/radiotap.h index bb5a41df..8fb0eacc 100644 --- a/lib/radiotap/radiotap.h +++ b/lib/radiotap/radiotap.h @@ -33,6 +33,8 @@ #endif #endif +#include + /** * struct ieee82011_radiotap_header - base radiotap header */ diff --git a/scripts/Makefile.am b/scripts/Makefile.am index dbaaf0f5..be0cb49d 100644 --- a/scripts/Makefile.am +++ b/scripts/Makefile.am @@ -38,7 +38,7 @@ # program, then also delete it here. if EXT_SCRIPTS -SUBDIRS = airdrop-ng airgraph-ng versuck-ng +SUBDIRS = airdrop-ng versuck-ng endif diff --git a/scripts/airdrop-ng/Makefile.am b/scripts/airdrop-ng/Makefile.am index 35d7355b..73a537d5 100644 --- a/scripts/airdrop-ng/Makefile.am +++ b/scripts/airdrop-ng/Makefile.am @@ -48,14 +48,8 @@ install-exec-local: ( cd $(srcdir) && $(MKDIR_P) $(DESTDIR)$(pkgpythondir) && \ $(PYTHON) $(srcdir)/setup.py install \ --prefix $(DESTDIR)$(prefix) \ - --record $(DESTDIR)$(pkgpythondir)/airdrop-ng-install_files.txt \ --verbose ) -uninstall-local: - cat $(DESTDIR)$(pkgpythondir)/airdrop-ng-install_files.txt | xargs rm -rf - rm -rf $(DESTDIR)$(pkgpythondir)/airdrop-ng-install_files.txt - rmdir $(DESTDIR)$(pkgpythondir) || : - clean-local: rm -fr $(shell $(READLINK) -f $(builddir))/build diff --git a/scripts/airgraph-ng/Makefile.am b/scripts/airgraph-ng/Makefile.am index e57bb6e9..28b9cfef 100644 --- a/scripts/airgraph-ng/Makefile.am +++ b/scripts/airgraph-ng/Makefile.am @@ -52,14 +52,8 @@ install-exec-local: ( cd $(srcdir) && $(MKDIR_P) $(DESTDIR)$(pkgpythondir) && \ $(PYTHON) $(srcdir)/setup.py install \ --prefix $(DESTDIR)$(prefix) \ - --record $(DESTDIR)$(pkgpythondir)/airgraph-ng-install_files.txt \ --verbose ) -uninstall-local: - cat $(DESTDIR)$(pkgpythondir)/airgraph-ng-install_files.txt | xargs rm -rf - rm -rf $(DESTDIR)$(pkgpythondir)/airgraph-ng-install_files.txt - rmdir $(DESTDIR)$(pkgpythondir) || : - clean-local: rm -fr $(shell $(READLINK) -f $(builddir))/build diff --git a/scripts/airmon-ng.linux b/scripts/airmon-ng.linux index 79608e30..23ad86fe 100755 --- a/scripts/airmon-ng.linux +++ b/scripts/airmon-ng.linux @@ -1168,10 +1168,11 @@ scanProcesses() { if [ "${1}" = "kill" ]; then if [ -x "$(command -v systemctl 2>&1)" ]; then + systemctlcmd="$(command -v systemctl 2>&1)" for service in network-manager NetworkManager avahi-daemon wicd; do - if systemctl status "${service}" > /dev/null 2>&1; then + if ${systemctlcmd} status "${service}" > /dev/null 2>&1; then killservice=1 - until systemctl stop "${service}" 2> /dev/null > /dev/null; do + until ${systemctlcmd} stop "${service}" 2> /dev/null > /dev/null; do killservice=$((killservice + 1)) if [ ${killservice} -gt 5 ]; then printf "Failed to stop %s, please stop it on your own.\n" "${service}" diff --git a/src/airventriloquist-ng/airventriloquist-ng.h b/src/airventriloquist-ng/airventriloquist-ng.h index b788eab0..852d296f 100644 --- a/src/airventriloquist-ng/airventriloquist-ng.h +++ b/src/airventriloquist-ng/airventriloquist-ng.h @@ -1,5 +1,7 @@ #include +#include + static const uint32_t crc32_ccitt_table[256] = {0x00000000, 0x77073096, 0xee0e612c, 0x990951ba, 0x076dc419, 0x706af48f, 0xe963a535, 0x9e6495a3, 0x0edb8832, 0x79dcb8a4, 0xe0d5e91e, 0x97d2d988,