{"id":13839845,"url":"https://github.com/tomcarver16/ADSearch","last_synced_at":"2025-07-11T06:32:02.393Z","repository":{"id":40867640,"uuid":"273089659","full_name":"tomcarver16/ADSearch","owner":"tomcarver16","description":"A tool to help query AD via the LDAP protocol","archived":false,"fork":false,"pushed_at":"2023-07-07T14:39:50.000Z","size":231,"stargazers_count":435,"open_issues_count":3,"forks_count":48,"subscribers_count":8,"default_branch":"master","last_synced_at":"2024-08-05T17:24:19.996Z","etag":null,"topics":["active-directory","csharp","query","redteaming"],"latest_commit_sha":null,"homepage":"","language":"C#","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/tomcarver16.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"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}},"created_at":"2020-06-17T22:21:41.000Z","updated_at":"2024-08-01T09:24:03.000Z","dependencies_parsed_at":"2024-04-12T13:11:23.290Z","dependency_job_id":null,"html_url":"https://github.com/tomcarver16/ADSearch","commit_stats":null,"previous_names":[],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcarver16%2FADSearch","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcarver16%2FADSearch/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcarver16%2FADSearch/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/tomcarver16%2FADSearch/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/tomcarver16","download_url":"https://codeload.github.com/tomcarver16/ADSearch/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225700126,"owners_count":17510439,"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","csharp","query","redteaming"],"created_at":"2024-08-04T17:00:36.304Z","updated_at":"2024-11-21T08:31:38.159Z","avatar_url":"https://github.com/tomcarver16.png","language":"C#","readme":"# ADSearch\nA tool written for cobalt-strike's `execute-assembly` command that allows for more efficent querying of AD.\n\n## Key Features\n* List all Domain Admins\n* Custom LDAP Search\n* Connect to LDAPS Servers\n* Output JSON data from AD instances\n* Retrieve custom attributes from a generic query (i.e. All computers)\n\n## Usage\n```\nADSearch 1.0.0.0\nCopyright c  2020\nUSAGE:\nQuery Active Directory remotely or locally:\n  ADSearch --domain ldap.example.com --password AdminPass1 --username admin --users\n\n  -f, --full          If set will show all attributes for the returned item.\n\n  -o, --output        File path to output the results to.\n\n  --json              (Default: false) Output results in json format.\n\n  --supress-banner    When set banner will be disabled.\n\n  -G, --groups        Enumerate and return all groups from AD.\n\n  -U, --users         Enumerate and return all users from AD.\n\n  -C, --computers     Enumerate and return all computers joined to the AD.\n\n  -S, --spns          Enumerate and return all SPNS from AD.\n\n  --attributes        (Default: cn) Attributes to be returned from the results in csv format.\n\n  -s, --search        Perform a custom search on the AD server.\n\n  --domain-admins     Attempt to retreive all Domain Admin accounts.\n\n  -u, --username      Attempts to authenticate to AD with the given username.\n\n  -p, --password      Attempts to authenticate to AD with the given password.\n\n  -h, --hostname      If set will attempt a remote bind to the hostname. This option requires the domain option to be set to a valid DC on the hostname. Will allow an IP address to be used as well.\n\n  -p, --port          (Default: 636) If set will attempt a remote bind to the port based on the IP.\n\n  -d, --domain        The domain controller we are connecting to in the FQDN format. If left blank then all other connection options are ignored and the lookups are done locally.\n\n  --insecure          (Default: false) If set will communicate over port 389 and not use SSL\n\n  --help              Display this help screen.\n\n  --version           Display version information.\n```\n\n## Screenshots\n### Display all SPNs\n![Display all SPNs](https://github.com/tomcarver16/ADSearch/blob/master/Images/all-spns.png \"All Spns\")\n### Display all users\n![Display all Users](https://github.com/tomcarver16/ADSearch/blob/master/Images/all-users.png \"All Users\")\n### Get custom attributes back from custom search\n![Display results with custom attributes](https://github.com/tomcarver16/ADSearch/blob/master/Images/custom-attributes.png \"Custom Attributes\")\n","funding_links":[],"categories":["C# #","C# (212)"],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomcarver16%2FADSearch","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftomcarver16%2FADSearch","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftomcarver16%2FADSearch/lists"}