* fix: added better debug logging for core.Exec (fixes #1125). * new: added support for 29bit obd2 identifiers. * new: implemented can.obd2 builtin parser. * fix: fixed address reload on api.rest. * new: can.fuzz now supports an optional size argument. * fix: can.fuzz now expects an hexadecimal frame id. * fix: stop can.dump reader when can.recon is stopped. * new: can.dump reader will now sleep for the correct amount of time. * new: implemented can.dup and can.dump.inject to read a candump log file. * refact: refactored can dbc logic. * new: added new wifi cipher suites and auth types. * new: added new wifi RSN parsing. * fix: fixed a nil pointer dereference when wifi.show is executed before wifi.recon on. * fix: fixed handshakes filename if wifi.aggregate is false. * fix: expanding file path in file read api. * fix: initialize wifi module state correctly. * new: embedded ui. * new: added CAN to session json object. * fix: do not allow wifi.recon if wifi.bruteforce is running. * fix: added p2p_disabled=1 for wifi.bruteforce on linux. * new: implemented wifi.bruteforce for linux. * fix: bring interface down for mac.changer module. * fix: do not attempt mac lookup if gateway is empty. * fix: do not report a routing error if the interface is disconnected. * fix: make sure that wifi channels are unique and sorted. OBS-URL: https://build.opensuse.org/package/show/network:utilities/bettercap?expand=0&rev=5
85 lines
2.4 KiB
RPMSpec
85 lines
2.4 KiB
RPMSpec
#
|
|
# spec file for package bettercap
|
|
#
|
|
# Copyright (c) 2024 SUSE LLC
|
|
# Copyright (c) 2019-2024, Martin Hauke <mardnh@gmx.de>
|
|
#
|
|
# All modifications and additions to the file contributed by third parties
|
|
# remain the property of their copyright owners, unless otherwise agreed
|
|
# upon. The license for this file, and modifications and additions to the
|
|
# file, is the same license as for the pristine package itself (unless the
|
|
# license for the pristine package is not an Open Source License, in which
|
|
# case the license is the MIT License). An "Open Source License" is a
|
|
# license that conforms to the Open Source Definition (Version 1.9)
|
|
# published by the Open Source Initiative.
|
|
|
|
# Please submit bugfixes or comments via https://bugs.opensuse.org/
|
|
#
|
|
|
|
|
|
Name: bettercap
|
|
Version: 2.4.0
|
|
Release: 0
|
|
Summary: Swiss army knife for network attacks and monitoring
|
|
License: GPL-3.0-or-later
|
|
Group: Productivity/Networking/Diagnostic
|
|
URL: https://www.bettercap.org/
|
|
#Git-Clone: https://github.com/bettercap/bettercap.git
|
|
Source: %{name}-%{version}.tar.xz
|
|
Source1: vendor.tar.gz
|
|
BuildRequires: golang-packaging
|
|
BuildRequires: libpcap-devel
|
|
BuildRequires: pkgconfig
|
|
BuildRequires: systemd-rpm-macros
|
|
BuildRequires: golang(API) >= 1.9
|
|
BuildRequires: pkgconfig(libnetfilter_queue)
|
|
BuildRequires: pkgconfig(libusb-1.0)
|
|
Requires: libnetfilter_queue1
|
|
Recommends: iw
|
|
Recommends: wireless-tools
|
|
%{go_provides}
|
|
%{?systemd_requires}
|
|
|
|
%description
|
|
The Swiss Army knife for WiFi, Bluetooth Low Energy, wireless HID hijacking and
|
|
Ethernet networks reconnaissance and MITM attacks.
|
|
|
|
%prep
|
|
%autosetup -a 1
|
|
find . -type f -exec sed -i 's|%{_prefix}/local/|%{_prefix}/|g' {} \;
|
|
|
|
%build
|
|
go build \
|
|
-mod=vendor \
|
|
-buildmode=pie \
|
|
-o bettercap .
|
|
|
|
%install
|
|
install -Dm 0755 bettercap %{buildroot}%{_bindir}/bettercap
|
|
install -d %{buildroot}%{_sbindir}
|
|
install -d %{buildroot}%{_datadir}/bettercap
|
|
install -Dm 0644 bettercap.service %{buildroot}%{_unitdir}/%{name}.service
|
|
ln -s %{_sbindir}/service %{buildroot}%{_sbindir}/rc%{name}
|
|
|
|
%pre
|
|
%service_add_pre %{name}.service
|
|
|
|
%post
|
|
%service_add_post %{name}.service
|
|
|
|
%preun
|
|
%service_del_preun %{name}.service
|
|
|
|
%postun
|
|
%service_del_postun %{name}.service
|
|
|
|
%files
|
|
%license LICENSE.md
|
|
%doc README.md
|
|
%{_bindir}/bettercap
|
|
%{_unitdir}/%{name}.service
|
|
%{_sbindir}/rc%{name}
|
|
%dir %{_datadir}/bettercap
|
|
|
|
%changelog
|