Skip to content

Added PHP direct shells Along with few others #195

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Open
wants to merge 2 commits into
base: main
Choose a base branch
from

Conversation

0xDTC
Copy link

@0xDTC 0xDTC commented Jul 5, 2025

Added PHP Direct System Shell Commands Collection

Added multiple PHP-based direct system shell commands using various PHP functions and shell types:

Basic System Shells:
PHP Direct System Shell (full bash reverse shell)
PHP Direct System Shell (Short) - simplified version
PHP Direct System Shell (One-Liner) - compact version using <?= syntax
Windows-Specific Shells:
PHP Direct PowerShell - using system() to spawn PowerShell reverse shell
PHP Direct CMD - using system() to spawn CMD via PowerShell
PHP Direct System Shell (netcat Windows) - using nc.exe
Unix/Linux Shells:
PHP Direct System Shell (netcat) - using traditional nc
PHP Direct System Shell (Python) - using Python socket
PHP Direct System Shell (Perl) - using Perl socket implementation
Alternative PHP Function Implementations:
PHP Direct System Shell (exec) - using exec() function
PHP Direct System Shell (passthru) - using passthru() function
PHP Direct System Shell (shell_exec) - using shell_exec() function
PHP Direct System Shell (popen) - using popen()/pclose() functions
Note: These shells rely on PHP's system execution functions being enabled and not restricted by disable_functions or safe mode. Success may vary depending on server configuration and security settings. Testing in your specific environment is recommended.

Key considerations:

Requires PHP system functions to be enabled
May be blocked by security configurations
Different methods provide fallback options
Windows vs Unix/Linux specific variations included

0xDTC added 2 commits July 5, 2025 18:49
Added PHP Direct System Shell Commands Collection

Added multiple PHP-based direct system shell commands using various PHP functions and shell types:

Basic System Shells:
PHP Direct System Shell (full bash reverse shell)
PHP Direct System Shell (Short) - simplified version
PHP Direct System Shell (One-Liner) - compact version using <?= syntax
Windows-Specific Shells:
PHP Direct PowerShell - using system() to spawn PowerShell reverse shell
PHP Direct CMD - using system() to spawn CMD via PowerShell
PHP Direct System Shell (netcat Windows) - using nc.exe
Unix/Linux Shells:
PHP Direct System Shell (netcat) - using traditional nc
PHP Direct System Shell (Python) - using Python socket
PHP Direct System Shell (Perl) - using Perl socket implementation
Alternative PHP Function Implementations:
PHP Direct System Shell (exec) - using exec() function
PHP Direct System Shell (passthru) - using passthru() function
PHP Direct System Shell (shell_exec) - using shell_exec() function
PHP Direct System Shell (popen) - using popen()/pclose() functions
Note: These shells rely on PHP's system execution functions being enabled and not restricted by disable_functions or safe mode. Success may vary depending on server configuration and security settings. Testing in your specific environment is recommended.

Key considerations:

Requires PHP system functions to be enabled
May be blocked by security configurations
Different methods provide fallback options
Windows vs Unix/Linux specific variations included
Added PHP direct shells Along with few others
@0xDTC
Copy link
Author

0xDTC commented Jul 5, 2025

Added PHP direct shells Along with few others

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant