%define _unpackaged_files_terminate_build 1 %define pypi_name wfuzz # tests require running docker containers %def_without check Name: python3-module-%pypi_name Version: 3.1.0 Release: alt4 Summary: Web application fuzzer License: GPL-2.0 Group: Development/Python3 Url: https://pypi.org/project/wfuzz Vcs: https://github.com/xmendez/wfuzz BuildArch: noarch Source0: %name-%version.tar Source1: %pyproject_deps_config_name Patch0: python3-module-wfuzz-3.1.0-alt-fix-relative-imports--bz44825.patch Patch1: wfuzz-3.1.0-Correct-dependency-specification-for-pyparsing.patch Patch2: python3-module-wfuzz-3.1.0-alt-do-not-use-distutils.patch %pyproject_runtimedeps_metadata BuildRequires(pre): rpm-build-pyproject %pyproject_builddeps_build %if_with check %add_pyproject_deps_check_filter pip-tools %pyproject_builddeps_metadata_extra dev %endif %description Wfuzz - The Web Fuzzer Wfuzz has been created to facilitate the task in web applications assessments and it is based on a simple concept: it replaces any reference to the FUZZ keyword by the value of a given payload. A payload in Wfuzz is a source of data. This simple concept allows any input to be injected in any field of an HTTP request, allowing to perform complex web security attacks in different web application components such as: parameters, authentication, forms, directories/files, headers, etc. Wfuzz is more than a web content scanner: * Wfuzz could help you to secure your web applications by finding and exploiting web application vulnerabilities. Wfuzz's web application vulnerability scanner is supported by plugins. * Wfuzz is a completely modular framework and makes it easy for even the newest of Python developers to contribute. Building plugins is simple and takes little more than a few minutes. * Wfuzz exposes a simple language interface to the previous HTTP requests/responses performed using Wfuzz or other tools, such as Burp. This allows you to perform manual and semi-automatic tests with full context and understanding of your actions, without relying on a web application scanner underlying implementation. It was created to facilitate the task in web applications assessments, it's a tool by pentesters for pentesters ;) %prep %setup %autopatch -p1 %pyproject_deps_resync_build %pyproject_deps_resync_metadata %build %pyproject_build %install %pyproject_install %check %__python3 tests/server_dir/simple_server.py >/dev/null 2>&1 & # TODO: find a way to run mitmproxy and httpbin services. %pyproject_run_pytest -vra %files %doc LICENSE README.md wordlist %_bindir/* %python3_sitelibdir/%pypi_name/ %python3_sitelibdir/%{pyproject_distinfo %pypi_name}/ %changelog * Thu Oct 12 2023 Anton Zhukharev 3.1.0-alt4 - Do not use distutils. * Tue Feb 14 2023 Stanislav Levin 3.1.0-alt3 - Fixed FTBFS (setuptools 66). * Sun Jan 15 2023 Anton Zhukharev 3.1.0-alt2 - fix wrong relative imports in ui/gui/controller.py (closes: #44825) - add explicit dependency on python3-module-pyparsing * Mon Dec 12 2022 Anton Zhukharev 3.1.0-alt1 - initial build for Sisyphus