Call Sahil Baghla for Seminar, Workshop & Guest Lecture



Subscribe & Don't Miss A Free Ethical Hacking Course

Enter your email address:



Click Here for Company Website of EH1-Infotech Knowledge Solutions

IP Address Grabbing using PHP script

find-someone-IP-Address

Ethical Hacking Tricks Level A ( For those who already knows little hacking and demanded real hacks trick)

This is an easy method to grab someones IP address using php scripts . What u all need to do is just copy the code below and paste it in notepad and save it as ip.php or anything.

Upload it on any free hosting websites (which support php) like www.ripway.com

Give the link to victim, as soon as the victim clicks on the link IP will be grabbed into a text file in the free hosting site.

Script to be used is :

<?php
$hostname = gethostbyaddr($_SERVER['REMOTE_ADDR']);
$img_number = imagecreate(400,95);
$backcolor = imagecolorallocate($img_number,10,102,153);
$textcolor = imagecolorallocate($img_number,255,255,255);

imagefill($img_number,0,0,$backcolor);
$number0 = ” This is Your IP/Proxy”;
$number1 = ” IP: $_SERVER[HTTP_X_FORWARDED_FOR]“;
$number2 = ” Host/Proxy: $hostname”;
$number4 = ” _________________________________”;

Imagestring($img_number,10,5,5,$number0,$textcolor);
Imagestring($img_number,10,5,25,$number1,$textcolor);
Imagestring($img_number,10,5,45,$number2,$textcolor);
Imagestring($img_number,10,5,50,$number4,$textcolor);
Imagestring($img_number,10,8,50,$number4,$textcolor);
Imagestring($img_number,10,5,10,$number4,$textcolor);
Imagestring($img_number,10,8,10,$number4,$textcolor);

header(“Content-type: image/png”);
imagepng($img_number);
$file=fopen(“Name-here-to-protect-the-File.txt”,”a”);
$file2 = “- IP joined – IP/Proxy: $_SERVER[HTTP_X_FORWARDED_FOR] – Host: $hostname – ‘\n’ “;
fwrite($file, $file2);
fclose($file);
?>

Download IP Address Grabbing Script
Happy Ethical Hacking

What do you think of this post?
Awesome (35) Interesting (18) Useful (23) Good (12)

Did you enjoy this post? Why not leave a comment below and continue the conversation, or subscribe to my Email and get articles like this delivered automatically to your Email.

Comments

Salutations to all! Great site and content, even though definitely not all of it is functioning perfectly! However that is up to the actual website owner to deal with …

Nice site ….)

Very nice post, good luck! ;-)

Thats ok…… nice But what if the Victim has Dynamic ip and it keeps on changing. Can we still hack.

No we can’t hack then.

nice one sahil…i want to learn more about Ehacking i am always amazed by poeple like you who knows how to hack…keep it up

very nice post.. thanks alot…

Guys why do you need scripts if you have free iplogger.org?

Leave a comment

(required)

(required)




EHacking
Website Hacking
Windows
Security
Facebook Hacking
Wifi- Hacking
Mobile Hacking
Reverse Engineering
Interesting Tricks
Linux
Programming
Hacking News