{"id":18562504,"url":"https://github.com/root4loot/recrawl","last_synced_at":"2025-10-11T00:36:09.341Z","repository":{"id":153717162,"uuid":"624087828","full_name":"root4loot/recrawl","owner":"root4loot","description":"A web crawler written in Go","archived":false,"fork":false,"pushed_at":"2025-09-24T09:08:46.000Z","size":5334,"stargazers_count":10,"open_issues_count":0,"forks_count":0,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-09-24T09:11:14.799Z","etag":null,"topics":["bugbounty","crawler","discovery","enumeration","go","golang","recon","reconnaissance","web"],"latest_commit_sha":null,"homepage":"","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/root4loot.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":"CONTRIBUTING.md","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,"zenodo":null,"notice":null,"maintainers":null,"copyright":null,"agents":null,"dco":null,"cla":null}},"created_at":"2023-04-05T18:07:00.000Z","updated_at":"2025-09-24T09:08:49.000Z","dependencies_parsed_at":"2023-11-15T22:29:20.290Z","dependency_job_id":"db6f7db7-50df-4818-b9b5-80049d1bcbd0","html_url":"https://github.com/root4loot/recrawl","commit_stats":null,"previous_names":["root4loot/urldiscover","root4loot/recrawl"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/root4loot/recrawl","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Frecrawl","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Frecrawl/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Frecrawl/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Frecrawl/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/root4loot","download_url":"https://codeload.github.com/root4loot/recrawl/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/root4loot%2Frecrawl/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":279005651,"owners_count":26083942,"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-10-10T02:00:06.843Z","response_time":62,"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":["bugbounty","crawler","discovery","enumeration","go","golang","recon","reconnaissance","web"],"created_at":"2024-11-06T22:09:55.799Z","updated_at":"2025-10-11T00:36:09.335Z","avatar_url":"https://github.com/root4loot.png","language":"Go","funding_links":[],"categories":[],"sub_categories":[],"readme":"\u003cp align=\"center\"\u003e\n  \u003cimg src=\"./recrawl.png\" alt=\"\" width=\"300\"/\u003e\n\u003c/p\u003e\n\n\u003cdiv align=\"center\"\u003e\n  A web crawler written in Go\n\u003c/div\u003e\n\n\u003cbr\u003e\n\n\u003cdiv align=\"center\"\u003e\n  \u003ca href=\"https://github.com/root4loot/recrawl/actions/workflows/build.yml\"\u003e\n    \u003cimg src=\"https://github.com/root4loot/recrawl/actions/workflows/build.yml/badge.svg?branch=master\" alt=\"Build\"\u003e\n  \u003c/a\u003e\n  \u003cimg src=\"https://img.shields.io/twitter/follow/danielantonsen.svg?style=dark\" alt=\"Twitter Follow\"/\u003e\n\u003c/div\u003e\n\n## Installation\n\n### Go\n```\ngo install github.com/root4loot/recrawl@master\n```\n\n### Docker\n```\ngit clone https://github.com/root4loot/recrawl.git \u0026\u0026 cd recrawl\ndocker build -t recrawl .\ndocker run -it recrawl -h\n```\n\n## Usage\n```sh\nUsage:\n  recrawl [options] (-t \u003ctarget\u003e | -I \u003ctargets.txt\u003e)\n\nTARGETING:\n  -i, --infile            file containing targets                (one per line)\n  -t, --target            target domain/url                      (comma-separated)\n  -ih, --include-host     also crawls this host (if found)       (comma-separated)\n  -eh, --exclude-host     do not crawl this host (if found)      (comma-separated)\n\nCONFIGURATIONS:\n  -c, --concurrency       number of concurrent requests          (Default: 20)\n  -to, --timeout          max request timeout                    (Default: 10 seconds)\n  -d, --delay             delay between requests                 (Default: 0 milliseconds)\n  -dj, --delay-jitter     max jitter between requests            (Default: 0 milliseconds)\n  -ua, --user-agent       set user agent                         (Default: Mozilla/5.0)\n  -fr, --follow-redirects follow redirects                       (Default: true)\n  -p, --proxy             set proxy                              (Default: none)\n  -r, --resolvers         file containing list of resolvers      (Default: System DNS)\n  -H, --header            set custom header                      (Default: none)\n  -ph, --prefer-http      prefer HTTP over HTTPS for targets     (Default: false)\n  -mp, --mine-params      mine HTTP parameters from responses    (Default: false)\n  -ed, --enable-discovery enable web discovery fuzzing           (Default: false)\n\nOUTPUT:\n  -fs, --filter-status    filter by status code                  (comma-separated)\n  -fe, --filter-ext       filter by extension                    (comma-separated)\n  -v, --verbose           verbose output                         (use -vv for added verbosity)\n  -o, --outfile           output results to given file\n  -hs, --hide-status      hide status code from output\n  -hw, --hide-warning     hide warnings from output\n  -hm, --hide-media       hide media from output (images, fonts, etc.)\n  -s, --silence           silence results from output\n  -h, --help              display help\n      --version           display version\n```\n\n## Parameter Mining\n\nWhen enabled with `-mp/--mine-params`, recrawl mines likely HTTP parameters from:\n- URL queries (e.g., `?q=term\u0026page=2`)\n- HTML forms (`\u003cinput\u003e`, `\u003ctextarea\u003e`, `\u003cselect\u003e`)\n- JavaScript bodies in `fetch`, `XMLHttpRequest`, and jQuery `$.post/$.ajax`\n- HTML `data-*` attributes\n- Hidden inputs\n- GraphQL variable declarations\n- WebSocket URLs (query string)\n\nParameters are grouped by certainty: high (URL/query + form fields), medium (JS/data/hidden/meta), low (reserved for weaker heuristics). Common non-parameters like `class`, `style`, etc. are ignored.\n\nNotes:\n- The parameter summary prints after the crawl finishes.\n- Parameter names must be simple identifiers (letters, numbers, `_`, `-`) and start with a letter or underscore.\n\n## Web Discovery\n\nWhen enabled with `-ed/--enable-discovery`, recrawl performs web discovery fuzzing after normal crawling. Uses a curated 1022-entry wordlist containing:\n- Common files and directories (from SecLists raft-small)\n- API endpoints (`api/`, `api/auth`, etc.)\n- NPM/dev paths (`package.json`, `node_modules`, `.env`, etc.)\n\n**Scope Behavior**\n- If no includes are defined, everything is in scope unless explicitly excluded.\n- If includes are defined, only those targets are in scope; everything else is out of scope by default.\n- Exclusions always take priority over inclusions.\n\n\n## Example\n\n```sh\n# Crawl *.example.com\n➜ recrawl -t example.com\n➜ recrawl -t example.com\n\n# Crawl *.example.com and IP address\n➜ recrawl -t example.com,103.196.38.38\n\n# Crawl all hosts in given file\n➜ recrawl -i targets.txt\n\n# Crawl *.example.com and also include *.example2.com if found\n➜ recrawl -t example.com -ih example2.com\n\n# Crawl all domains in target that contain the word example\n➜ recrawl -t example.com -ih example\n\n# Crawl *.example.com but avoid foo.example.com\n➜ recrawl -t example.com -eh foo.example.com\n\n# Only crawl hosts within explicit scope\n➜ recrawl -t example.com -ih example.com,example.net\n\n# Crawl and output mined params\n➜ recrawl -t \"https://example.org/?q=abc\u0026page=1\" --mine-params\n```\n\n### Example running\n\nRunning recrawl against hackerone.com to filter JavaScript files:\n\n```sh\n➜ recrawl -t hackerone.com --filter-ext js\n```\n\n\u003cdetails open style=\"background-color: #f0f0f0;\"\u003e\n\u003csummary style=\"font-weight: bold; color: #333; background-color: #ddd; padding: 5px;\"\u003eOther ways to set target\u003c/summary\u003e\n\nPipe the target URL\n```sh\n➜ echo hackerone.com | recrawl\n```\n\nPipe a file containing targets \n```sh\n➜ echo targets.txt | recrawl\n```\n\nUse the -i option to provide a file with targets\n```sh\n➜ recrawl -i targets.txt\n```\n\u003c/details\u003e\n\n\nThis will crawl hackerone.com and filter JavaScript files. Sample output:\n\n```sh\n[recrawl] (INF) Included extensions: js\n[recrawl] (INF) Concurrency: 20\n[recrawl] (INF) Timeout: 10 seconds\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_EOrKavGmjAkpIaCW_cpGJ240OpVZev_5NI-WGIx5URg.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_5JbqBIuSpSQJk1bRx1jnlE-pARPyPPF5H07tKLzNC80.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_a7_tjanmGpd_aITZ38ofV8QT2o2axkGnWqPwKna1Wf0.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_xF9mKu6OVNysPMy7w3zYTWNPFBDlury_lEKDCfRuuHs.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_coYiv6lRieZN3l0IkRYgmvrMASvFk2BL-jdq5yjFbGs.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_Z1eePR_Hbt8TCXBt3JlFoTBdW2k9-IFI3f96O21Dwdw.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_LEbRIvnUToqIQrjG9YpPgaIHK6o77rKVGouOaWLGI5k.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_ol7H2KkxPxe7E03XeuZQO5qMcg0RpfSOgrm_Kg94rOs.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_p5BLPpvjnAGGBCPUsc4EmBUw9IUJ0jMj-QY_1ZpOKG4.js\n[recrawl] (RES) 200 https://www.hackerone.com/sites/default/files/js/js_V5P0-9GKw8QQe-7oWrMD44IbDva6o8GE-cZS7inJr-g.js\n...\n```\n\nResults can be piped to stdout:\n\n```sh\n➜ recrawl -t hackerone.com --hide-status --filter-ext js | cat\n```\n\nOr saved to specified file:\n\n```sh\n➜ recrawl -t hackerone.com --hide-status --filter-ext js -o results.txt\n```\n\n## As lib\n```sh\ngo get -u github.com/root4loot/recrawl\n```\n\n```go\npackage main\n\nimport (\n    \"fmt\"\n\n    \"github.com/root4loot/recrawl/pkg/recrawl\"\n    \"github.com/root4loot/scope\"\n)\n\nfunc main() {\n\n\topts := recrawl.NewOptions().WithDefaults()\n\ts := scope.NewScope()\n\n\t_ = s.AddInclude(\"sub.example.com\")     // also follow links here\n\t_ = s.AddExclude(\"support.example.com\") // but don't follow links here\n\n\topts.Scope = s\n\topts.Concurrency = 2\n\topts.Timeout = 10\n\topts.Resolvers = []string{\"8.8.8.8\", \"208.67.222.222\"}\n\topts.UserAgent = \"recrawl\"\n    // Enable parameter mining\n    opts.MineParams = true\n\n\t// Defaults already applied by NewOptions(); nothing else needed here\n\n\tr := recrawl.NewRecrawlWithOptions(opts)\n\n    // process results as they come in\n    go func() {\n        for result := range r.Results {\n            fmt.Println(result.StatusCode, result.RequestURL, result.Error)\n        }\n    }()\n\n    // single run\n    r.Run(\"example.com\")\n\n    if jsonStr, err := r.ParamMiner.ToJSON(); err == nil \u0026\u0026 jsonStr != \"\" {\n        fmt.Println(\"Parameters:\")\n        fmt.Println(jsonStr)\n    }\n\n```\n\n## Contributing\n\nContributions are very welcome. See [CONTRIBUTING.md](CONTRIBUTING.md)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot4loot%2Frecrawl","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Froot4loot%2Frecrawl","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Froot4loot%2Frecrawl/lists"}