Agent skill

Ctf Flag Hunting

by wgpsec in wgpsec/AboutSecurity

CTF 挑战中的 Flag 搜索策略。当通过 RCE/LFI/SQLi/webshell 等方式获得目标访问权限后、使用常规 ls/cat 命令找不到 flag 时使用。覆盖文件系统、数据库、环境变量、源码、内存等所有 flag 可能的存储位置。按成功率排序的搜索优先级——先试标准路径,再搜索全盘

No licenceAuto-check: notesSecurity

Install Ctf Flag Hunting

skills CLI
$ npx skills add wgpsec/AboutSecurity --skill ctf-flag-hunting -a claude-code

Project install by default; add -g for ~/.claude/skills/.

GitHub CLI
$ gh skill install wgpsec/AboutSecurity ctf-flag-hunting --agent claude-code

Project scope by default; add --scope user for a personal install. Needs GitHub CLI 2.90.0 or later (public preview).

Manual copy
$ git clone --depth 1 https://github.com/wgpsec/AboutSecurity.git skills-src && mkdir -p .claude/skills && cp -r skills-src/skills/ctf/ctf-flag-hunting .claude/skills/ctf-flag-hunting && rm -rf skills-src

Use ~/.claude/skills/ instead of .claude/skills for a personal install. The folder must contain SKILL.md.

Claude Code skills documentation · loads skills from .claude/skills/

Facts

Skill name
ctf-flag-hunting
GitHub stars
1.8k
Token cost
~1k tokens
SKILL.md length
186 words
Files
4 (incl. references)
Skills in repo
64
Repo updated
First seen
Licence
None found

At a glance

CTF 挑战中的 Flag 搜索策略。当通过 RCE/LFI/SQLi/webshell 等方式获得目标访问权限后、使用常规 ls/cat 命令找不到 flag 时使用。覆盖文件系统、数据库、环境变量、源码、内存等所有 flag 可能的存储位置。按成功率排序的搜索优先级——先试标准路径,再搜索全盘

  • Works in 6 steps: 按权限类型选择搜索策略 → RCE — 文件系统搜索 → LFI — 文件读取搜索 → …
  • Tasks that involve Capture the flag
  • SKILL.md covers ⛔ 深入参考(补充读物), Phase 1: 按权限类型选择搜索策略, Phase 2: RCE — 文件系统搜索 and Phase 3: LFI — 文件读取搜索, plus 5 more sections
  • Calls mysql

What it does

Ctf Flag Hunting is an agent skill from wgpsec/AboutSecurity. CTF 挑战中的 Flag 搜索策略。当通过 RCE/LFI/SQLi/webshell 等方式获得目标访问权限后、使用常规 ls/cat 命令找不到 flag 时使用。覆盖文件系统、数据库、环境变量、源码、内存等所有 flag 可能的存储位置。按成功率排序的搜索优先级——先试标准路径,再搜索全盘

Its SKILL.md is about 1k tokens, which your agent loads only when the skill is triggered. The skill folder holds 5 other files, including reference files (for example `evals/evals.json`, `evals/recall.json` and `references/flag-search-paths.md`).

It sits in Security, covering Capture the flag. The repository describes itself as: Everything for pentest. | 渗透测试知识库,以 AI Agent 可执行的格式沉淀安全方法论。

When your agent uses it

  • Tasks that involve Capture the flag

Example prompts

  • “/ctf-flag-hunting”

Workflow steps

6 steps, taken from the step headings in SKILL.md.

  1. 按权限类型选择搜索策略
  2. RCE — 文件系统搜索
  3. LFI — 文件读取搜索
  4. SQLi — 数据库搜索
  5. Web 管理后台搜索
  6. 搜不到 flag 时

What it can do on your machine

