%global _empty_manifest_terminate_build 0 Name: python-Webpt Version: 2.3.1 Release: 1 Summary: Library for penetration testing, website analysis and requests. License: Apache Software License URL: https://github.com/saharavitan/webpt Source0: https://mirrors.nju.edu.cn/pypi/web/packages/a3/96/fd0a43878890c9fc9851ffa040c204f69196c5ff94a837a49518d9704df8/Webpt-2.3.1.tar.gz BuildArch: noarch Requires: python3-requests Requires: python3-urllib3 %description all | Check for all vulnerabilities | url clickjacking | Check for ClickJacking| url wordpress | Tests 7 different vulnerabilities for wordpress | url cookie_not_secure | Checks for cookies that are not set as Secure | url xss_protection | Checks for XSS-Protection header | url sri | Checks for SRI vulnerabilities in the code | url htaccess | Check if htaccess file is readable | url comments | Get all comment from source code and check by regex | url, regex ip_disclosure | Checks for internal IP addresses in the source code | url fortinet | Tests 3 different vulnerabilities for Fortinet | url / ip cisco | Tests 2 different vulnerabilities for Cisco | url / ip ## Make Request Attributes %package -n python3-Webpt Summary: Library for penetration testing, website analysis and requests. Provides: python-Webpt BuildRequires: python3-devel BuildRequires: python3-setuptools BuildRequires: python3-pip %description -n python3-Webpt all | Check for all vulnerabilities | url clickjacking | Check for ClickJacking| url wordpress | Tests 7 different vulnerabilities for wordpress | url cookie_not_secure | Checks for cookies that are not set as Secure | url xss_protection | Checks for XSS-Protection header | url sri | Checks for SRI vulnerabilities in the code | url htaccess | Check if htaccess file is readable | url comments | Get all comment from source code and check by regex | url, regex ip_disclosure | Checks for internal IP addresses in the source code | url fortinet | Tests 3 different vulnerabilities for Fortinet | url / ip cisco | Tests 2 different vulnerabilities for Cisco | url / ip ## Make Request Attributes %package help Summary: Development documents and examples for Webpt Provides: python3-Webpt-doc %description help all | Check for all vulnerabilities | url clickjacking | Check for ClickJacking| url wordpress | Tests 7 different vulnerabilities for wordpress | url cookie_not_secure | Checks for cookies that are not set as Secure | url xss_protection | Checks for XSS-Protection header | url sri | Checks for SRI vulnerabilities in the code | url htaccess | Check if htaccess file is readable | url comments | Get all comment from source code and check by regex | url, regex ip_disclosure | Checks for internal IP addresses in the source code | url fortinet | Tests 3 different vulnerabilities for Fortinet | url / ip cisco | Tests 2 different vulnerabilities for Cisco | url / ip ## Make Request Attributes %prep %autosetup -n Webpt-2.3.1 %build %py3_build %install %py3_install install -d -m755 %{buildroot}/%{_pkgdocdir} if [ -d doc ]; then cp -arf doc %{buildroot}/%{_pkgdocdir}; fi if [ -d docs ]; then cp -arf docs %{buildroot}/%{_pkgdocdir}; fi if [ -d example ]; then cp -arf example %{buildroot}/%{_pkgdocdir}; fi if [ -d examples ]; then cp -arf examples %{buildroot}/%{_pkgdocdir}; fi pushd %{buildroot} if [ -d usr/lib ]; then find usr/lib -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/lib64 ]; then find usr/lib64 -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/bin ]; then find usr/bin -type f -printf "/%h/%f\n" >> filelist.lst fi if [ -d usr/sbin ]; then find usr/sbin -type f -printf "/%h/%f\n" >> filelist.lst fi touch doclist.lst if [ -d usr/share/man ]; then find usr/share/man -type f -printf "/%h/%f.gz\n" >> doclist.lst fi popd mv %{buildroot}/filelist.lst . mv %{buildroot}/doclist.lst . %files -n python3-Webpt -f filelist.lst %dir %{python3_sitelib}/* %files help -f doclist.lst %{_docdir}/* %changelog * Wed May 10 2023 Python_Bot - 2.3.1-1 - Package Spec generated