File responder.spec of Package responder
#
# spec file for package responder
#
# Copyright (c) 2021-2026, 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: responder
Version: 3.2.2.0
Release: 0
Summary: NBT-NS, LLMNR & MDNS Responder
License: GPL-3.0-or-later
URL: https://github.com/lgandx/Responder/
Source: https://github.com/lgandx/Responder/archive/refs/tags/v%{version}.tar.gz#/Responder-%{version}.tar.gz
Source1: responder.sh
#Patch0: responder.patch
BuildRequires: fdupes
Requires: python3-netifaces
BuildArch: noarch
%description
A LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP
rogue authentication server supporting NTLMv1/NTLMv2/LMv2,
Extended Security NTLMSSP and Basic HTTP authentication.
%prep
%autosetup -n Responder-%{version}
find . -name .gitignore -exec rm {} \;
find . -name "*.py" -exec sed -i 's|#!%{_bindir}/env python|#!%{_bindir}/python3|g' {} \;
sed 's/\r$//' -i servers/HTTP.py
rm -v tools/MultiRelay/bin/*.c
chmod -x \
tools/MultiRelay/impacket-dev/impacket/dcerpc/v5/dhcpm.py \
README.md
%build
%install
install -d %{buildroot}%{_datadir}/%{name}
install -d %{buildroot}%{_localstatedir}/log/responder/logs
cp -arv * %{buildroot}%{_datadir}/%{name}
find %{buildroot}%{_datadir}/%{name} -type f |xargs chmod -x
install -D -m0755 %{SOURCE1} %{buildroot}%{_bindir}/responder
rm -v %{buildroot}%{_datadir}/responder/{LICENSE,README.md}
%fdupes %{buildroot}%{_datadir}/%{name}
%files
%license LICENSE
%doc README.md
%{_bindir}/responder
%{_datadir}/responder/
%dir %{_localstatedir}/log/responder
%{_localstatedir}/log/responder/logs
%changelog