{"id":22296777,"url":"https://github.com/webklex/hd","last_synced_at":"2025-03-25T22:41:06.109Z","repository":{"id":71427907,"uuid":"543383397","full_name":"Webklex/hd","owner":"Webklex","description":"Check a single or many targets how they behave if an altered host header is supplied.","archived":false,"fork":false,"pushed_at":"2022-09-30T01:24:18.000Z","size":5,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-01-30T19:55:50.868Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Go","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/Webklex.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,"publiccode":null,"codemeta":null}},"created_at":"2022-09-30T01:22:20.000Z","updated_at":"2022-09-30T01:24:41.000Z","dependencies_parsed_at":"2023-02-25T18:30:52.954Z","dependency_job_id":null,"html_url":"https://github.com/Webklex/hd","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/Webklex%2Fhd","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhd/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhd/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/Webklex%2Fhd/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/Webklex","download_url":"https://codeload.github.com/Webklex/hd/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245556961,"owners_count":20634888,"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":[],"created_at":"2024-12-03T17:47:35.213Z","updated_at":"2025-03-25T22:41:06.080Z","avatar_url":"https://github.com/Webklex.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# HD - Host header ding\n\nCheck a single or many targets how they behave if an altered host header is supplied.\n\n\n## Installation\n```bash\ngo install -v github.com/webklex/hd@main\n```\n\n## Usage\n```bash\nUsage of hd:\n  --output    string    File to store all outputs\n  --target    string    Targets to scan\n  --target-file string  File containing a list of targets\n  --user-agent  string  Set a custom user agent (default \"Mozilla/5.0 (X11; Linux x86_64) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/105.0.0.0 Safari/537.36\")\n  --host-name string    Fake hostname used to verify host header injection (default \"somethingbadthatdoesntexist-hopefully.com\")\n  --scheme    string    Default url scheme (default \"https\")\n  --score     float     Percentage of response lines that have to be identical (default 90)\n  --threads   int       Number of threads (default 10)\n  --delay     duration  Delay between requests (default 0s)\n  --timeout   duration  Request timeout (default 10s)\n  --redirects Follow all redirects\n  --no-color  Disable color output\n  --version   Show version and exit\n```\n\n```bash\n./hd --target rediit.com,google.com,twitter.com,doesntexist.com --host-name evil.com\n```\n\n```text\n[success] https://reddit.com [200] [7201] [200] [5050] [22.17] [redirect]\n[info] https://reddit.com [200] [7201] [200] [5050] [22.17] [none]\n[success] https://twitter.com [200] [6023] [200] [6023] [100.00] [injection]\n[failed] https://google.com [301] [220] [404] [1561] [14.29] []\n[error] host unreachable https://doesntexist.com\n```\n\nThe default output is grepable. If you don't like color, you can disable it with `--no-color`.\n`[status] target [request status code] [request response size] [modified request status code] [modified request response size] [response difference score] [finding]`\n\n**Finding:**\n- `injection` -- the faked host header seems to be accepted\n- `recirect` -- the faked host header redirected to the fake host\n- `none` -- the second response deviates too much from the defined score\n- ` ` -- it`s not clear what's exactly happening or what it could mean\n\n**Status:**\n- `success` -- looks good :)\n- `info` -- probably nothing, but who knows\n- `failed` -- Initial request isn't returning status `200 OK`\n- `error` -- something bad has happened\n\nThe supplied targets don't have to be an url. A plain domain name works as well. \nThe default schema `https` will get applied to any target without one. You can change this by providing the following \nargument: `--scheme http`\n\n\n## Build\n```bash\ngo build -a -ldflags \"-w -s -X main.buildVersion=custom\" -o hd\n```\n\n\n## Security\nIf you discover any security related issues, please email github@webklex.com instead of using the issue tracker.\n\n\n## Credits\n- [Webklex][link-author]\n- [All Contributors][link-contributors]\n\n\n## License\nThe MIT License (MIT). Please see [License File](LICENSE.md) for more information.\n\n\n[link-author]: https://github.com/webklex\n[link-contributors]: https://github.com/webklex/hd/graphs/contributors","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fhd","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fwebklex%2Fhd","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fwebklex%2Fhd/lists"}