{"id":26282040,"url":"https://github.com/chainreactors/templates","last_synced_at":"2026-01-12T07:49:49.773Z","repository":{"id":65670620,"uuid":"504051202","full_name":"chainreactors/templates","owner":"chainreactors","description":"gogo-templates","archived":false,"fork":false,"pushed_at":"2025-04-18T12:04:00.000Z","size":981,"stargazers_count":110,"open_issues_count":2,"forks_count":22,"subscribers_count":2,"default_branch":"master","last_synced_at":"2025-04-19T01:27:08.708Z","etag":null,"topics":["security-tools"],"latest_commit_sha":null,"homepage":"","language":"Go","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/chainreactors.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,"roadmap":null,"authors":null,"dei":null}},"created_at":"2022-06-16T07:14:05.000Z","updated_at":"2025-04-18T18:03:00.000Z","dependencies_parsed_at":"2023-02-18T06:31:59.053Z","dependency_job_id":"aa46ba8b-d2d8-4be5-8011-7df0306101b3","html_url":"https://github.com/chainreactors/templates","commit_stats":null,"previous_names":["chainreactors/templates","chainreactors/getitle-templates","chainreactors/gogo-templates"],"tags_count":4,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainreactors%2Ftemplates","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainreactors%2Ftemplates/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainreactors%2Ftemplates/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/chainreactors%2Ftemplates/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/chainreactors","download_url":"https://codeload.github.com/chainreactors/templates/tar.gz/refs/heads/master","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":252834017,"owners_count":21811295,"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":["security-tools"],"created_at":"2025-03-14T16:19:31.751Z","updated_at":"2025-12-15T04:34:28.958Z","avatar_url":"https://github.com/chainreactors.png","language":"Go","readme":"\ngogo的通用配置, 包括端口, 指纹, poc, workflow\n\n## 目录结构\n\n```\n│  templates_gen.go         # template生成器\n│  port.yaml                # 端口配置文件\n│  workflows.yaml           # workflow配置文件\n├─fingers                   # 指纹目录\n│  │  tcpfingers.yaml       # tcp指纹\n│  │\n│  └─http                   # http指纹 因为http指纹较多, 将其分成多个子文件方便管理\n│          cloud.yaml       # 云相关的框架\n│          cms.yaml         # 各类cms\n│          component.yaml   # 内嵌的各种组件\n│          device.yaml      # 设备相关\n│          mail.yaml        # 邮件相关\n│          oa.yaml          # 办公相关\n│          other.yaml       # 暂未分类\n│          waf.yaml         # waf相关\n│\n└─nuclei                    # nuclei的poc\n    ├─bigip                 # 按框架名分类, 方便管理\n    ├─cloud\n    ├─component\n    ├─device\n    ......\n\n```\n\n## 使用\n\n为了方便打包, 大部分情况下, 会将这些配置文件转为json后压缩, 生成为templates.go文件, 进行加载.\n\n因此提供了, `templates_gen.go`\n\n仅有两个参数. `-o` 指定输出的文件名, `-t` templates所在的目录, 默认\".\"\n\n例如在gogo中, 就在入口文件添加go generate在编译时将templates打包到二进制文件中.\n\n```go\n//go:generate go run templates/templates_gen.go -t templates -o pkg/templates.go -need gogo\npackage main\n\nimport \"github.com/chainreactors/gogo/v2/cmd\"\n\nfunc main() {\n\tcmd.Gogo()\n}\n\n```\n\n","funding_links":[],"categories":[],"sub_categories":[],"project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainreactors%2Ftemplates","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fchainreactors%2Ftemplates","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fchainreactors%2Ftemplates/lists"}