A flips the script. The target machine (the victim) initiates an outgoing connection to an attacker's machine. Since most firewalls allow outgoing traffic (e.g., web browsing), this is often successful.
To protect against reverse shell attacks, follow these best practices: Reverse Shell Php
Or visit the URL in a browser.
In PHP, this typically uses functions like shell_exec , system , exec , popen , or proc_open to execute system commands. A flips the script
// Close the socket fclose($sock); ?>