: The PHP script captures the submitted data and either saves it to a local text file on the server or emails it directly to the attacker. To avoid suspicion, the script often immediately redirects the user back to the official Facebook homepage. Technical Breakdown: The PHP Backend

header("Location: https://www.facebook.com/login.php");

// AFTER capturing credentials, simulate login to Facebook via cURL // (This is complex due to CSRF tokens, but possible with headless browsers)