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
- 参考文档references/pocket_detection.md7.6 KB
- 脚本scripts/dock.py36.5 KB
- 脚本scripts/prepare_ligands.py12.7 KB
- 脚本scripts/prepare_target.py19.6 KB
- 脚本scripts/rank.py17.3 KB
- 脚本scripts/score.py25.2 KB
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
- Send a single quote. An error, a 500, or a changed response is a signal, not a confirmation.
- Test the logic:
' OR '1'='1versus' AND '1'='2. If the responses differ predictably, the input reaches the query. - 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
demo-skill
Project-scope demo skill for tests.
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.
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.
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.
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.
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.