{"id":20042871,"url":"https://github.com/topscoder/oldhost","last_synced_at":"2025-09-20T09:31:18.418Z","repository":{"id":172481329,"uuid":"649345108","full_name":"topscoder/oldhost","owner":"topscoder","description":"oldhost is a tool for bug bounty hunters to discover old hosts that are no longer available, but might still be present on different known and related servers.","archived":false,"fork":false,"pushed_at":"2023-06-17T15:14:19.000Z","size":11,"stargazers_count":5,"open_issues_count":0,"forks_count":2,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-04-03T05:31:49.389Z","etag":null,"topics":["bug-bounty","bug-bounty-tools","golang"],"latest_commit_sha":null,"homepage":"","language":"Go","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"other","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/topscoder.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":"2023-06-04T15:03:16.000Z","updated_at":"2024-12-09T23:00:02.000Z","dependencies_parsed_at":null,"dependency_job_id":"cefc79e8-b285-45f8-9aee-cf11009b9927","html_url":"https://github.com/topscoder/oldhost","commit_stats":null,"previous_names":["topscoder/oldhost"],"tags_count":2,"template":false,"template_full_name":null,"purl":"pkg:github/topscoder/oldhost","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Foldhost","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Foldhost/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Foldhost/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Foldhost/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/topscoder","download_url":"https://codeload.github.com/topscoder/oldhost/tar.gz/refs/heads/main","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/topscoder%2Foldhost/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":276077039,"owners_count":25581287,"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","status":"online","status_checked_at":"2025-09-20T02:00:10.207Z","response_time":63,"last_error":null,"robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":true,"can_crawl_api":true,"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":["bug-bounty","bug-bounty-tools","golang"],"created_at":"2024-11-13T10:54:00.390Z","updated_at":"2025-09-20T09:31:18.411Z","avatar_url":"https://github.com/topscoder.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"# oldhost\n\n`oldhost` is a tool for bug bounty hunters to discover old hosts that are no longer available, but might still be present on different known and related servers.\n\n## Installation\n\nTo install `oldhost`, follow the steps below:\n\n- Ensure you have Go installed on your system.\n- Run the following command to install the required packages:\n\n```\ngo install -v github.com/topscoder/oldhost@latest\n```\n\n## Options\nRun the script using the following command-line arguments:\n\n```\noldhost -ips \u003cips\u003e -hosts \u003chosts\u003e [-curl] [-silent]\n```\n\n- `-ips` (required): Specify an IP address or provide a filename containing IP addresses (one per line).\n- `-hosts` (required): Specify the hostname or provide a filename containing hosts (one per line).\n- `-curl` (optional): Output the results as Curl commands.\n- `-silent` (optional): Run in silent mode, suppresses non-200 responses (except for content length).\n\nView the results:\n\n- The script will perform HTTP and HTTPS requests for each IP and host combination.\n- The script will display the response status code and content length for each successful request.\n- If the `-curl` flag is specified, Curl commands will be displayed instead of the response details.\n\n\n## Example\n\nHere is an example command to run `oldhost`:\n\n```\noldhost -ips \"192.168.0.1\" -hosts \"example.com\" -curl\n```\n\nThis command will perform HTTP and HTTPS requests to the specified IP addresses and hosts, displaying the results as Curl commands.\n\n## Notes\n\n- The script limits the number of concurrent calls to 5 for performance reasons. You can adjust this value by modifying the `semaphore` channel in the code.\n\n- The script supports both individual strings and filenames as input for IP addresses and hosts. If a filename is provided, the script reads the IP addresses and hosts from the file (one per line).\n\n- The script removes any trailing slashes from the hosts and tries to append default ports (\":80\" for HTTP and \":443\" for HTTPS) to the host header.\n\n- The script has a timeout of 1 second for each HTTP request.\n\n- If the `-silent` flag is specified, the script will only print results for successful requests (200 status code). Use this flag to reduce the output and focus on relevant information.\n\n## Contributing\n\nContributions are welcome! If you find a bug or want to suggest a new feature, please open an issue or submit a pull request.\n\n## License\n\nThis project is licensed under the [MIT License](LICENSE).\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopscoder%2Foldhost","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ftopscoder%2Foldhost","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ftopscoder%2Foldhost/lists"}