{"id":17994936,"url":"https://github.com/p0dalirius/ldapconsole","last_synced_at":"2025-04-03T03:13:11.000Z","repository":{"id":41381726,"uuid":"436689712","full_name":"p0dalirius/ldapconsole","owner":"p0dalirius","description":"The ldapconsole script allows you to perform custom LDAP requests to a Windows domain.","archived":false,"fork":false,"pushed_at":"2025-01-31T14:13:41.000Z","size":186,"stargazers_count":64,"open_issues_count":6,"forks_count":11,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-26T23:07:29.772Z","etag":null,"topics":["active-directory","bugbounty","ldap","pentesting","search"],"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":"2021-12-09T16:42:48.000Z","updated_at":"2025-03-14T07:13:05.000Z","dependencies_parsed_at":"2024-07-25T12:26:39.297Z","dependency_job_id":"b8185fe7-d6dd-4493-9524-dfa0998e352c","html_url":"https://github.com/p0dalirius/ldapconsole","commit_stats":null,"previous_names":[],"tags_count":3,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2Fldapconsole","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2Fldapconsole/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2Fldapconsole/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p0dalirius%2Fldapconsole/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p0dalirius","download_url":"https://codeload.github.com/p0dalirius/ldapconsole/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":246927839,"owners_count":20856198,"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","bugbounty","ldap","pentesting","search"],"created_at":"2024-10-29T20:17:14.074Z","updated_at":"2025-04-03T03:13:10.976Z","avatar_url":"https://github.com/p0dalirius.png","language":"Python","readme":"![](./.github/banner.png)\n\n\u003cp align=\"center\"\u003e\n  The ldapconsole script allows you to perform custom LDAP requests to a Windows domain.\n  \u003cbr\u003e\n  \u003cimg alt=\"GitHub release (latest by date)\" src=\"https://img.shields.io/github/v/release/p0dalirius/ldapconsole\"\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 - [x] Authentications:\n   - [x] Authenticate with password\n   - [x] Authenticate with LM:NT hashes (Pass the Hash)\n   - [x] Authenticate with kerberos ticket (Pass the Ticket)\n - [x] Interactive mode\n   - [x] Colored results\n   - [x] Preset queries \n - [x] Non-interactive mode\n   - [x] Colored results\n   - [x] Exportable to XLSX format with option `--xlsx`\n  \n## Requirements\n\nFor `python-ldap`:\n\n```bash\nsudo apt-get install libsasl2-dev python3-dev libldap2-dev libssl-dev\n```\n\nAnd then:\n\n```bash\npython3 -m pip install -r requirements.txt\n```\n\n## Examples\n\n```bash\n./ldapconsole.py -u 'user1' -p 'Admin123!' -d 'LAB.local' --dc-ip 192.168.2.1\n```\n\n![](./.github/example.png)\n\n### Extract the list of the computers with an obsolete OS to an Excel file\n\n```bash\n./ldapconsole.py -d LAB.local -u Administrator -p 'Admin123!' --dc-ip 10.0.0.101 -q '(\u0026(objectCategory=Computer)(|(operatingSystem=Windows 2000*)(operatingSystem=Windows Vista*)(operatingSystem=Windows XP*)(operatingSystem=Windows 7*)(operatingSystem=Windows 8*)(operatingSystem=Windows Server 200*)(operatingSystem=Windows Server 2012*)))' -a 'operatingSystem' -a 'operatingSystemVersion' -x ComputersWithObsoleteOSes.xlsx\n```\n\n## Contributing\n\nPull requests are welcome. Feel free to open an issue if you want to add other features.\n","funding_links":["https://github.com/sponsors/p0dalirius","https://patreon.com/Podalirius"],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fldapconsole","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp0dalirius%2Fldapconsole","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp0dalirius%2Fldapconsole/lists"}