Update for new upstream release 0.9.1
Sophie Brun
5 years ago
0 | python-ldapdomaindump (0.8.7-0kali1) kali-dev; urgency=medium | |
0 | python-ldapdomaindump (0.9.1-0kali1) kali-dev; urgency=medium | |
1 | 1 | |
2 | 2 | * Initial release |
3 | 3 | * Package Python 2 version for new impacket release (not ready for Python 3 |
4 | 4 | now) |
5 | 5 | |
6 | -- Sophie Brun <[email protected]> Thu, 14 Mar 2019 14:51:09 +0100 | |
6 | -- Sophie Brun <[email protected]> Thu, 14 Mar 2019 14:53:20 +0100 |
2 | 2 | Priority: optional |
3 | 3 | Maintainer: Kali Developers <[email protected]> |
4 | 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 | |
5 | Build-Depends: debhelper-compat (= 12), | |
6 | dh-python, | |
7 | python-all, | |
8 | python-dnspython, | |
9 | python-future, | |
10 | python-ldap3, | |
11 | python-setuptools, | |
12 | python3-all, | |
13 | python3-dnspython, | |
14 | python3-future, | |
15 | python3-ldap3, | |
16 | python3-setuptools | |
17 | Standards-Version: 4.3.0 | |
7 | 18 | Homepage: https://github.com/dirkjanm/ldapdomaindump |
8 | 19 | Vcs-Browser: http://git.kali.org/gitweb/?p=packages/python-ldapdomaindump;a=summary |
9 | 20 | Vcs-Git: git://git.kali.org/packages/python-ldapdomaindump.git |
11 | 22 | |
12 | 23 | Package: python-ldapdomaindump |
13 | 24 | Architecture: all |
14 | Depends: ${python:Depends}, ${misc:Depends} | |
25 | Depends: ${misc:Depends}, ${python:Depends} | |
15 | 26 | Description: Active Directory information dumper via LDAP (Python 2) |
16 | 27 | This package contains an Active Directory information dumper via LDAP. In an |
17 | 28 | Active Directory domain, a lot of interesting information can be retrieved via |
28 | 39 | |
29 | 40 | Package: python3-ldapdomaindump |
30 | 41 | Architecture: all |
31 | Depends: ${python3:Depends}, ${misc:Depends} | |
42 | Depends: ${misc:Depends}, ${python3:Depends} | |
32 | 43 | Description: Active Directory information dumper via LDAP (Python 3) |
33 | 44 | This package contains an Active Directory information dumper via LDAP. In an |
34 | 45 | Active Directory domain, a lot of interesting information can be retrieved via |
6 | 6 | License: MIT |
7 | 7 | |
8 | 8 | Files: debian/* |
9 | Copyright: 2018 Sophie Brun <[email protected]> | |
9 | Copyright: 2018-2019 Sophie Brun <[email protected]> | |
10 | 10 | License: MIT |
11 | 11 | |
12 | 12 | License: MIT |
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.') |
9 | 9 | dh_install |
10 | 10 | # don't install the python2 binaries to avoid conflicts between |
11 | 11 | # Python2 and Python3 packages. |
12 | rm debian/python2-ldapdomaindump/usr/bin/ldapdomaindump | |
13 | rm debian/python2-ldapdomaindump/usr/bin/ldd2bloodhound | |
12 | rm debian/python-ldapdomaindump/usr/bin/ldapdomaindump | |
13 | rm debian/python-ldapdomaindump/usr/bin/ldd2bloodhound |