Read from SKILL.md and the folder at commit 914ffb5. It shows what the files ask for, not the result of running them.

  • Tool permissions

    Pre-approves nothing: there is no allowed-tools line, so your agent's usual permission prompts apply.

    From allowed-tools in the SKILL.md frontmatter.

  • Runs code

    Shell commands in SKILL.md call:

    • mysql

    From the folder's file list and the shell code blocks in SKILL.md.

  • Network

    No URLs in SKILL.md.

    From URLs in SKILL.md, links to its own repository left out.

  • Credentials

    Names no API keys, tokens, secrets or passwords.

    From names ending in _API_KEY, _TOKEN, _SECRET, _KEY or _PASSWORD in SKILL.md.

Context cost

Ctf Flag Hunting loads about 1k tokens when it runs, and up to ~1.5k if it reads all its reference files. Until then it costs about 42 tokens; SKILL.md has 186 words of instructions outside code blocks.

Always · name and description, kept in context so the agent knows when to use it
~42
When it runs · the whole SKILL.md, loaded when a task matches
~1k
With references · SKILL.md plus every file in references/, read only if the agent opens them
~1.5k

Estimates: characters ÷ 4, the usual rule of thumb; real counts depend on the model's tokenizer. Scripts and assets cost tokens only if the agent reads them.

Safety

Auto-check: notes

The automated check noted patterns worth knowing about, such as sudo or a known installer.

  • NoteMentions a .env fileSKILL.md:77
    cat /var/www/html/.env          # 环境变量泄露
  • NoteMentions a .env fileSKILL.md:120
    /var/www/html/.env

Automated static check — not a guarantee. Review scripts before installing. It scans the text of SKILL.md for risky patterns (piping downloads into a shell, reading credential files, hidden Unicode, destructive commands); files beside SKILL.md are not scanned.

SKILL.md

Without a licence we can't republish the file, so here is its outline and opening line. It has 186 words (~1,007 tokens).

name
ctf-flag-hunting
metadata.tags
ctf,flag,搜索,hunting,文件系统,数据库,环境变量,rce,getflag
metadata.category
ctf

Read the full SKILL.md on GitHub

Files

SKILL.md and 3 other files (references) in skills/ctf/ctf-flag-hunting of wgpsec/AboutSecurity.

  • SKILL.md
  • evals/evals.json
  • evals/recall.json
  • references/flag-search-paths.md

Open the folder on GitHubat commit 914ffb5

Compare with similar skills

Ctf Flag Hunting next to the 5 skills that share the most tags, products or categories with it. Stars are the repository's; “used in” counts other GitHub owners with a copy.

Ctf Flag Hunting compared with similar skills
SkillStarsUsed inTokensAuto-checkLicenceRepo updated
Ctf Flag Hunting this skillwgpsec/AboutSecurity1.8k—~1kAutomated safety check: NotesNone
Ctf Osintljagiello/ctf-skills3.4k1 repos~2.3kAutomated safety check: NotesMIT
Helloctf SkillProbiusOfficial/Hello-CTF4.2k—~387Automated safety check: PassGPL-3.0
Secknowledge SkillPa55w0rd/secknowledge-skill425—~2.7kAutomated safety check: PassNone
Vuln Researchtanweai/xianzhi-research185—~847Automated safety check: PassNone
Alibabacloud Ecs Sec Kernelaliyun/alibabacloud-ecs-troubleshoot-skills148—~2.4kAutomated safety check: NotesApache-2.0

