Hi guys, so recently a guy has been attempting to scam me out of a few thousand dollars. Before I report the guy to the district attorney I was hoping you guys could help me get his ip address through a little social engineering. My idea is to setup a webserver which I can hopefully use to capture his real ip address since gmail addresses do not show sender ip addresses. I've got a linux server setup with a lampp installation setup and was hoping somebody with web experience could help me out. I have never used lampp (xampp) before and was hoping somebody could help me setup a simple image that captures his ip upon loading. Here is the code I was hoping to use I just need some help setting it up on the server side and implementation.
It would be GREATLY appreciated if someone could help me get this scumbag.
Code:
<?php
header('Content-type: image/jpeg');
readfile('image.jpg');
$filename = "logged.txt";
$somecontent = "Connection from:".$_SERVER['REMOTE_ADDR']." at ".date("r",time())."\n";
if ($handle = fopen($filename, 'a')) {
fwrite($handle, $somecontent)
fclose($handle);
}
?>
It would be GREATLY appreciated if someone could help me get this scumbag.







