{"id":22147121,"url":"https://github.com/p0dalirius/pyldapwordlistharvester","last_synced_at":"2025-05-16T08:05:14.973Z","repository":{"id":196659877,"uuid":"695082715","full_name":"p0dalirius/pyLDAPWordlistHarvester","owner":"p0dalirius","description":"A tool to generate a wordlist from the information present in LDAP, in order to crack passwords of domain accounts.","archived":false,"fork":false,"pushed_at":"2025-02-11T08:05:22.000Z","size":497,"stargazers_count":354,"open_issues_count":4,"forks_count":28,"subscribers_count":5,"default_branch":"main","last_synced_at":"2025-05-15T06:56:50.976Z","etag":null,"topics":["active-directory","cracking","ldap","ntds","wordlist"],"latest_commit_sha":null,"homepage":"https://podalirius.net/","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":null,"status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/p0dalirius.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":".github/FUNDING.yml","license":null,"code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null},"funding":{"github":"p0dalirius","patreon":"Podalirius"}},"created_at":"2023-09-22T10:10:10.000Z","updated_at":"2025-05-12T15:52:56.000Z","dependencies_parsed_at":"2023-11-28T14:29:34.673Z","dependency_job_id":"d6e3ca8b-6a43-4d61-8bb7-f4a12a2f1bef","html_url":"https://github.com/p0dalirius/pyLDAPWordlistHarvester","commit_stats":null,"previous_names":["p0dalirius/ldapwordlistharvester","p0dalirius/pyldapwordlistharvester"],"tags_count":2,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FpyLDAPWordlistHarvester","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FpyLDAPWordlistHarvester/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FpyLDAPWordlistHarvester/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2FpyLDAPWordlistHarvester/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p0dalirius","download_url":"https://codeload.github.com/p0dalirius/pyLDAPWordlistHarvester/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":254493378,"owners_count":22080126,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["active-directory","cracking","ldap","ntds","wordlist"],"created_at":"2024-12-01T23:03:07.395Z","updated_at":"2025-05-16T08:05:09.906Z","avatar_url":"https://github.com/p0dalirius.png","language":"Python","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"readme":"![](./.github/banner.png)\n\n\u003cp align=\"center\"\u003e\n    A tool to generate a wordlist from the information present in LDAP, in order to crack non-random passwords of domain accounts.\n    \u003cbr\u003e\n    \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/p0dalirius/ExtractBitlockerKeys\"\u003e\n    \u003ca href=\"https://twitter.com/intent/follow?screen_name=podalirius_\" title=\"Follow\"\u003e\u003cimg src=\"https://img.shields.io/twitter/follow/podalirius_?label=Podalirius\u0026style=social\"\u003e\u003c/a\u003e\n    \u003ca href=\"https://www.youtube.com/c/Podalirius_?sub_confirmation=1\" title=\"Subscribe\"\u003e\u003cimg alt=\"YouTube Channel Subscribers\" src=\"https://img.shields.io/youtube/channel/subscribers/UCF_x5O7CSfr82AfNVTKOv_A?style=social\"\u003e\u003c/a\u003e\n    \u003cbr\u003e\n\u003c/p\u003e\n\n## Features\n\n_The bigger the domain is, the better the wordlist will be._\n\n - [x] Creates a wordlist based on the following information found in the LDAP:\n   - [x] **User**: `name` and `sAMAccountName`\n   - [x] **Computer**: `name` and `sAMAccountName`\n   - [x] **Groups**: `name`\n   - [x] **Organizational Units**: `name`\n   - [x] **Active Directory Sites**: `name` and `descriptions`\n   - [x] **All LDAP objects**: `descriptions`\n - [x] Choose wordlist output file name with option `--outputfile`\n\n---\n\n## Demonstration\n\nTo generate a wordlist from the LDAP of the domain `domain.local` you can use this command:\n\n```\n./LDAPWordlistHarvester.py -d 'domain.local' -u 'Administrator' -p 'P@ssw0rd123!' --dc-ip 192.168.1.101\n```\n\nYou will get the following output if using the [Python version](LDAPWordlistHarvester.py):\n\n![](./.github/example_python.png)\n\nYou will get the following output if using the [Powershell version](LDAPWordlistHarvester.ps1):\n\n![](./.github/example_powershell.png)\n\n---\n\n## Cracking passwords\n\nOnce you have this wordlist, you should crack your NTDS using hashcat, `--loopback` and the rule [clem9669_large.rule](https://github.com/clem9669/hashcat-rule/blob/master/clem9669_large.rule).\n\n```\n./hashcat --hash-type 1000 --potfile-path ./client.potfile ./client.ntds ./wordlist.txt --rules ./clem9669_large.rule --loopback\n```\n\n---\n\n## Usage\n\n```\n$ ./LDAPWordlistHarvester.py -h\nLDAPWordlistHarvester.py v1.1 - by Remi GASCOU (Podalirius)\n\nusage: LDAPWordlistHarvester.py [-h] [-v] [-o OUTPUTFILE] --dc-ip ip address [-d DOMAIN] [-u USER] [--ldaps] [--no-pass | -p PASSWORD | -H [LMHASH:]NTHASH | --aes-key hex key] [-k]\n\noptions:\n  -h, --help            show this help message and exit\n  -v, --verbose         Verbose mode. (default: False)\n  -o OUTPUTFILE, --outputfile OUTPUTFILE\n                        Path to output file of wordlist.\n\nAuthentication \u0026 connection:\n  --dc-ip ip address    IP Address of the domain controller or KDC (Key Distribution Center) for Kerberos. If omitted it will use the domain part (FQDN) specified in the identity parameter\n  -d DOMAIN, --domain DOMAIN\n                        (FQDN) domain to authenticate to\n  -u USER, --user USER  user to authenticate with\n  --ldaps               Use LDAPS instead of LDAP\n\nCredentials:\n  --no-pass             Don't ask for password (useful for -k)\n  -p PASSWORD, --password PASSWORD\n                        Password to authenticate with\n  -H [LMHASH:]NTHASH, --hashes [LMHASH:]NTHASH\n                        NT/LM hashes, format is LMhash:NThash\n  --aes-key hex key     AES key to use for Kerberos Authentication (128 or 256 bits)\n  -k, --kerberos        Use Kerberos authentication. Grabs credentials from .ccache file (KRB5CCNAME) based on target parameters. If valid credentials cannot be found, it will use the ones specified in the command line\n```\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fpyldapwordlistharvester","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0dalirius%2Fpyldapwordlistharvester","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fpyldapwordlistharvester/lists"}