{"id":13843146,"url":"https://github.com/f0ng/log4j2burpscanner","last_synced_at":"2025-04-04T09:09:08.605Z","repository":{"id":37420741,"uuid":"437215271","full_name":"f0ng/log4j2burpscanner","owner":"f0ng","description":"CVE-2021-44228 Log4j2 BurpSuite Scanner,Customize ceye.io api or other apis,including internal networks","archived":false,"fork":false,"pushed_at":"2023-06-13T09:17:54.000Z","size":277,"stargazers_count":822,"open_issues_count":1,"forks_count":112,"subscribers_count":11,"default_branch":"main","last_synced_at":"2025-03-28T08:07:30.596Z","etag":null,"topics":["burp-extensions","burp-plugin","log4j2","log4jshell"],"latest_commit_sha":null,"homepage":"https://f0ng.github.io/2021/12/22/log4j2burpscanner/","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/f0ng.png","metadata":{"files":{"readme":"README-zh-CN.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,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2021-12-11T07:19:11.000Z","updated_at":"2025-03-26T16:29:59.000Z","dependencies_parsed_at":"2024-11-06T10:12:38.325Z","dependency_job_id":"0a45e69b-1d40-4546-8ac9-2fbbe4b55e3c","html_url":"https://github.com/f0ng/log4j2burpscanner","commit_stats":null,"previous_names":[],"tags_count":37,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0ng%2Flog4j2burpscanner","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0ng%2Flog4j2burpscanner/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0ng%2Flog4j2burpscanner/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/f0ng%2Flog4j2burpscanner/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/f0ng","download_url":"https://codeload.github.com/f0ng/log4j2burpscanner/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":247149501,"owners_count":20891954,"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":["burp-extensions","burp-plugin","log4j2","log4jshell"],"created_at":"2024-08-04T17:01:56.166Z","updated_at":"2025-04-04T09:09:08.579Z","avatar_url":"https://github.com/f0ng.png","language":"Java","funding_links":[],"categories":["Java"],"sub_categories":[],"readme":"# 本工具仅为企业测试漏洞使用，严禁他人使用本工具攻击\n# 本工具仅为企业测试漏洞使用，严禁他人使用本工具攻击\n# 本工具仅为企业测试漏洞使用，严禁他人使用本工具攻击\n# [FAQ](https://github.com/f0ng/log4j2burpscanner/blob/main/FAQ-zh-CN.md)常见问题解答 有问题可以先到[FAQ](https://github.com/f0ng/log4j2burpscanner/blob/main/FAQ-zh-CN.md)里查找答案\n# [FAQ](https://github.com/f0ng/log4j2burpscanner/blob/main/FAQ-zh-CN.md)常见问题解答 有问题可以先到[FAQ](https://github.com/f0ng/log4j2burpscanner/blob/main/FAQ-zh-CN.md)里查找答案\n### 简体中文|[English](https://github.com/f0ng/log4j2burpscanner/blob/main/README.md)\n## how to use? download the source code and compile it\n### 默认dnslog选取 https://dns.xn--9tr.com/\n# 0.21.0 更新\n## 2022-12-9\n1. 增加参数 `prefixparam`前缀可控，可输入如`%84$`，造成一些数据库组件解析错误，从而进行log4j2的报错触发\n\u003cimg width=\"600\" alt=\"image\" src=\"https://user-images.githubusercontent.com/48286013/206602178-bb80c887-196d-4f85-a065-44fc47130e8a.png\"\u003e\n\n# 0.20.0更新\n## 2022-11-22\n\n1. 增加参数`suffixparam`，后缀可控，可输入如`${::-}/${::-}%20user`。默认值为`/%20user`，如果没有`/`，默认设置为`/%20user`\n2. dns中查询的路径为全拼，不再为首字母拼(最长的记录为63字符，感觉不大可能有路径名超过63字符的，超过63字符的取前5位)\n3. 删除`isusepointBypas`参数，更改为自定义\n\u003cimg width=\"606\" alt=\"image\" src=\"https://user-images.githubusercontent.com/48286013/203261127-a428fb5f-7fac-43f2-a8a8-c1e3fc3a1072.png\"\u003e\n\n\n\n# 0.19.0\n## 2022-05-02\n\n优化dnslog轮询查询，主动扫描、被动扫描都会进行dnslog的轮询查询\n\n\u003cimg width=\"758\" alt=\"image\" src=\"https://user-images.githubusercontent.com/48286013/166197475-ef6f7c94-955d-4299-be31-6dc7304f47a6.png\"\u003e\n\n# 0.18 更新\n## 2021-12-25\n1.Send to log4j2 Scanner使用jndi:的bypass payload进行测试，目前包含以下三种`j${::-n}di:`、 `jn${env::-}di:`、`j${sys:k5:-nD}${lower:i${web:k5:-:}}`\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/147379943-f0dc07e9-7d06-4897-9df8-d29fa4172898.png\" width=\"530\" height=\"535\" /\u003e\n\n# 0.17更新\n## 2021-12-19\n 1.增加被动扫描按钮控制`log4j2 Passive Scanner`，对单个数据包进行可控扫描，增加数据包右键按钮`Send to log4j2 Scanner`\n \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146666473-83b53bfe-7a41-4379-b22c-a1085125e2e7.png\" width=\"700\" height=\"120\" /\u003e\n \n \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146666487-5be3cfad-fd5c-42d5-ad43-f13e1c2fdac5.png\" width=\"600\" height=\"200\" /\u003e\n\n 2.更新优化payload参数，增加随机字符串，针对同一站点同一路由下进行区分；优化`%20`参数问题\n \n 3.识别`multipart/form-data`格式、`xml`格式请求包\n \n 修复了创建初始文件的参数问题\n\n# 0.16更新\n## 2021-12-15\n 1.增加UI页面，可以对一些需要测试的参数进行勾选即可进行测试\n\n \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146201676-362ea520-a77d-47ab-b3c9-3ff239d41fa7.png\" width=\"650\" height=\"350\" /\u003e\n \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146190519-cfb006a9-84aa-44c2-9c47-452d8d6798be.png\" width=\"600\" height=\"280\" /\u003e\n \n 2.自定义dnslog设置是否为ip参数(isip)，针对内网没有域名只有ip检测的情况，感谢@Chinakentgao 师傅(注：此种测试没有参数点数字标识，没有host)\n \n   如没有其他好的内网ldap工具替代，可以联动木头师傅的工具，https://github.com/KpLi0rn/Log4j2Scan 【关注主页公众号（only security），回复Log4j2Scan获取下载地址】\n\n   \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146288249-ad4e2e08-c034-455e-a436-9ed97813096e.png\" width=\"700\" height=\"400\" /\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146288272-377ce1ee-bedd-4e81-8732-5c9dbf19597f.png\" width=\"800\" height=\"200\" /\u003e\n\n\n 设置如下：\n\n   \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146288432-c14f8a7d-9ae6-4b3d-b9ea-0a50b82c94f8.png\" width=\"650\" height=\"400\" /\u003e\n   \u003cimg src=\"https://user-images.githubusercontent.com/48286013/146191640-0c9036d5-0ff9-4cef-8ba0-11c384f5f148.png\" width=\"600\" height=\"300\" /\u003e\n   \n# 0.15更新\n## 2021-12-14\n 1.增加dns、ldap、rmi可选，感谢@k-fire 、@Chinakentgao 师傅，默认为dns协议(dnsldaprmi=dns)\n \n 2.增加isContenttypeRefererOrigin参数与isAccept参数\n \n   isContenttypeRefererOrigin参数(针对Content-Type、Referer、Origin参数) 默认关闭\n   \n   isAccept参数(针对Accept-Language、Accept、Accept-Encoding参数) 默认关闭\n   \n   感谢@youyhyhyh 师傅\n   \n 3.增加`jndi:`的绕过，jndiparam参数默认为`jndi:`(jndiparam=jndi:)这里需要提一点，如果更换为其他`jndi:`的绕过形式的话，会造成有些明明能检测出来漏洞的站点无法检测，慎用！\n \n `jndi:`绕过的几种方式\n https://twitter.com/ymzkei5/status/1469765165348704256\n * jn${env::-}di:\n * jn${date:}di${date:':'}\n * j${k8s:k5:-ND}i${sd:k5:-:}\n * j${main:\\\\k5:-Nd}i${spring:k5:-:}\n * j${sys:k5:-nD}${lower:i${web:k5:-:}}\n * j${::-nD}i${::-:}\n * j${EnV:K5:-nD}i:\n * j${loWer:Nd}i${uPper::}\n\n \n 4.将默认dnslog平台添加至白名单，感谢@yumusb 师傅\n \n## 另外需要点击此按钮获取最新配置参数\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145962694-65bc6943-5b60-41b0-8edb-cde9b087c597.png\" width=\"600\" height=\"300\" /\u003e\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145962761-5c15d967-2085-48d8-ac93-b33c88d9fc3f.png\" width=\"700\" height=\"300\" /\u003e\n\n 1.add dnsorldap param  ( dns 、 ldap 、rmi) default dns\n \n 2.add isContenttypeRefererOrigin param 、isAccept param\n \n   isContenttypeRefererOrigin param(whether test Content-Type、Referer、Origin)default off\n   \n   isAccept param(whether test Accept-Language、Accept、Accept-Encoding)default off\n\n 3.add bypass `jndi:` ,but the effect is not good,use with caution\n \n 4.add `log.xn--9tr.com` to the white list\n\n# 0.14更新\n## 2021-12-13\n\n 1.绕过rc1，payload添加空格\n \n 2.对参数点进行更准确的定位，感谢@Chinakentgao 师傅提供的建议\n \n 3.增加 是否使用内网dnslog地址、内网dnslog地址、内网dnslog响应查看地址 三个参数，可以对内网log4j2漏洞点进行探测，感谢@Chinakentgao 师傅提供的建议\n \n  参数一：isprivatedns(是否使用私有dns平台)\n  \n  参数二：privatednslogurl(内网dnslog地址)\n  \n  参数三：privatednslogurl(私有dns平台的响应查看地址)\n \n 4.增加可控参数，目前增加三个参数\n \n  参数四：isuseUserAgenttokenXff(是否测试UA头、token、X-Forward-for头、X-Client-IP头)默认开启\n  \n  参数五：isuseXfflists(是否用xff列表测试，包含其他标识IP头)默认关闭\n  \n  参数六：isuseAllCookie(是否全部cookie都进行测试)默认开启\n\n# 记得点击恢复默认配置获得最新dnslog配置参数\n  \n0x01 参数点更为精确\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145826369-f5b2276f-1cb2-4ccd-ae03-353d2220cd34.png\" width=\"700\" height=\"600\" /\u003e\n\n0x02 内网dnslog、内网dnslog响应查看地址\n\n由于我没有内网的dnslog地址，这里我以ceye.io来测试了\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145832488-b1ab43d9-63db-47ae-a909-13ab18627687.png\" width=\"600\" height=\"200\" /\u003e\n\n只要确保 内网dnslog、内网dnslog响应查看地址 在内网中的网络连通性即可\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145834006-e1cb7e93-1054-427b-83e9-406ad200d81d.png\" width=\"600\" height=\"400\" /\u003e\n\n0x03 可控参数对payload位置进行自定义\n\n\u003cimg src=\"https://user-images.githubusercontent.com/48286013/145836830-06d3851c-5ce3-4dc5-9e52-b2c3715c71bb.png\" width=\"600\" height=\"450\" /\u003e\n\n修复主域名与子域名问题：\n由于子域名存在漏洞，会导致主域名也报漏洞，0.14版本修复\n\n# 0.13更新\n  1.增加请求头payload，感谢@小维师傅与@噗师傅\n\n[\"X-Forwarded-For\",\"X-Forwarded\",\"Forwarded-For\",\"Forwarded\",\"X-Requested-With\",\"X-Requested-With\", \"X-Forwarded-Host\",\"X-remote-IP\",\"X-remote-addr\",\"True-Client-IP\",\"X-Client-IP\",\"Client-IP\",\"X-Real-IP\",\"Ali-CDN-Real-IP\",\"Cdn-Src-Ip\",\"Cdn-Real-Ip\",\"CF-Connecting-IP\",\"X-Cluster-Client-IP\",\"WL-Proxy-Client-IP\", \"Proxy-Client-IP\",\"Fastly-Client-Ip\",\"True-Client-Ip\",\"X-Originating-IP\", \"X-Host\",\"X-Custom-IP-Authorization\",\"X-original-host\",\"If-Modified-Since\"]\n\n\n  1.add request headers\n  \n[\"X-Forwarded-For\",\"X-Forwarded\",\"Forwarded-For\",\"Forwarded\",\"X-Requested-With\",\"X-Requested-With\", \"X-Forwarded-Host\",\"X-remote-IP\",\"X-remote-addr\",\"True-Client-IP\",\"X-Client-IP\",\"Client-IP\",\"X-Real-IP\",\"Ali-CDN-Real-IP\",\"Cdn-Src-Ip\",\"Cdn-Real-Ip\",\"CF-Connecting-IP\",\"X-Cluster-Client-IP\",\"WL-Proxy-Client-IP\", \"Proxy-Client-IP\",\"Fastly-Client-Ip\",\"True-Client-Ip\",\"X-Originating-IP\", \"X-Host\",\"X-Custom-IP-Authorization\",\"X-original-host\",\"If-Modified-Since\"]\n \n# 0.12更新\n 1.增加body={\"a\":\"1\",\"b\":\"22222\"}格式、body={\"params\":{\"a\":\"1\",\"b\":\"22222\"}}格式识别发送payload\n \n 2.支持自定义dnslog，默认dns记录为log.xn--9tr.com，可以在配置处设置是否启用ceye、ceye token以及ceye地址。按钮在按钮界面，点击以后需要去插件加载页面查看是否保存成功，如果出现 \"Save Success!\" 则为保存成功。设置了isceye为true，则默认dnslog取消。(该更新是为了保证在log.xn--9tr.com网站挂了的情况下还可以进行漏洞探测，默认情况下还是log.xn--9tr.com网站)\n![image](https://user-images.githubusercontent.com/48286013/145709297-7788a8c0-9660-4d26-918e-4d8a32774b62.png)\n 3.payload处添加路径，更为精准定位漏洞点，如test.com/login存在漏洞，那么payload记录地址为test.com.login.dnslog\n![image](https://user-images.githubusercontent.com/48286013/145709437-58b32654-d028-4c9e-af89-920ba7e79f7b.png)\n\n修复bug\nwindows下路径问题\n\n1.add recognizable format  (body={\"a\":\"1\",\"b\":\"22222\"}、body={\"params\":{\"a\":\"1\",\"b\":\"22222\"}})\n\n2.add ceye.io api（https://ceye.io）\n\n3.more accurate（hostName + path）\n# log4j2burpscanner\nCVE-2021-44228，log4j2 burp插件 Java版本，dnslog选取了非dnslog.cn域名\n效果如下：\n\n靶场的 （靶场比较慢，但是互联网资产是没问题的，原因应该在于靶场对于其他请求头的处理不好，或者请求头过大，导致靶场反应较慢，多等等即可）\n![image](https://user-images.githubusercontent.com/48286013/145667667-c32ea0de-19c2-45b1-9617-ab743b8431f3.png)\n\n![image](https://user-images.githubusercontent.com/48286013/145667703-62ffb1ea-763a-44ae-a5e0-22a545db01b5.png)\n\n\n试了两个SRC的站点\n![image](https://user-images.githubusercontent.com/48286013/145667530-feb801ec-6e20-4020-8a11-c7e1af8673ce.png)\n\n加载后，会给出一个url，访问就可以查看dns的记录，当然，插件本身自带检查dns记录，这里只起后续方便查看的作用\n![image](https://user-images.githubusercontent.com/48286013/145698319-e93ec2c8-9789-4d10-a926-d7f3f071e5a5.png)\n\n\n# 特点如下：\n## 0x01 基于Cookie字段、XFF头字段、UA头字段发送payload\n## 0x02 基于域名的唯一性，将host带入dnslog中\n\n插件主要识别七种形式：\n\n1.get请求，a=1\u0026b=2\u0026c=3  \n\n2.post请求，a=1\u0026b=2\u0026c=3  \n\n3.post请求，{“a”:”1”,”b”:”22222”}\n\n4.post请求，a=1\u0026param={“a”:”1”,”b”:”22222”}\n\n5.post请求，{\"params\":{\"a\":\"1\",\"b\":\"22222\"}}\n\n6.post请求，body={\"a\":\"1\",\"b\":\"22222\"}\n\n7.post请求，body={\"params\":{\"a\":\"1\",\"b\":\"22222\"}}\n\n\n# 注：\n如果需要在repeater里进行测试\n\n需要打开dashbord→Live passive crawl from Proxy and Repeater→勾选repeater\n\n需要打开dashbord→Live audit from Proxy and Repeater→勾选repeater\n![image](https://user-images.githubusercontent.com/48286013/145667621-449187be-d259-4567-8c1d-1619e0009411.png)\n\n![image](https://user-images.githubusercontent.com/48286013/145667631-301fb788-30da-42b9-b038-98fa71ef835a.png)\n\n\n# 免责声明\n请勿将本项目技术或代码应用在恶意软件制作、软件著作权/知识产权盗取或不当牟利等非法用途中。实施上述行为或利用本项目对非自己著作权所有的程序进行数据嗅探将涉嫌违反《中华人民共和国刑法》第二百一十七条、第二百八十六条，《中华人民共和国网络安全法》《中华人民共和国计算机软件保护条例》等法律规定。本项目提及的技术仅可用于私人学习测试等合法场景中，任何不当利用该技术所造成的刑事、民事责任均与本项目作者无关。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0ng%2Flog4j2burpscanner","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Ff0ng%2Flog4j2burpscanner","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Ff0ng%2Flog4j2burpscanner/lists"}