AGENT SKILL

pentest-injection

Testing an authorized application for injection: SQL, command and template, finding the surface then confirming with a benign, provable payload and never a destructive one. Read when testing for injection flaws.

License 许可
Apache-2.0
所属仓库
enowdev/enowxcli
最近更新
2026-10-06
Stars
★ 67
Forks
21

01 前言 Front Matter

name
pentest-injection
description
Testing an authorized application for injection: SQL, command and template, finding the surface then confirming with a benign, provable payload and never a destructive one. Read when testing for injection flaws.

02 资源文件 6

03 SKILL.md 正文

Injection

Injection happens when input crosses from data into code, a query, a command, a template, because it was concatenated rather than parameterised. Test only targets in your authorized scope, and never run destructive payloads.

Finding the surface

Every input is a candidate: query parameters, form fields, headers, cookies, JSON bodies, file names. Map them first.

SQL injection

  1. Send a single quote. An error, a 500, or a changed response is a signal, not a confirmation.
  2. Test the logic: ' OR '1'='1 versus ' AND '1'='2. If the responses differ predictably, the input reaches the query.
  3. Confirm with a benign, provable payload, a boolean or time-based test that demonstrates control without touching data. ' AND SLEEP(3)-- that delays the response by three seconds proves it.

Never run DROP, DELETE, INTO OUTFILE, xp_cmdshell, or an automated tool's --os-shell. You are proving a flaw, not exploiting production.

Command injection

Where input reaches a shell: try a separator with a harmless command (; id, | whoami, backticks). A time delay (; sleep 3) proves it without output.

Template injection

Where input is rendered by a template engine: {{7*7}}, ${7*7}, #{7*7}. A response containing 49 means the input is evaluated.

Recording

The exact input, where it goes, the proof (the differing responses or the delay), the impact, and the fix: parameterised queries, safe APIs, never string concatenation into an interpreter.

04 同仓库更多 Skills

enowdev
enowdev/enowxcli

demo-skill

Project-scope demo skill for tests.

Skill与智能体开发
★ 67
enowdev
enowdev/enowxcli

writing

Writing words people read: the specific thing instead of claims, words to drop, sentences, interface copy (buttons, labels, errors, empty states, confirmations), page copy, notifications and emails, alt text and link text, numbers and dates, words that translate well, documentation and voice. Read before writing a page's copy, an interface's text or a document.

内容创作者写作与文案
★ 67
enowdev
enowdev/enowxcli

ui

Designing or restyling an interface: direction, layout, type, colour, icons, components, states, responsive behaviour. Read before building a page, a screen or a set of components.

设计师
★ 67
enowdev
enowdev/enowxcli

ui-themes

Light and dark themes, and colour that holds in both: tokens with a value per theme, and what each kind of content needs to stay visible (icons, SVG drawings and line art, logos, photos, screenshots, charts, code, maps, borders, shadows, focus, form controls), switching without a flash, and checking both. Read before building a second theme or a theme toggle, and before any drawing, logo or chart on a page that has two themes.

开发工程师视觉设计
★ 67
enowdev
enowdev/enowxcli

ui-structure

Structure before styling: the blueprint written before any interface code (the screen's job, the regions its kind of page needs, their order and why, the layout skeleton in numbers, the components and their states), the anatomy and order of a homepage, a dashboard, a list, a detail page, settings, a form, sign-in, pricing, docs, an article and a checkout, and how to turn the blueprint into code (tokens, layout primitives, components, sections, page). Read first, before building or rebuilding any page or screen.

开发工程师内容创作者写作与文案
★ 67
enowdev
enowdev/enowxcli

ui-stack-vue

Building interfaces in Vue 3 and Nuxt: project layout, script setup with typed defineProps, defineEmits and defineModel, attribute fallthrough, slots and scoped slots, template refs, ref, reactive and computed, watch versus watchEffect, composables and VueUse, provide and inject, Pinia, keyed v-for, transitions, Nuxt 4 (app directory, pages, layouts, useFetch and useAsyncData keys, $fetch in handlers, server routes, runtime config, useSeoMeta, NuxtImg, middleware), VeeValidate forms, Reka UI and Nuxt UI, testing, vue-tsc, and the traps. Read when the project uses Vue or Nuxt.

设计师测试与质量前端开发
★ 67