15
0

Accepting request 898860 from home:mnhauke

- Update to version 0.9.23
  Library improvements
  * Support connect timeout with SMBTransport.
  * Speeding up DcSync.
  * Fixed Python3 issue when serving SOCKS5 requests.
  * Fixed Path Traversal vulnerabilities in smbserver.py .
    CVE-2021-31800
  * Fixed POST request processing in httprelayserver.py .
  * Added cat command to smbclient.py .
  * Added new features to the LDAP Interactive Shell to facilitate
    AD exploitation.
  * Python 3.9 support
- Drop not longer needed patch:
  * 1054.patch

OBS-URL: https://build.opensuse.org/request/show/898860
OBS-URL: https://build.opensuse.org/package/show/devel:languages:python/python-impacket?expand=0&rev=9
This commit is contained in:
2021-06-10 08:21:32 +00:00
committed by Git OBS Bridge
parent eca4b13c9a
commit 4bce27146f
4 changed files with 53 additions and 6 deletions

View File

@@ -1,3 +0,0 @@
version https://git-lfs.github.com/spec/v1
oid sha256:4bf7e7b595356585599b4b2773b8a463d7b9765c97012dcd5a44eb6d547f6a1d
size 1368318

3
impacket-0.9.23.tar.gz Normal file
View File

@@ -0,0 +1,3 @@
version https://git-lfs.github.com/spec/v1
oid sha256:1c1be8a50cdbe3cffc566ba64f552b1b28bcc79b7a406b833956b49c56d77184
size 4086505

View File

@@ -1,3 +1,21 @@
-------------------------------------------------------------------
Wed Jun 9 17:17:37 UTC 2021 - Martin Hauke <mardnh@gmx.de>
- Update to version 0.9.23
Library improvements
* Support connect timeout with SMBTransport.
* Speeding up DcSync.
* Fixed Python3 issue when serving SOCKS5 requests.
* Fixed Path Traversal vulnerabilities in smbserver.py .
CVE-2021-31800
* Fixed POST request processing in httprelayserver.py .
* Added cat command to smbclient.py .
* Added new features to the LDAP Interactive Shell to facilitate
AD exploitation.
* Python 3.9 support
- Drop not longer needed patch:
* 1054.patch
-------------------------------------------------------------------
Sat Apr 24 15:41:05 UTC 2021 - Martin Hauke <mardnh@gmx.de>

View File

