py-ldapdomaindump: convert to wheel.mk Bump PKGREVISION.diff -r1.1 -r1.2 pkgsrc/net/py-ldapdomaindump/DESCR
(wiz)
@@ -1,32 +1,10 @@ | @@ -1,32 +1,10 @@ | |||
1 | In an Active Directory domain, a lot of interesting information can be | 1 | In an Active Directory domain, a lot of interesting information can be | |
2 | retrieved via LDAP by any authenticated user (or machine). This makes | 2 | retrieved via LDAP by any authenticated user (or machine). This makes | |
3 | LDAP an interesting protocol for gathering information in the recon | 3 | LDAP an interesting protocol for gathering information in the recon | |
4 | phase of a pentest of an internal network. A problem is that data from | 4 | phase of a pentest of an internal network. A problem is that data from | |
5 | LDAP often is not available in an easy to read format. | 5 | LDAP often is not available in an easy to read format. | |
6 | 6 | |||
7 | ldapdomaindump is a tool which aims to solve this problem, by | 7 | ldapdomaindump is a tool which aims to solve this problem, by | |
8 | collecting and parsing information available via LDAP and outputting | 8 | collecting and parsing information available via LDAP and outputting | |
9 | it in a human readable HTML format, as well as machine readable json | 9 | it in a human readable HTML format, as well as machine readable json | |
10 | and csv/tsv/greppable files. | 10 | and csv/tsv/greppable files. | |
11 | ||||
12 | The 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 | ||||
20 | The tool outputs several files containing an overview of objects in | |||
21 | the 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 | ||||
30 | As 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 |
@@ -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 | |||
3 | DISTNAME= ldapdomaindump-0.9.4 | 3 | DISTNAME= ldapdomaindump-0.9.4 | |
4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | 4 | PKGNAME= ${PYPKGPREFIX}-${DISTNAME} | |
5 | PKGREVISION= 1 | |||
5 | CATEGORIES= net python | 6 | CATEGORIES= net python | |
6 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/ldapdomaindump/} | 7 | MASTER_SITES= ${MASTER_SITE_PYPI:=l/ldapdomaindump/} | |
7 | 8 | |||
8 | MAINTAINER= pkgsrc-users@NetBSD.org | 9 | MAINTAINER= pkgsrc-users@NetBSD.org | |
9 | HOMEPAGE= https://github.com/dirkjanm/ldapdomaindump | 10 | HOMEPAGE= https://github.com/dirkjanm/ldapdomaindump | |
10 | COMMENT= Collection of Python classes for working with network protocols | 11 | COMMENT= Collection of Python classes for working with network protocols | |
11 | LICENSE= mit | 12 | LICENSE= mit | |
12 | 13 | |||
14 | TOOL_DEPENDS+= ${PYPKGPREFIX}-setuptools-[0-9]*:../../devel/py-setuptools | |||
15 | TOOL_DEPENDS+= ${PYPKGPREFIX}-wheel-[0-9]*:../../devel/py-wheel | |||
13 | DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future | 16 | DEPENDS+= ${PYPKGPREFIX}-future-[0-9]*:../../devel/py-future | |
17 | DEPENDS+= ${PYPKGPREFIX}-dns-[0-9]*:../../net/py-dns | |||
14 | DEPENDS+= ${PYPKGPREFIX}-ldap3>=2.7:../../databases/py-ldap3 | 18 | DEPENDS+= ${PYPKGPREFIX}-ldap3>=2.7:../../databases/py-ldap3 | |
15 | 19 | |||
16 | USE_LANGUAGES= # none | 20 | USE_LANGUAGES= # none | |
17 | 21 | |||
18 | PYTHON_VERSIONED_DEPENDENCIES= dns | |||
19 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | 22 | PYTHON_VERSIONS_INCOMPATIBLE= 27 | |
20 | 23 | |||
21 | post-install: | 24 | post-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" |
@@ -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 $ | |
2 | bin/ldapdomaindump-${PYVERSSUFFIX} | 2 | bin/ldapdomaindump-${PYVERSSUFFIX} | |
3 | bin/ldd2bloodhound-${PYVERSSUFFIX} | 3 | bin/ldd2bloodhound-${PYVERSSUFFIX} | |
4 | bin/ldd2pretty-${PYVERSSUFFIX} | 4 | bin/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 |