Similar skills

  • Ctf Osint

    ljagiello/ctf-skills

    Provides open source intelligence techniques for CTF challenges.

    3.4k GitHub starsUsed in 1 repo~2.3k tokens
    SecurityAuto-check: notes
  • Helloctf Skill

    ProbiusOfficial/Hello-CTF

    Hello CTF 技能树 —— 基于国内 CTF 竞赛体系整理的全方向攻防知识库。当用户在学习 CTF、备战比赛、解赛题(Web / Crypto / Misc / Pwn / Reverse / AI / 云安全 / 数据安全 / 区块链 / 工控 / 物联网 / 应急响应 / 渗透测试)需要定位知识点、查询利用手法或规划学习路线时使用。也适用于按知识域出题、查漏补缺。

    4.2k GitHub stars~387 tokensUpdated today
    SecurityAuto-check passed
  • Secknowledge Skill

    Pa55w0rd/secknowledge-skill

    Web+AI 安全测试知识库。融合 WooYun 88,636 案例 + 先知 L1-L4 方法论 + GAARM 173 风险 + OWASP Top 10 (LLM/ASI/WSTG)。

    425 GitHub stars~2.7k tokensUpdated 3 mo ago
    SecurityAuto-check passed
  • Vuln Research

    tanweai/xianzhi-research

    安全研究元思考方法论 - 从先知社区5600+篇安全文档中提炼的漏洞挖掘方法论框架. An agent skill from tanweai/xianzhi-research.

    185 GitHub stars~847 tokensUpdated 8 mo ago
    SecurityAuto-check passed
  • Alibabacloud Ecs Sec Kernel

    aliyun/alibabacloud-ecs-troubleshoot-skills

    Linux 内核态 CVE 漏洞检测与 PoC 验证工具,专为 AI Agent 设计. An agent skill from aliyun/alibabacloud-ecs-troubleshoot-skills.

    148 GitHub stars~2.4k tokensUpdated 1 mo ago
    SecurityAuto-check: notes
  • Ctf Malware

    ljagiello/ctf-skills

    Provides malware analysis and network traffic techniques for CTF challenges.

    3.4k GitHub stars~2.1k tokensUpdated 27 days ago
    SecurityAuto-check: notes

More from wgpsec/AboutSecurity

