Initial commit at v4.14.1

This commit is contained in:
2025-03-29 17:31:14 +01:00
commit 6de71fc4d6
3 changed files with 186 additions and 0 deletions

23
.gitattributes vendored Normal file
View File

@@ -0,0 +1,23 @@
## Default LFS
*.7z filter=lfs diff=lfs merge=lfs -text
*.bsp filter=lfs diff=lfs merge=lfs -text
*.bz2 filter=lfs diff=lfs merge=lfs -text
*.gem filter=lfs diff=lfs merge=lfs -text
*.gz filter=lfs diff=lfs merge=lfs -text
*.jar filter=lfs diff=lfs merge=lfs -text
*.lz filter=lfs diff=lfs merge=lfs -text
*.lzma filter=lfs diff=lfs merge=lfs -text
*.obscpio filter=lfs diff=lfs merge=lfs -text
*.oxt filter=lfs diff=lfs merge=lfs -text
*.pdf filter=lfs diff=lfs merge=lfs -text
*.png filter=lfs diff=lfs merge=lfs -text
*.rpm filter=lfs diff=lfs merge=lfs -text
*.tbz filter=lfs diff=lfs merge=lfs -text
*.tbz2 filter=lfs diff=lfs merge=lfs -text
*.tgz filter=lfs diff=lfs merge=lfs -text
*.ttf filter=lfs diff=lfs merge=lfs -text
*.txz filter=lfs diff=lfs merge=lfs -text
*.whl filter=lfs diff=lfs merge=lfs -text
*.xz filter=lfs diff=lfs merge=lfs -text
*.zip filter=lfs diff=lfs merge=lfs -text
*.zst filter=lfs diff=lfs merge=lfs -text

BIN
pwntools-4.14.1.tar.gz (Stored with Git LFS) Normal file

Binary file not shown.

160
python-pwntools.spec Normal file
View File

@@ -0,0 +1,160 @@
#
# spec file for package python-pwntools
#
# Copyright (c) 2025 SUSE LLC
#
# 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: python-pwntools
Version: 4.14.1
Release: 0
Summary: Pwntools CTF framework and exploit development library
License: Mostly MIT, some GPL/BSD, see LICENSE-pwntools.txt (FIXME:No SPDX)
URL: https://pwntools.com
Source: https://files.pythonhosted.org/packages/source/p/pwntools/pwntools-%{version}.tar.gz
BuildRequires: python-rpm-macros
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools >= 44.0}
BuildRequires: %{python_module wheel}
# SECTION test requirements
BuildRequires: %{python_module capstone >= 3.0.5rc2}
BuildRequires: %{python_module colored_traceback}
BuildRequires: %{python_module intervaltree >= 3.0}
BuildRequires: %{python_module mako >= 1.0.0}
BuildRequires: %{python_module packaging}
BuildRequires: %{python_module paramiko >= 1.15.2}
BuildRequires: %{python_module pip >= 6.0.8}
BuildRequires: %{python_module psutil >= 3.3.0}
BuildRequires: %{python_module pyelftools >= 0.29}
BuildRequires: %{python_module pygments >= 2.0}
BuildRequires: %{python_module pyserial >= 2.7}
BuildRequires: %{python_module pysocks}
BuildRequires: %{python_module python-dateutil}
BuildRequires: %{python_module requests >= 2.0}
BuildRequires: %{python_module ropgadget >= 5.3}
BuildRequires: %{python_module rpyc}
BuildRequires: %{python_module six >= 1.12.0}
BuildRequires: %{python_module sortedcontainers}
BuildRequires: %{python_module unicorn >= 2.0.1}
BuildRequires: %{python_module unix-ar}
BuildRequires: %{python_module zstandard}
# /SECTION
BuildRequires: fdupes
Requires: python-capstone >= 3.0.5rc2
Requires: python-colored_traceback
Requires: python-intervaltree >= 3.0
Requires: python-mako >= 1.0.0
Requires: python-packaging
Requires: python-paramiko >= 1.15.2
Requires: python-pip >= 6.0.8
Requires: python-psutil >= 3.3.0
Requires: python-pyelftools >= 0.29
Requires: python-pygments >= 2.0
Requires: python-pyserial >= 2.7
Requires: python-pysocks
Requires: python-python-dateutil
Requires: python-requests >= 2.0
Requires: python-ropgadget >= 5.3
Requires: python-rpyc
Requires: python-six >= 1.12.0
Requires: python-sortedcontainers
Requires: python-unicorn >= 2.0.1
Requires: python-unix-ar
Requires: python-zstandard
BuildArch: noarch
%python_subpackages
%description
Pwntools CTF framework and exploit development library.
%prep
%autosetup -p1 -n pwntools-%{version}
%build
%pyproject_wheel
%install
%pyproject_install
%python_clone -a %{buildroot}%{_bindir}/hex
%python_clone -a %{buildroot}%{_bindir}/version
%python_clone -a %{buildroot}%{_bindir}/pwn
%python_clone -a %{buildroot}%{_bindir}/cyclic
%python_clone -a %{buildroot}%{_bindir}/scramble
%python_clone -a %{buildroot}%{_bindir}/asm
%python_clone -a %{buildroot}%{_bindir}/libcdb
%python_clone -a %{buildroot}%{_bindir}/elfpatch
%python_clone -a %{buildroot}%{_bindir}/pwnstrip
%python_clone -a %{buildroot}%{_bindir}/unhex
%python_clone -a %{buildroot}%{_bindir}/template
%python_clone -a %{buildroot}%{_bindir}/shellcraft
%python_clone -a %{buildroot}%{_bindir}/elfdiff
%python_clone -a %{buildroot}%{_bindir}/disablenx
%python_clone -a %{buildroot}%{_bindir}/debug
%python_clone -a %{buildroot}%{_bindir}/main
%python_clone -a %{buildroot}%{_bindir}/phd
%python_clone -a %{buildroot}%{_bindir}/update
%python_clone -a %{buildroot}%{_bindir}/checksec
%python_clone -a %{buildroot}%{_bindir}/common
%python_clone -a %{buildroot}%{_bindir}/disasm
%python_clone -a %{buildroot}%{_bindir}/constgrep
%python_clone -a %{buildroot}%{_bindir}/errno
%python_expand %fdupes %{buildroot}%{$python_sitelib}
%check
CHOOSE: %pytest OR %pyunittest -v OR CUSTOM
%post
%python_install_alternative hex version pwn cyclic scramble asm libcdb elfpatch pwnstrip unhex template shellcraft elfdiff disablenx debug main phd update checksec common disasm constgrep errno
%postun
%python_uninstall_alternative hex
%files %{python_files}
%doc CHANGELOG.md README.md
%license LICENSE-pwntools.txt LICENSE-pwntools.txt
%python_alternative %{_bindir}/hex
%python_alternative %{_bindir}/version
%python_alternative %{_bindir}/pwn
%python_alternative %{_bindir}/cyclic
%python_alternative %{_bindir}/scramble
%python_alternative %{_bindir}/asm
%python_alternative %{_bindir}/libcdb
%python_alternative %{_bindir}/elfpatch
%python_alternative %{_bindir}/pwnstrip
%python_alternative %{_bindir}/unhex
%python_alternative %{_bindir}/template
%python_alternative %{_bindir}/shellcraft
%python_alternative %{_bindir}/elfdiff
%python_alternative %{_bindir}/disablenx
%python_alternative %{_bindir}/debug
%python_alternative %{_bindir}/main
%python_alternative %{_bindir}/phd
%python_alternative %{_bindir}/update
%python_alternative %{_bindir}/checksec
%python_alternative %{_bindir}/common
%python_alternative %{_bindir}/disasm
%python_alternative %{_bindir}/constgrep
%python_alternative %{_bindir}/errno
%{python_sitelib}/pwntools
%{python_sitelib}/pwntools-%{version}.dist-info
%dir %{_prefix}/pwntools-doc
%{_prefix}/pwntools-doc/TESTING.md
%{_prefix}/pwntools-doc/SECURITY.md
%{_prefix}/pwntools-doc/README.md
%{_prefix}/pwntools-doc/DOCKER.md
%{_prefix}/pwntools-doc/CONTRIBUTING.md
%{_prefix}/pwntools-doc/CHANGELOG.md
%{_prefix}/pwntools-doc/LICENSE-pwntools.txt
%changelog