Strix 路径穿越与文件包含测试手册,覆盖本地/远程文件访问与代码执行链;触发名:strix-path-traversal-lfi-rfi
npx skills add https://github.com/asdfgh1445/ctf-super-hub --skill Strix•路径穿越与文件包含
Improper file path handling and dynamic inclusion enable sensitive file disclosure, config/source leakage, SSRF pivots, and code execution. Treat all user-influenced paths, names, and schemes as untrusted; normalize and bind them to an allowlist or eliminate user control entirely.
Path Traversal
../, encoding, normalization gapsLocal File Inclusion (LFI)
Remote File Inclusion (RFI)
Archive Extraction
Normalization Mismatches
Unix
/etc/passwd, /etc/hosts, application .env/config.yamlWindows
C:\Windows\win.ini, IIS/web.config, programdata configs, application logsApplication
file, path, template, include, page, view, download, export, report, log, dir, theme, lang../../etc/hosts and C:\Windows\win.ini%2e%2e%2f, %252e%252e%252f, ..%2f, ..%5c, mixed UTF-8 (%c0%2e), Unicode dots and slashes..../, ..\\, ././, trailing dot/double dot segments; repeated decoding/etc/passwd, C:\Windows\System32\drivers\etc\hosts/static/..;/../etc/passwd ("..;"), encoded slashes (%2F), double-decoding via upstreaminclude() warnings with real filesystem locationsEncodings
Mixed Separators
/ and \\ on Windows; // and \\\\ collapse differences across frameworksDot Tricks
....// (double dot folding), trailing dots (Windows), trailing slashes, appended valid extensionAbsolute Path Injection
Alias/Root Mismatch
../ to escape/static/../etc/passwd and ";" variants (..;)Upstream vs Backend Decoding
%2f differently; test double-decoding and encoded dotsPHP Wrappers
php://filter/convert.base64-encode/resource=index.php (read source)zip://archive.zip#file.txtdata://text/plain;base64expect:// (if enabled)Log/Session Poisoning
Upload Temp Names
Proc and Caches
/proc/self/environ and framework-specific caches for readable secretsLegacy Tricks
%00) truncation in older stacks; path length truncationRequirements
allow_url_include/allow_url_fopen in PHP)Protocol Handlers
Exploitation
../ or absolute paths escape target extract directory/etc/hosts) with a same-endpoint in-root controlphp://filter base64 of index.php)../ entries and show write outside target (e.g., marker file read back)%2f and %2e encodingsphp://filter base64 probes over destructive payloads; enumerate readable logs and sessions../ chainsEliminate user-controlled paths where possible. Otherwise, resolve to canonical paths and enforce allowlists, forbid remote schemes, and lock down interpreters and extractors. Normalize consistently at the boundary closest to IO.
Toolkit for interacting with and testing local web applications using Playwright. Supports verifying frontend functionality, debugging UI behavior, capturing browser screenshots, and viewing browser logs.
Use when implementation is complete, all tests pass, and you need to decide how to integrate the work - guides completion of development work by presenting structured options for merge, PR, or cleanup
Use when implementing any feature or bugfix, before writing implementation code
Use when encountering any bug, test failure, or unexpected behavior, before proposing fixes
Use when about to claim work is complete, fixed, or passing, before committing or creating PRs - requires running verification commands and confirming output before making any success claims; evidence before assertions always
Expert guidance for systematic backtesting of trading strategies. Use when developing, testing, stress-testing, or validating quantitative trading strategies. Covers "beating ideas to death" methodology, parameter robustness testing, slippage modeling, bias prevention, and interpreting backtest results. Applicable when user asks about backtesting, strategy validation, robustness testing, avoiding overfitting, or systematic trading development.
Cloud laboratory platform for automated protein testing and validation. Use when designing proteins and needing experimental validation including binding assays, expression testing, thermostability measurements, enzyme activity assays, or protein sequence optimization. Also use for submitting experiments via API, tracking experiment status, downloading results, optimizing protein sequences for better expression using computational tools (NetSolP, SoluProt, SolubleMPNN, ESM), or managing protein design workflows with wet-lab validation.
This skill should be used for time series machine learning tasks including classification, regression, clustering, forecasting, anomaly detection, segmentation, and similarity search. Use when working with temporal data, sequential patterns, or time-indexed observations requiring specialized algorithms beyond standard ML approaches. Particularly suited for univariate and multivariate time series analysis with scikit-learn compatible APIs.
Take asdfgh1445/strix•路径穿越与文件包含 from the repository into ~/.claude/skills for personal
use, or into .claude/skills inside a project.
The agent identifies a skill by the name field in its header. Two skills with the
same name cannot sit side by side — one of them will be ignored.