Initial release
Sophie Brun authored 5 years ago
Sophie Brun committed 5 years ago
0 | python-ldapdomaindump (0.8.7-0kali1) kali-dev; urgency=medium | |
1 | ||
2 | * Initial release | |
3 | * Package Python 2 version for new impacket release (not ready for Python 3 | |
4 | now) | |
5 | ||
6 | -- Sophie Brun <[email protected]> Thu, 14 Mar 2019 14:51:09 +0100 |
0 | 11 |
0 | Source: python-ldapdomaindump | |
1 | Section: python | |
2 | Priority: optional | |
3 | Maintainer: Kali Developers <[email protected]> | |
4 | Uploaders: Sophie Brun <[email protected]> | |
5 | Build-Depends: debhelper (>= 11), dh-python, python-all, python-setuptools, python3-all, python3-setuptools, python-ldap3, python3-ldap3, python-dnspython, python3-dnspython | |
6 | Standards-Version: 4.2.1 | |
7 | Homepage: https://github.com/dirkjanm/ldapdomaindump | |
8 | Vcs-Browser: http://git.kali.org/gitweb/?p=packages/python-ldapdomaindump;a=summary | |
9 | Vcs-Git: git://git.kali.org/packages/python-ldapdomaindump.git | |
10 | Testsuite: autopkgtest-pkg-python | |
11 | ||
12 | Package: python-ldapdomaindump | |
13 | Architecture: all | |
14 | Depends: ${python:Depends}, ${misc:Depends} | |
15 | Description: Active Directory information dumper via LDAP (Python 2) | |
16 | This package contains an Active Directory information dumper via LDAP. In an | |
17 | Active Directory domain, a lot of interesting information can be retrieved via | |
18 | LDAP by any authenticated user (or machine). This makes LDAP an interesting | |
19 | protocol for gathering information in the recon phase of a pentest of an | |
20 | internal network. A problem is that data from LDAP often is not available in | |
21 | an easy to read format. | |
22 | . | |
23 | ldapdomaindump is a tool which aims to solve this problem, by collecting and | |
24 | parsing information available via LDAP and outputting it in a human readable | |
25 | HTML format, as well as machine readable json and csv/tsv/greppable files. | |
26 | . | |
27 | This package installs the library for Python 2. | |
28 | ||
29 | Package: python3-ldapdomaindump | |
30 | Architecture: all | |
31 | Depends: ${python3:Depends}, ${misc:Depends} | |
32 | Description: Active Directory information dumper via LDAP (Python 3) | |
33 | This package contains an Active Directory information dumper via LDAP. In an | |
34 | Active Directory domain, a lot of interesting information can be retrieved via | |
35 | LDAP by any authenticated user (or machine). This makes LDAP an interesting | |
36 | protocol for gathering information in the recon phase of a pentest of an | |
37 | internal network. A problem is that data from LDAP often is not available in | |
38 | an easy to read format. | |
39 | . | |
40 | ldapdomaindump is a tool which aims to solve this problem, by collecting and | |
41 | parsing information available via LDAP and outputting it in a human readable | |
42 | HTML format, as well as machine readable json and csv/tsv/greppable files. | |
43 | . | |
44 | This package installs the library for Python 3. |
0 | Format: https://www.debian.org/doc/packaging-manuals/copyright-format/1.0/ | |
1 | Upstream-Name: ldapdomaindump | |
2 | Source: https://github.com/dirkjanm/ldapdomaindump | |
3 | ||
4 | Files: * | |
5 | Copyright: 2016-2017 Dirk-jan Mollema | |
6 | License: MIT | |
7 | ||
8 | Files: debian/* | |
9 | Copyright: 2018 Sophie Brun <[email protected]> | |
10 | License: MIT | |
11 | ||
12 | License: MIT | |
13 | Permission is hereby granted, free of charge, to any person obtaining a copy | |
14 | of this software and associated documentation files (the "Software"), to deal | |
15 | in the Software without restriction, including without limitation the rights | |
16 | to use, copy, modify, merge, publish, distribute, sublicense, and/or sell | |
17 | copies of the Software, and to permit persons to whom the Software is | |
18 | furnished to do so, subject to the following conditions: | |
19 | . | |
20 | The above copyright notice and this permission notice shall be included in all | |
21 | copies or substantial portions of the Software. | |
22 | . | |
23 | THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR | |
24 | IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, | |
25 | FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE | |
26 | AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER | |
27 | LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, | |
28 | OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE | |
29 | SOFTWARE. |
0 | --- a/ldapdomaindump/__init__.py | |
1 | +++ b/ldapdomaindump/__init__.py | |
2 | @@ -25,7 +25,11 @@ | |
3 | import sys, os, re, codecs, json, argparse, getpass, base64 | |
4 | # import class and constants | |
5 | from datetime import datetime | |
6 | -from urllib import quote_plus | |
7 | +# Handle python3: urllib has been split into parts | |
8 | +try: | |
9 | + from urllib import quote_plus | |
10 | +except: | |
11 | + from urllib.parse import quote_plus | |
12 | ||
13 | import ldap3 | |
14 | from ldap3 import Server, Connection, SIMPLE, SYNC, ALL, SASL, NTLM | |
15 | @@ -799,11 +803,11 @@ class reportWriter(object): | |
16 | ||
17 | #Some quick logging helpers | |
18 | def log_warn(text): | |
19 | - print '[!] %s' % text | |
20 | + print ('[!] %s' % text) | |
21 | def log_info(text): | |
22 | - print '[*] %s' % text | |
23 | + print ('[*] %s' % text) | |
24 | def log_success(text): | |
25 | - print '[+] %s' % text | |
26 | + print ('[+] %s' % text) | |
27 | ||
28 | def main(): | |
29 | parser = argparse.ArgumentParser(description='Domain information dumper via LDAP. Dumps users/computers/groups and OS/membership information to HTML/JSON/greppable output.') |
0 | prepare-for-python3.patch |
0 | #!/usr/bin/make -f | |
1 | #export DH_VERBOSE = 1 | |
2 | ||
3 | export PYBUILD_NAME=ldapdomaindump | |
4 | ||
5 | %: | |
6 | dh $@ --with python2,python3 --buildsystem=pybuild | |
7 | ||
8 | override_dh_install: | |
9 | dh_install | |
10 | # don't install the python2 binaries to avoid conflicts between | |
11 | # Python2 and Python3 packages. | |
12 | rm debian/python2-ldapdomaindump/usr/bin/ldapdomaindump | |
13 | rm debian/python2-ldapdomaindump/usr/bin/ldd2bloodhound |
0 | 3.0 (quilt) |
0 | extend-diff-ignore = "^[^/]*[.]egg-info/" |