{"id":21573706,"url":"https://github.com/syss-research/ldif2bloodhound","last_synced_at":"2025-04-10T16:11:53.944Z","repository":{"id":97675958,"uuid":"593530976","full_name":"SySS-Research/ldif2bloodhound","owner":"SySS-Research","description":" Convert an LDIF file to JSON files ingestible by BloodHound ","archived":false,"fork":false,"pushed_at":"2023-01-27T07:26:35.000Z","size":8,"stargazers_count":21,"open_issues_count":0,"forks_count":1,"subscribers_count":3,"default_branch":"main","last_synced_at":"2023-03-06T22:05:24.164Z","etag":null,"topics":["active-directory","bloodhound","ldap","ldif","pentest"],"latest_commit_sha":null,"homepage":"","language":"Python","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/SySS-Research.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","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}},"created_at":"2023-01-26T08:32:33.000Z","updated_at":"2024-04-15T10:53:24.006Z","dependencies_parsed_at":null,"dependency_job_id":"ac195b2f-db85-482c-a761-663e29794fee","html_url":"https://github.com/SySS-Research/ldif2bloodhound","commit_stats":null,"previous_names":[],"tags_count":0,"template":null,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySS-Research%2Fldif2bloodhound","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySS-Research%2Fldif2bloodhound/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySS-Research%2Fldif2bloodhound/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/SySS-Research%2Fldif2bloodhound/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/SySS-Research","download_url":"https://codeload.github.com/SySS-Research/ldif2bloodhound/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":248251020,"owners_count":21072685,"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","bloodhound","ldap","ldif","pentest"],"created_at":"2024-11-24T12:07:45.698Z","updated_at":"2025-04-10T16:11:53.926Z","avatar_url":"https://github.com/SySS-Research.png","language":"Python","funding_links":[],"categories":[],"sub_categories":[],"readme":"ldif2bloodhound\n===============\n\nConvert an LDIF file to JSON files ingestible by BloodHound.\n\nThe LDIF file should be retrieved like this with `ldapsearch`:\n\n```console\n$ for base in \"\" \"CN=Schema,CN=Configuration,\" ; do \\\n    LDAPTLS_REQCERT=never ldapsearch \\\n    -H ldap://\u003cDC\u003e \\\n    -D \u003cUSERNAME\u003e@corp.local \\\n    -w \u003cPASSWORD\u003e \\\n    -b \"${base}DC=corp,DC=local\" \\\n    -x \\\n    -o ldif-wrap=no \\\n    -E pr=1000/noprompt \\\n    -E '!1.2.840.113556.1.4.801=::MAMCAQc=' \\\n    -LLL \\\n    -ZZ \\\n    '(objectClass=*)' \\\n    ; done \u003e\u003e output_$(date +%s).ldif\n```\n\nIn case StartTLS does not work, remove the `-ZZ` flag and replace\n`ldap://` with `ldaps://`. Or leave it at `ldap://` if you like to live\ndangerously.\n\nThe second `-E` argument is needed so that ACLs are also dumped.\n\nThen, the conversion works as follows:\n\n```console\n$ ldif2bloodhound output_*.ldif\n```\n\nFor more options, run `ldif2bloodhound --help`.\n\nThe obvious limitation is that you won't get information about sessions or\nlocal group memberships, just like with\n[ADExplorerSnapshot.py](https://github.com/c3c/ADExplorerSnapshot.py).\nParsing LDIF data is more equivalent to running SharpHound with `-c DCOnly`\n(perhaps even less).\n[BloodHound.py](https://github.com/fox-it/BloodHound.py) is a better choice\nto collect this data in most scenarios.\n\nInstallation\n------------\n\nInstall with this command:\n\n```console\n$ pip install git+https://github.com/SySS-Research/ldif2bloodhound\n```\n\nCopyright and License\n---------------------\n\nSySS GmbH, Adrian Vollmer. MIT Licensed.\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyss-research%2Fldif2bloodhound","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fsyss-research%2Fldif2bloodhound","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fsyss-research%2Fldif2bloodhound/lists"}