{"id":15440738,"url":"https://github.com/jonluca/burp-copy-as-node","last_synced_at":"2025-04-19T19:35:23.363Z","repository":{"id":52714095,"uuid":"108906808","full_name":"jonluca/Burp-Copy-As-Node","owner":"jonluca","description":"Burp extension to copy a request as a node.js requests function","archived":false,"fork":false,"pushed_at":"2021-04-20T12:12:53.000Z","size":118,"stargazers_count":6,"open_issues_count":0,"forks_count":3,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-03-29T12:22:20.356Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Java","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/jonluca.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}},"created_at":"2017-10-30T20:48:44.000Z","updated_at":"2023-11-04T20:22:03.000Z","dependencies_parsed_at":"2022-08-22T09:21:23.194Z","dependency_job_id":null,"html_url":"https://github.com/jonluca/Burp-Copy-As-Node","commit_stats":null,"previous_names":[],"tags_count":1,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2FBurp-Copy-As-Node","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2FBurp-Copy-As-Node/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2FBurp-Copy-As-Node/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/jonluca%2FBurp-Copy-As-Node/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/jonluca","download_url":"https://codeload.github.com/jonluca/Burp-Copy-As-Node/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":249780783,"owners_count":21324617,"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-10-01T19:15:10.227Z","updated_at":"2025-04-19T19:35:23.341Z","avatar_url":"https://github.com/jonluca.png","language":"Java","funding_links":[],"categories":["\u003ca id=\"5b761419863bc686be12c76451f49532\"\u003e\u003c/a\u003e新添加"],"sub_categories":["\u003ca id=\"285c52a4e04dd2f86646c8e1235c9332\"\u003e\u003c/a\u003e工具"],"readme":"# Copy as Node.js Request\n\nBurp extension to copy a request as a node.js requests function\n\nAccessed via a Request -\u003e Action -\u003e Copy as Node.js Request\n\n\u003cimg src=\"https://i.imgur.com/Qlo3mto.png\"\u003e\n\n## Installation\n\nFirst save the interfaces from Burp Suite to the src/burp folder (should be .java files that begin with I...). These can be found in Burp Suite at Extender -\u003e APIs -\u003e Save Interface Files\n\nBuild the jar using `ant`, then install by navigating to Extender -\u003e Extensions -\u003e Add and select the jar\n\nPlease note the output should be saved in it's own folder, as it requires `request` to be in `node_modules`.\n \nThis can be installed with `npm i request`.\n## Sample\n\nThe output from the above screenshot would look like: \n\n```$xslt\nvar request = require('request');\n\nvar burp0_cookie = '_ga=GA1.1.915896612.1504923897; _gid=GA1.1.331984532.1509395051; _gat=1'\n\nvar burp0_bodyString = \"checked%5B%5D=1\u0026checked%5B%5D=1\u0026checked%5B%5D=1\u0026checked%5B%5D=1\u0026checked%5B%5D=1\u0026checked%5B%5D=1\"\n\nvar burp0_headers = {\n    \"Content-Length\": \"95\", \n    \"Accept\": \"*/*\", \n    \"Origin\": \"http://localhost:8070\", \n    \"X-Requested-With\": \"XMLHttpRequest\", \n    \"User-Agent\": \"Mozilla/5.0 (Macintosh; Intel Mac OS X 10_13_1) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/61.0.3163.100 Safari/537.36\", \n    \"Content-Type\": \"application/x-www-form-urlencoded; charset=UTF-8\", \n    \"DNT\": \"1\", \n    \"Referer\": \"http://localhost:8070/\", \n    \"Accept-Encoding\": \"gzip, deflate, br\", \n    \"Accept-Language\": \"en-US,en;q=0.8,it;q=0.6\", \n    \"Connection\": \"close\",\n    'Cookie':burp0_cookie\n}\n\nvar burp0_options = {\n    url: \"http://localhost:8070/RandomComic/rand\",\n    headers: burp0_headers,\n    method:\"post\",\n    body: dataString\n}\n\nfunction callback(error, response, body) {\n    if (!error \u0026\u0026 response.statusCode == 200) {\n        console.log(body);\n    }\n}\n\nrequest(options, callback)\n```\n\n### Credits\n\n[Original inspiration by PortSwigger's python requests extension](https://github.com/PortSwigger/copy-as-python-requests)","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonluca%2Fburp-copy-as-node","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fjonluca%2Fburp-copy-as-node","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fjonluca%2Fburp-copy-as-node/lists"}