@@ -2,7 +2,7 @@
# spec file for package python-impacket
#
# Copyright (c) 2021 SUSE LLC
# Copyright (c) 2020, Martin Hauke <mardnh@gmx.de>
# Copyright (c) 2020-2021, 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
@@ -18,9 +18,8 @@
%{?!python_module:%define python_module() python-%{**} python3-%{**}}
%define skip_python39 1
Name: python-impacket
Version: 0.9.22
Version: 0.9.23
Release: 0
Summary: Python3 module to easily build and dissect network protocols
# License: modified Apache-1.1 (see file LICENSE)
@@ -73,7 +72,10 @@ sed -e '/^#!\//, 1d' -i \
%install
%python_install
%python_expand cd %{buildroot}%{_bindir} && find . -name "*.py" -exec sh -c 'mv $0 impacket-`basename "$0" .py`' '{}' \;
%python_clone -a %{buildroot}%{_bindir}/impacket-A
%python_clone -a %{buildroot}%{_bindir}/impacket-GetADUsers
%python_clone -a %{buildroot}%{_bindir}/impacket-Get-GPPPassword
%python_clone -a %{buildroot}%{_bindir}/impacket-GetNPUsers
%python_clone -a %{buildroot}%{_bindir}/impacket-GetUserSPNs
%python_clone -a %{buildroot}%{_bindir}/impacket-addcomputer
@@ -114,16 +116,21 @@ sed -e '/^#!\//, 1d' -i \
%python_clone -a %{buildroot}%{_bindir}/impacket-services
%python_clone -a %{buildroot}%{_bindir}/impacket-smbclient
%python_clone -a %{buildroot}%{_bindir}/impacket-smbexec
%python_clone -a %{buildroot}%{_bindir}/impacket-smbpasswd
%python_clone -a %{buildroot}%{_bindir}/impacket-smbrelayx
%python_clone -a %{buildroot}%{_bindir}/impacket-smbserver
%python_clone -a %{buildroot}%{_bindir}/impacket-sniff
%python_clone -a %{buildroot}%{_bindir}/impacket-sniffer
%python_clone -a %{buildroot}%{_bindir}/impacket-split
%python_clone -a %{buildroot}%{_bindir}/impacket-testTGT
%python_clone -a %{buildroot}%{_bindir}/impacket-testTGT2
%python_clone -a %{buildroot}%{_bindir}/impacket-ticketConverter
%python_clone -a %{buildroot}%{_bindir}/impacket-ticketer
%python_clone -a %{buildroot}%{_bindir}/impacket-wmiexec
%python_clone -a %{buildroot}%{_bindir}/impacket-wmipersist
%python_clone -a %{buildroot}%{_bindir}/impacket-wmiquery
%python_clone -a %{buildroot}%{_bindir}/impacket-PoC
%python_clone -a %{buildroot}%{_bindir}/impacket-PoC2
#
%python_expand rm -f %{buildroot}%{_datadir}/doc/impacket/LICENSE
%python_expand rm -f %{buildroot}%{_datadir}/doc/impacket/README.md
@@ -132,8 +139,10 @@ sed -e '/^#!\//, 1d' -i \
%python_expand rm %{buildroot}%{_bindir}/_current_flavor
%post
%python_install_alternative impacket-A
%python_install_alternative impacket-GetADUsers
%python_install_alternative impacket-GetNPUsers
%python_install_alternative impacket-Get-GPPPassword
%python_install_alternative impacket-GetUserSPNs
%python_install_alternative impacket-addcomputer
%python_install_alternative impacket-atexec
@@ -174,18 +183,25 @@ sed -e '/^#!\//, 1d' -i \
%python_install_alternative impacket-smbclient
%python_install_alternative impacket-smbexec
%python_install_alternative impacket-smbrelayx
%python_install_alternative impacket-smbpasswd
%python_install_alternative impacket-smbserver
%python_install_alternative impacket-sniff
%python_install_alternative impacket-sniffer
%python_install_alternative impacket-split
%python_install_alternative impacket-testTGT
%python_install_alternative impacket-testTGT2
%python_install_alternative impacket-ticketConverter
%python_install_alternative impacket-ticketer
%python_install_alternative impacket-wmiexec
%python_install_alternative impacket-wmipersist
%python_install_alternative impacket-wmiquery
%python_install_alternative impacket-PoC
%python_install_alternative impacket-PoC2
%postun
%python_uninstall_alternative impacket-A
%python_uninstall_alternative impacket-GetADUsers
%python_uninstall_alternative impacket-Get-GPPPassword
%python_uninstall_alternative impacket-GetNPUsers
%python_uninstall_alternative impacket-GetUserSPNs
%python_uninstall_alternative impacket-addcomputer
@@ -227,15 +243,20 @@ sed -e '/^#!\//, 1d' -i \
%python_uninstall_alternative impacket-smbclient
%python_uninstall_alternative impacket-smbexec
%python_uninstall_alternative impacket-smbrelayx
%python_uninstall_alternative impacket-smbpasswd
%python_uninstall_alternative impacket-smbserver
%python_uninstall_alternative impacket-sniff
%python_uninstall_alternative impacket-sniffer
%python_uninstall_alternative impacket-split
%python_uninstall_alternative impacket-testTGT
%python_uninstall_alternative impacket-testTGT2
%python_uninstall_alternative impacket-ticketConverter
%python_uninstall_alternative impacket-ticketer
%python_uninstall_alternative impacket-wmiexec
%python_uninstall_alternative impacket-wmipersist
%python_uninstall_alternative impacket-wmiquery
%python_uninstall_alternative impacket-PoC
%python_uninstall_alternative impacket-PoC2
%check
# Don't run tests thtat require online connections
@@ -268,12 +289,15 @@ rm tests/SMB_RPC/test_wkst.py
rm tests/SMB_RPC/test_wmi.py
rm tests/misc/test_dcerpc_v5_ndr.py
rm tests/misc/test_structure.py
#%%pytest -k 'not (test_well_formed)'
%pytest
%files %{python_files}
%license LICENSE
%doc ChangeLog README.md
%python_alternative %{_bindir}/impacket-A
%python_alternative %{_bindir}/impacket-GetADUsers
%python_alternative %{_bindir}/impacket-Get-GPPPassword
%python_alternative %{_bindir}/impacket-GetNPUsers
%python_alternative %{_bindir}/impacket-GetUserSPNs
%python_alternative %{_bindir}/impacket-addcomputer
@@ -315,15 +339,20 @@ rm tests/misc/test_structure.py
%python_alternative %{_bindir}/impacket-smbclient
%python_alternative %{_bindir}/impacket-smbexec
%python_alternative %{_bindir}/impacket-smbrelayx
%python_alternative %{_bindir}/impacket-smbpasswd
%python_alternative %{_bindir}/impacket-smbserver
%python_alternative %{_bindir}/impacket-sniff
%python_alternative %{_bindir}/impacket-sniffer
%python_alternative %{_bindir}/impacket-split
%python_alternative %{_bindir}/impacket-testTGT
%python_alternative %{_bindir}/impacket-testTGT2
%python_alternative %{_bindir}/impacket-ticketConverter
%python_alternative %{_bindir}/impacket-ticketer
%python_alternative %{_bindir}/impacket-wmiexec
%python_alternative %{_bindir}/impacket-wmipersist
%python_alternative %{_bindir}/impacket-wmiquery
%python_alternative %{_bindir}/impacket-PoC
%python_alternative %{_bindir}/impacket-PoC2
%{python_sitelib}/impacket*
%changelog