{"id":13843231,"url":"https://github.com/p1g3/Fastjson-Scanner","last_synced_at":"2025-07-11T18:30:59.578Z","repository":{"id":199419158,"uuid":"250925126","full_name":"p1g3/Fastjson-Scanner","owner":"p1g3","description":"a burp extension to find where use fastjson","archived":false,"fork":false,"pushed_at":"2020-03-29T00:57:59.000Z","size":5,"stargazers_count":164,"open_issues_count":0,"forks_count":21,"subscribers_count":4,"default_branch":"master","last_synced_at":"2024-11-21T14:38:47.423Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":"Python","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/p1g3.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,"governance":null}},"created_at":"2020-03-29T00:51:06.000Z","updated_at":"2024-11-20T05:55:06.000Z","dependencies_parsed_at":null,"dependency_job_id":"1436bcdf-1aed-4d35-837c-22ebd89b65f3","html_url":"https://github.com/p1g3/Fastjson-Scanner","commit_stats":null,"previous_names":["p1g3/fastjson-scanner"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/p1g3/Fastjson-Scanner","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1g3%2FFastjson-Scanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1g3%2FFastjson-Scanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1g3%2FFastjson-Scanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1g3%2FFastjson-Scanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/p1g3","download_url":"https://codeload.github.com/p1g3/Fastjson-Scanner/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/p1g3%2FFastjson-Scanner/sbom","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":264870085,"owners_count":23676159,"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:01:57.802Z","updated_at":"2025-07-11T18:30:59.331Z","avatar_url":"https://github.com/p1g3.png","language":"Python","funding_links":[],"categories":["Python","Python (1887)"],"sub_categories":[],"readme":"# Fastjson-Scanner\r\n\r\n闲来无事，在家写了个fastjson后端组件探测，用于探测后端是否使用fastjson。\r\n\r\n使用的poc如下：\r\n\r\n```\r\nfastjson_poc = '{{\"@type\":\"java.net.URL\",\"val\":\"http://%s\"}:\"x\"}' % val\r\n```\r\n\r\n### 优点\r\n\r\n不仅能够探测POST中的json数据，还能够判断GET中的json数据，支持urlencode、urldecode等。\r\n\r\n两种数据对应格式如下：\r\n\r\nGET：\r\n\r\n```\r\nGET /?json={\"fastjson\":\"example\"}\r\n```\r\n\r\nPOST：\r\n\r\n```\r\nPOST /\r\n\r\n...\r\n\r\n\r\n{\"fastjson\":\"example\"}\r\n```\r\n\r\n### 使用方法\r\n\r\n导入插件即可默认开始使用，对数据包进行被动扫描，由于使用的是burp自带的dnslog，所以稍微会有电脑延时，代码里写了sleep 10来获取result。\r\n\r\n\r\n![first](https://s1.ax1x.com/2020/03/29/GEalbF.png)\r\n\r\n当导入数据包后，在burp内可以看到FastjsonScanner这个窗口，代表导入成功，当探测成功后，会在其中显示对应的数据包以及参数：\r\n\r\n![second](https://s1.ax1x.com/2020/03/29/GEawDO.png)\r\n\r\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1g3%2FFastjson-Scanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fp1g3%2FFastjson-Scanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fp1g3%2FFastjson-Scanner/lists"}