A reverse shell is a type of shell that allows an attacker to access a victim's machine from a remote location. In the context of PHP, a reverse shell can be used to execute system commands on a server, potentially leading to unauthorized access and malicious activities.

Find file upload vulnerability, LFI to RCE, or SQLi writing to disk. Save the PHP script as rev.php and upload to a web‑accessible location.

rlwrap nc -lvnp 4444