17
0
Files
python-impacket/python-impacket.spec

152 lines
6.4 KiB
RPMSpec
Raw Permalink Normal View History

#
# spec file for package python-impacket
#
Accepting request 1313173 from home:mnhauke - Update to version 0.13.0 Library improvements * Major SMB client/server refactor adds setInfo support, CIFS datetime helpers, and safer default share access to enable remote attribute and timestamp management. * Introduced per-structure encoding selectors and UTF-8-aware SMB structures so non-Latin resource names round-trip correctly. * Strengthened LDAP/Kerberos handling with channel binding plus signing, schema alignment with ldap3, and LDAPS-based LAPS retrieval against Windows Server 2025 DCs. * Improved DCE/RPC coverage with Netlogon authenticator fixes, updated DRS bind flags, expanded EVEN6 decoding, and a new ICPR interface to support relay-aware RPC workflows. * Corrected SMB negotiation edge cases by fixing response padding, Unicode pipe lookups, and keyboard interrupts in SMB servers. * SMB Server enhancements to align Impacket's implementation with standard. Authentication & relay tooling * Added WinRMS relay clients/servers. * Improved IPv6 support, richer logging, and consistent console status reporting, plus an identity log to track compromised principals. * Introduced an RPC relay server with Endpoint Mapper discovery. * Delivered SCCM Management/Distribution Point relay attacks. * Enhanced shadow credentials, SOCKS plugins, and target rotation with better IPv6 awareness and stability. * Added options to strip SSP from Net-NTLMv1 captures and write relay-captured hashes for cracking workflows. Examples improvements OBS-URL: https://build.opensuse.org/request/show/1313173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=23
2025-10-23 09:58:11 +00:00
# Copyright (c) 2025 SUSE LLC and contributors
# Copyright (c) 2020-2025, 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/
#
Accepting request 1313173 from home:mnhauke - Update to version 0.13.0 Library improvements * Major SMB client/server refactor adds setInfo support, CIFS datetime helpers, and safer default share access to enable remote attribute and timestamp management. * Introduced per-structure encoding selectors and UTF-8-aware SMB structures so non-Latin resource names round-trip correctly. * Strengthened LDAP/Kerberos handling with channel binding plus signing, schema alignment with ldap3, and LDAPS-based LAPS retrieval against Windows Server 2025 DCs. * Improved DCE/RPC coverage with Netlogon authenticator fixes, updated DRS bind flags, expanded EVEN6 decoding, and a new ICPR interface to support relay-aware RPC workflows. * Corrected SMB negotiation edge cases by fixing response padding, Unicode pipe lookups, and keyboard interrupts in SMB servers. * SMB Server enhancements to align Impacket's implementation with standard. Authentication & relay tooling * Added WinRMS relay clients/servers. * Improved IPv6 support, richer logging, and consistent console status reporting, plus an identity log to track compromised principals. * Introduced an RPC relay server with Endpoint Mapper discovery. * Delivered SCCM Management/Distribution Point relay attacks. * Enhanced shadow credentials, SOCKS plugins, and target rotation with better IPv6 awareness and stability. * Added options to strip SSP from Net-NTLMv1 captures and write relay-captured hashes for cracking workflows. Examples improvements OBS-URL: https://build.opensuse.org/request/show/1313173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=23
2025-10-23 09:58:11 +00:00
%define binaries impacket-CheckLDAPStatus impacket-GetADUsers impacket-GetADComputers impacket-Get-GPPPassword impacket-GetLAPSPassword impacket-GetNPUsers impacket-GetUserSPNs impacket-DumpNTLMInfo impacket-addcomputer impacket-atexec impacket-attrib impacket-badsuccessor impacket-changepasswd impacket-dacledit impacket-dcomexec impacket-describeTicket impacket-dpapi impacket-esentutl impacket-exchanger impacket-filetime impacket-findDelegation impacket-getArch impacket-getPac impacket-getST impacket-getTGT impacket-goldenPac impacket-karmaSMB impacket-keylistattack impacket-kintercept impacket-lookupsid impacket-machine_role impacket-mimikatz impacket-mqtt_check impacket-mssqlclient impacket-mssqlinstance impacket-net impacket-netview impacket-ntfs-read impacket-ntlmrelayx impacket-owneredit impacket-ping impacket-ping6 impacket-psexec impacket-regsecrets impacket-raiseChild impacket-rbcd impacket-rdp_check impacket-reg impacket-registry-read impacket-rpcmap impacket-rpcdump impacket-sambaPipe impacket-samedit impacket-samrdump impacket-secretsdump impacket-services impacket-smbclient impacket-smbexec impacket-smbserver impacket-sniff impacket-sniffer impacket-split impacket-ticketConverter impacket-ticketer impacket-tstool impacket-wmiexec impacket-wmipersist impacket-wmiquery
Name: python-impacket
Accepting request 1313173 from home:mnhauke - Update to version 0.13.0 Library improvements * Major SMB client/server refactor adds setInfo support, CIFS datetime helpers, and safer default share access to enable remote attribute and timestamp management. * Introduced per-structure encoding selectors and UTF-8-aware SMB structures so non-Latin resource names round-trip correctly. * Strengthened LDAP/Kerberos handling with channel binding plus signing, schema alignment with ldap3, and LDAPS-based LAPS retrieval against Windows Server 2025 DCs. * Improved DCE/RPC coverage with Netlogon authenticator fixes, updated DRS bind flags, expanded EVEN6 decoding, and a new ICPR interface to support relay-aware RPC workflows. * Corrected SMB negotiation edge cases by fixing response padding, Unicode pipe lookups, and keyboard interrupts in SMB servers. * SMB Server enhancements to align Impacket's implementation with standard. Authentication & relay tooling * Added WinRMS relay clients/servers. * Improved IPv6 support, richer logging, and consistent console status reporting, plus an identity log to track compromised principals. * Introduced an RPC relay server with Endpoint Mapper discovery. * Delivered SCCM Management/Distribution Point relay attacks. * Enhanced shadow credentials, SOCKS plugins, and target rotation with better IPv6 awareness and stability. * Added options to strip SSP from Net-NTLMv1 captures and write relay-captured hashes for cracking workflows. Examples improvements OBS-URL: https://build.opensuse.org/request/show/1313173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=23
2025-10-23 09:58:11 +00:00
Version: 0.13.0
Release: 0
Summary: Python3 module to easily build and dissect network protocols
# License: modified Apache-1.1 (see file LICENSE)
License: Apache-1.1
Group: Development/Languages/Python
URL: https://www.secureauth.com/labs/open-source-tools/impacket
#Git-Clone: https://github.com/fortra/impacket.git
Source: https://files.pythonhosted.org/packages/source/i/impacket/impacket-%{version}.tar.gz
BuildRequires: %{python_module pip}
BuildRequires: %{python_module setuptools}
BuildRequires: %{python_module wheel}
BuildRequires: fdupes
BuildRequires: python-rpm-macros
Requires: python-Flask >= 1.0
Requires: python-charset-normalizer
Requires: python-ldap3 >= 2.5
Requires: python-ldapdomaindump >= 0.9.0
Requires: python-pyOpenSSL >= 0.13.1
Requires: python-pyasn1 >= 0.2.3
Requires: python-pycryptodomex
Requires: python-setuptools
Requires: python-six
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
Requires(post): update-alternatives
2024-09-17 12:26:51 +00:00
Requires(postun): update-alternatives
BuildArch: noarch
# SECTION test requirements
BuildRequires: %{python_module Flask >= 1.0}
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
BuildRequires: %{python_module chardet}
BuildRequires: %{python_module ldap3 >= 2.5}
BuildRequires: %{python_module ldapdomaindump >= 0.9.0}
BuildRequires: %{python_module pyOpenSSL >= 0.13.1}
BuildRequires: %{python_module pyasn1 >= 0.2.3}
BuildRequires: %{python_module pycryptodomex}
BuildRequires: %{python_module pytest}
BuildRequires: %{python_module six}
# /SECTION
%python_subpackages
%description
Impacket is a collection of Python classes for working with network
protocols. Impacket is focused on providing low-level
programmatic access to the packets and for some protocols (e.g.
SMB1-3 and MSRPC) the protocol implementation itself.
Packets can be constructed from scratch, as well as parsed from
raw data, and the object oriented API makes it simple to work with
deep hierarchies of protocols. The library provides a set of tools
as examples of what can be done within the context of this library.
%prep
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
%autosetup -p1 -n impacket-%{version}
sed -e '/^#!\//, 1d' -i \
impacket/examples/ntlmrelayx/servers/socksserver.py \
Accepting request 1313173 from home:mnhauke - Update to version 0.13.0 Library improvements * Major SMB client/server refactor adds setInfo support, CIFS datetime helpers, and safer default share access to enable remote attribute and timestamp management. * Introduced per-structure encoding selectors and UTF-8-aware SMB structures so non-Latin resource names round-trip correctly. * Strengthened LDAP/Kerberos handling with channel binding plus signing, schema alignment with ldap3, and LDAPS-based LAPS retrieval against Windows Server 2025 DCs. * Improved DCE/RPC coverage with Netlogon authenticator fixes, updated DRS bind flags, expanded EVEN6 decoding, and a new ICPR interface to support relay-aware RPC workflows. * Corrected SMB negotiation edge cases by fixing response padding, Unicode pipe lookups, and keyboard interrupts in SMB servers. * SMB Server enhancements to align Impacket's implementation with standard. Authentication & relay tooling * Added WinRMS relay clients/servers. * Improved IPv6 support, richer logging, and consistent console status reporting, plus an identity log to track compromised principals. * Introduced an RPC relay server with Endpoint Mapper discovery. * Delivered SCCM Management/Distribution Point relay attacks. * Enhanced shadow credentials, SOCKS plugins, and target rotation with better IPv6 awareness and stability. * Added options to strip SSP from Net-NTLMv1 captures and write relay-captured hashes for cracking workflows. Examples improvements OBS-URL: https://build.opensuse.org/request/show/1313173 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=23
2025-10-23 09:58:11 +00:00
impacket/examples/ntlmrelayx/servers/rpcrelayserver.py \
2024-09-17 12:26:51 +00:00
impacket/examples/mssqlshell.py \
impacket/mqtt.py
%build
%pyproject_wheel
%install
%pyproject_install
%python_expand cd %{buildroot}%{_bindir} && find . -name "*.py" -exec sh -c 'mv $0 impacket-`basename "$0" .py`' '{}' \;
for b in %{binaries}; do
%python_clone -a %{buildroot}%{_bindir}/$b
done
#
%python_expand rm -f %{buildroot}%{_datadir}/doc/impacket/LICENSE
%python_expand rm -f %{buildroot}%{_datadir}/doc/impacket/README.md
%python_expand %fdupes %{buildroot}%{$python_sitelib}
#
%python_expand rm %{buildroot}%{_bindir}/_current_flavor
%post
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_install_alternative " .. b .. "\n"))
end}
%postun
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_uninstall_alternative " .. b .. "\n"))
end}
%check
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
# Don't run tests that require online connections
rm tests/dcerpc/test_bkrp.py
rm tests/dcerpc/test_dcomrt.py
rm tests/dcerpc/test_dhcpm.py
rm tests/dcerpc/test_drsuapi.py
rm tests/dcerpc/test_epm.py
rm tests/dcerpc/test_even.py
rm tests/dcerpc/test_even6.py
rm tests/dcerpc/test_fasp.py
rm tests/SMB_RPC/test_ldap.py
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
rm tests/dcerpc/test_lsad.py
rm tests/dcerpc/test_lsat.py
rm tests/dcerpc/test_mgmt.py
rm tests/dcerpc/test_mimilib.py
rm tests/SMB_RPC/test_nmb.py
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
rm tests/dcerpc/test_nrpc.py
rm tests/dcerpc/test_par.py
rm tests/SMB_RPC/test_rpch.py
rm tests/SMB_RPC/test_rpcrt.py
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
rm tests/dcerpc/test_rprn.py
rm tests/dcerpc/test_rrp.py
rm tests/dcerpc/test_samr.py
rm tests/dcerpc/test_scmr.py
rm tests/SMB_RPC/test_secretsdump.py
rm tests/SMB_RPC/test_smb.py
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
rm tests/dcerpc/test_srvs.py
rm tests/dcerpc/test_tsch.py
rm tests/dcerpc/test_wkst.py
rm tests/SMB_RPC/test_wmi.py
rm tests/misc/test_dcerpc_v5_ndr.py
rm tests/misc/test_structure.py
rm tests/SMB_RPC/test_smbserver.py
#%%pytest -k 'not (test_well_formed)'
%pytest
%files %{python_files}
%license LICENSE
Accepting request 1090466 from home:pgajdos:python - update to version 0.10.0 * Dropped support for Python 2.7. * Refactored the testing infrastructure (@martingalloar): * Added `pytest` as the testing framework to organize and mark test cases. `Tox` remain as the automation framework, and `Coverage.py` for measuring code coverage. * Custom bash scripts were replaced with test cases auto-discovery. * Local and remote test cases were marked for easy run and configuration. * DCE/RPC endpoint test cases were refactored and moved to a new layout. * An initial testing guide with the main steps to prepare a testing environment and run them. * Fixed a good amount of DCE/RPC endpoint test cases that were failing. * Added tests for `[MS-PAR]`, `[MS-RPRN]`, CCache and DPAPI. * Added a function to compute the Netlogon Authenticator at client-side in `[MS-NRPC]` (@0xdeaddood) * Added `[MS-DSSP]` protocol implementation (@simondotsh) * Added GetDriverDirectory functions to `[MS-PAR]` and `[MS-RPRN]` (@raithedavion) * Refactored the Credential Cache: * Added new parseFile function to ccache.py (@rmaksimov) * Added support for loading CCache Version 3 (@reznok) * Modified fromKRBCRED function used to load a Kirbi file (@0xdeaddood) * Fixed Ccache to Kirbi conversion (@ShutdownRepo) * Fixed default NTLM server challenge in smbserver (@rtpt-jonaslieb) * Fixed WMI objects parsing (@franferrax) * Added the RpcAddPrinterDriverEx method and related structures to `[MS-RPRN]`: Print System Remote Protocol (@cube0x0) * Initial implementation of `[MS-PAR]`: Print System Asynchronous Remote Protocol (@cube0x0) * Complying `[MS-RPCH]` with HTTP/1.1 (@mohemiv) * Added return of server time in case of Kerberos error (@ShutdownRepo and @Hackndo) OBS-URL: https://build.opensuse.org/request/show/1090466 OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=11
2023-06-02 21:16:35 +00:00
%doc ChangeLog.md README.md
%{lua:for b in rpm.expand("%{binaries}"):gmatch("%S+") do
print(rpm.expand("%python_alternative %{_bindir}/" .. b .. "\n"))
end}
%{python_sitelib}/impacket
%{python_sitelib}/impacket-%{version}.dist-info
%changelog