All 64 skills in this repo
  • A skill your agent uses whenever the user asks to add, absorb, migrate, port, update, merge, compare, or extract security knowledge into the AboutSecurity repository from any external resource such…

    1.8k GitHub stars~1.4k tokensUpdated yesterday
    Auto-check passed
  • Ad Persistence

    wgpsec/AboutSecurity

    AD 域环境持久化技术。当已获取域管/本地管理员权限、需要建立持久访问以确保重启或密码更改后仍能回到目标环境时使用。覆盖主机级持久化(计划任务/注册表Run/COM劫持/WMI事件订阅/Windows服务/启动文件夹)、域级持久化(Golden Ticket/Silver Ticket/Skeleton…

    1.8k GitHub stars~2.3k tokensUpdated yesterday
    Auto-check passed
  • Apt Emulation

    wgpsec/AboutSecurity

    APT 模拟与情报驱动红队方法论。基于已知 APT 组织的 TTP(MITRE ATT&CK)设计红队行动计划。当需要模拟特定威胁组织、设计高仿真攻击演练、或根据威胁情报制定攻击策略时使用

    1.8k GitHub stars~922 tokensUpdated yesterday
    Auto-check passed
  • Argocd Tactics

    wgpsec/AboutSecurity

    ArgoCD 后渗透方法论:Redis缓存投毒集群接管、SSO认证绕过、未授权API枚举、恶意Application部署、Webhook SSRF、默认凭据利用。

    1.8k GitHub stars~510 tokensUpdated yesterday
    Auto-check passed
  • C2 Beacon Analysis

    wgpsec/AboutSecurity

    C2 Beacon 配置提取与分析。当捕获到 Cobalt Strike/Sliver/Havoc 等 C2 框架的 Beacon 样本、内存 dump、或网络流量时使用。提取 C2 地址、通信协议、Malleable Profile、Watermark 等关键情报。红队视角:了解蓝队如何从 Beacon 提取 IOC 以改进 C2 OPSEC

    1.8k GitHub stars~1.2k tokensUpdated yesterday
    Auto-check passed
  • C2 Evasion Methodology

    wgpsec/AboutSecurity

    C2框架免杀方法论:分析 C2 源码、搜索检测规则(YARA/Sigma/Snort)、逐规则分析、修改源码绕过检测。当遇到 YARA/Sigma/Snort 规则触发告警、beacon/implant 被杀软检测到时使用。第一步:确认 implant/beacon 语言和架构;第二步:搜索对应检测规则并逐规则分析修改

    1.8k GitHub stars~557 tokensUpdated yesterday
    Auto-check passed

Categories

Questions about Ctf Flag Hunting

What does Ctf Flag Hunting do?

CTF 挑战中的 Flag 搜索策略。当通过 RCE/LFI/SQLi/webshell 等方式获得目标访问权限后、使用常规 ls/cat 命令找不到 flag 时使用。覆盖文件系统、数据库、环境变量、源码、内存等所有 flag 可能的存储位置。按成功率排序的搜索优先级——先试标准路径,再搜索全盘. Ctf Flag Hunting is an agent skill from wgpsec/AboutSecurity.

When should I use Ctf Flag Hunting?

Ctf Flag Hunting fits situations like: tasks that involve Capture the flag.

How do I install Ctf Flag Hunting in Claude Code?

Run `npx skills add wgpsec/AboutSecurity --skill ctf-flag-hunting -a claude-code`. Or copy the skill folder (skills/ctf/ctf-flag-hunting in wgpsec/AboutSecurity) into .claude/skills/ctf-flag-hunting in your project. Claude Code loads it when a task matches its description.

How do I install Ctf Flag Hunting in Codex?

Run `npx skills add wgpsec/AboutSecurity --skill ctf-flag-hunting -a codex`. Or copy the skill folder (skills/ctf/ctf-flag-hunting in wgpsec/AboutSecurity) into .agents/skills/ctf-flag-hunting in your project. Codex loads it when a task matches its description.

Can I use Ctf Flag Hunting in Cursor, Gemini CLI or GitHub Copilot?

Cursor, Gemini CLI, GitHub Copilot and OpenCode also load SKILL.md folders. With the skills CLI, run `npx skills add wgpsec/AboutSecurity --skill ctf-flag-hunting -a cursor` (or -a gemini-cli, github-copilot or opencode for the others). To copy it by hand, put the folder in .cursor/skills/ctf-flag-hunting, .gemini/skills/ctf-flag-hunting, .github/skills/ctf-flag-hunting and .opencode/skills/ctf-flag-hunting in your project.

What does Ctf Flag Hunting need to run?

Going by SKILL.md and its folder, Ctf Flag Hunting needs the command-line tools its instructions call (mysql).

Does Ctf Flag Hunting access the network?

SKILL.md contains no URLs. Any network use would come from the scripts or tools the agent runs. This is read from the text; nothing was executed.

Is Ctf Flag Hunting safe to install?

Our automated static check of SKILL.md found notes only (mentions a .env file), nothing it rates as a warning. It is not a guarantee. Review the folder before installing.

What licence does Ctf Flag Hunting use?

No licence was found for Ctf Flag Hunting or its repository. Without one, default copyright applies: ask the author before reusing or redistributing it.

How many tokens does Ctf Flag Hunting use?

About 1k tokens (SKILL.md is roughly 4k characters). Agents keep only the skill's name and description in context until a task matches; then they load SKILL.md in full. Its references folder adds about 489 tokens, read only when the agent opens those files.

What are the alternatives to Ctf Flag Hunting?

Skills that share tags, products or a category with Ctf Flag Hunting: Ctf Osint (ljagiello/ctf-skills, 3.4k stars), Helloctf Skill (ProbiusOfficial/Hello-CTF, 4.2k stars), Secknowledge Skill (Pa55w0rd/secknowledge-skill, 425 stars) and Vuln Research (tanweai/xianzhi-research, 185 stars). The comparison table on this page puts their stars, adoption, token cost, safety result and licence side by side.

Who maintains Ctf Flag Hunting?

wgpsec (a GitHub organization) maintains it in wgpsec/AboutSecurity, which has 1,778 GitHub stars. The repository holds 64 skills in this directory. The repository was last updated on October 10, 2026.

Source: wgpsec/AboutSecurity on GitHub. Facts on this page come from the repository at the commit we read; the author's words are quoted as theirs.