Skip to content

Added PHP direct shells Along with few others #189

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 1 commit into
base: main
Choose a base branch
from

Conversation

0xDTC
Copy link

@0xDTC 0xDTC commented Apr 18, 2025

Added PHP Direct System Shell Commands Collection

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

  1. 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
  1. 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
  1. 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
  1. 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 System Shell Commands Collection

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

1. 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

2. 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

3. 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

4. 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
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