Wed Nov 22 14:20:02 2023 UTC ()
py-ldapdomaindump: convert to wheel.mk

Bump PKGREVISION.


(wiz)
diff -r1.1 -r1.2 pkgsrc/net/py-ldapdomaindump/DESCR
diff -r1.9 -r1.10 pkgsrc/net/py-ldapdomaindump/Makefile
diff -r1.4 -r1.5 pkgsrc/net/py-ldapdomaindump/PLIST

cvs diff -r1.1 -r1.2 pkgsrc/net/py-ldapdomaindump/DESCR (expand / switch to unified diff)

--- pkgsrc/net/py-ldapdomaindump/DESCR 2020/04/30 11:48:42 1.1
+++ pkgsrc/net/py-ldapdomaindump/DESCR 2023/11/22 14:20:02 1.2
@@ -1,32 +1,10 @@ @@ -1,32 +1,10 @@
1In an Active Directory domain, a lot of interesting information can be 1In an Active Directory domain, a lot of interesting information can be
2retrieved via LDAP by any authenticated user (or machine). This makes 2retrieved via LDAP by any authenticated user (or machine). This makes
3LDAP an interesting protocol for gathering information in the recon 3LDAP an interesting protocol for gathering information in the recon
4phase of a pentest of an internal network. A problem is that data from 4phase of a pentest of an internal network. A problem is that data from
5LDAP often is not available in an easy to read format. 5LDAP often is not available in an easy to read format.
6 6
7ldapdomaindump is a tool which aims to solve this problem, by 7ldapdomaindump is a tool which aims to solve this problem, by
8collecting and parsing information available via LDAP and outputting 8collecting and parsing information available via LDAP and outputting
9it in a human readable HTML format, as well as machine readable json 9it in a human readable HTML format, as well as machine readable json
10and csv/tsv/greppable files. 10and csv/tsv/greppable files.
11 
12The tool was designed with the following goals in mind: 
13- Easy overview of all users/groups/computers/policies in the domain 
14- Authentication both via username and password, as with NTLM hashes 
15 (requires ldap3 >=1.3.1) 
16- Possibility to run the tool with an existing authenticated 
17 connection to an LDAP service, allowing for integration with 
18 relaying tools such as impackets ntlmrelayx 
19 
20The tool outputs several files containing an overview of objects in 
21the domain: 
22- domain_groups: List of groups in the domain 
23- domain_users: List of users in the domain 
24- domain_computers: List of computer accounts in the domain 
25- domain_policy: Domain policy such as password requirements and 
26 lockout policy 
27- domain_trusts: Incoming and outgoing domain trusts, and their 
28 properties 
29 
30As well as two grouped files: 
31- domain_users_by_group: Domain users per group they are member of 
32- domain_computers_by_os: Domain computers sorted by Operating System 

cvs diff -r1.9 -r1.10 pkgsrc/net/py-ldapdomaindump/Makefile (expand / switch to unified diff)

--- pkgsrc/net/py-ldapdomaindump/Makefile 2023/11/22 14:11:59 1.9
+++ pkgsrc/net/py-ldapdomaindump/Makefile 2023/11/22 14:20:02 1.10
@@ -1,29 +1,31 @@ @@ -1,29 +1,31 @@
1# $NetBSD: Makefile,v 1.9 2023/11/22 14:11:59 jperkin Exp $ 1# $NetBSD: Makefile,v 1.10 2023/11/22 14:20:02 wiz Exp $
2 2
3DISTNAME= ldapdomaindump-0.9.4 3DISTNAME= ldapdomaindump-0.9.4
4PKGNAME= ${PYPKGPREFIX}-${DISTNAME} 4PKGNAME= ${PYPKGPREFIX}-${DISTNAME}
 5PKGREVISION= 1
5CATEGORIES= net python 6CATEGORIES= net python
6MASTER_SITES= ${MASTER_SITE_PYPI:=l/ldapdomaindump/} 7MASTER_SITES= ${MASTER_SITE_PYPI:=l/ldapdomaindump/}
7 8
8MAINTAINER= pkgsrc-users@NetBSD.org 9MAINTAINER= pkgsrc-users@NetBSD.org
9HOMEPAGE= https://github.com/dirkjanm/ldapdomaindump 10HOMEPAGE= https://github.com/dirkjanm/ldapdomaindump
10COMMENT= Collection of Python classes for working with network protocols 11COMMENT= Collection of Python classes for working with network protocols
11LICENSE= mit 12LICENSE= mit
12 13
 14TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools
 15TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel
13DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future 16DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future
 17DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns
14DEPENDS+= ${PYPKGPREFIX}-ldap3>=2.7:../../databases/py-ldap3 18DEPENDS+= ${PYPKGPREFIX}-ldap3>=2.7:../../databases/py-ldap3
15 19
16USE_LANGUAGES= # none 20USE_LANGUAGES= # none
17 21
18PYTHON_VERSIONED_DEPENDENCIES= dns 
19PYTHON_VERSIONS_INCOMPATIBLE= 27 22PYTHON_VERSIONS_INCOMPATIBLE= 27
20 23
21post-install: 24post-install:
22.for bin in ldapdomaindump ldd2bloodhound ldd2pretty 25.for bin in ldapdomaindump ldd2bloodhound ldd2pretty
23 cd ${DESTDIR}${PREFIX}/bin && \ 26 cd ${DESTDIR}${PREFIX}/bin && \
24 ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE} 27 ${MV} ${bin} ${bin}-${PYVERSSUFFIX} || ${TRUE}
25.endfor 28.endfor
26 29
27.include "../../lang/python/versioned_dependencies.mk" 30.include "../../lang/python/wheel.mk"
28.include "../../lang/python/egg.mk" 
29.include "../../mk/bsd.pkg.mk" 31.include "../../mk/bsd.pkg.mk"

cvs diff -r1.4 -r1.5 pkgsrc/net/py-ldapdomaindump/PLIST (expand / switch to unified diff)

--- pkgsrc/net/py-ldapdomaindump/PLIST 2020/06/18 17:02:45 1.4
+++ pkgsrc/net/py-ldapdomaindump/PLIST 2023/11/22 14:20:02 1.5
@@ -1,22 +1,22 @@ @@ -1,22 +1,22 @@
1@comment $NetBSD: PLIST,v 1.4 2020/06/18 17:02:45 adam Exp $ 1@comment $NetBSD: PLIST,v 1.5 2023/11/22 14:20:02 wiz Exp $
2bin/ldapdomaindump-${PYVERSSUFFIX} 2bin/ldapdomaindump-${PYVERSSUFFIX}
3bin/ldd2bloodhound-${PYVERSSUFFIX} 3bin/ldd2bloodhound-${PYVERSSUFFIX}
4bin/ldd2pretty-${PYVERSSUFFIX} 4bin/ldd2pretty-${PYVERSSUFFIX}
5${PYSITELIB}/${EGG_INFODIR}/PKG-INFO 5${PYSITELIB}/${WHEEL_INFODIR}/LICENSE
6${PYSITELIB}/${EGG_INFODIR}/SOURCES.txt 6${PYSITELIB}/${WHEEL_INFODIR}/METADATA
7${PYSITELIB}/${EGG_INFODIR}/dependency_links.txt 7${PYSITELIB}/${WHEEL_INFODIR}/RECORD
8${PYSITELIB}/${EGG_INFODIR}/requires.txt 8${PYSITELIB}/${WHEEL_INFODIR}/WHEEL
9${PYSITELIB}/${EGG_INFODIR}/top_level.txt 9${PYSITELIB}/${WHEEL_INFODIR}/top_level.txt
10${PYSITELIB}/ldapdomaindump/__init__.py 10${PYSITELIB}/ldapdomaindump/__init__.py
11${PYSITELIB}/ldapdomaindump/__init__.pyc 11${PYSITELIB}/ldapdomaindump/__init__.pyc
12${PYSITELIB}/ldapdomaindump/__init__.pyo 12${PYSITELIB}/ldapdomaindump/__init__.pyo
13${PYSITELIB}/ldapdomaindump/__main__.py 13${PYSITELIB}/ldapdomaindump/__main__.py
14${PYSITELIB}/ldapdomaindump/__main__.pyc 14${PYSITELIB}/ldapdomaindump/__main__.pyc
15${PYSITELIB}/ldapdomaindump/__main__.pyo 15${PYSITELIB}/ldapdomaindump/__main__.pyo
16${PYSITELIB}/ldapdomaindump/convert.py 16${PYSITELIB}/ldapdomaindump/convert.py
17${PYSITELIB}/ldapdomaindump/convert.pyc 17${PYSITELIB}/ldapdomaindump/convert.pyc
18${PYSITELIB}/ldapdomaindump/convert.pyo 18${PYSITELIB}/ldapdomaindump/convert.pyo
19${PYSITELIB}/ldapdomaindump/pretty.py 19${PYSITELIB}/ldapdomaindump/pretty.py
20${PYSITELIB}/ldapdomaindump/pretty.pyc 20${PYSITELIB}/ldapdomaindump/pretty.pyc
21${PYSITELIB}/ldapdomaindump/pretty.pyo 21${PYSITELIB}/ldapdomaindump/pretty.pyo
22${PYSITELIB}/ldapdomaindump/style.css 22${PYSITELIB}/ldapdomaindump/style.css