Follow us on Twitter!
I'd prefer to die standing, than to live on my knees - Che Guevara
Wednesday, April 23, 2014
Navigation
Home
HellBoundHackers Main:
HellBoundHackers Find:
HellBoundHackers Information:
Learn
Communicate
Submit
Shop
Challenges
HellBoundHackers Exploit:
HellBoundHackers Programming:
HellBoundHackers Think:
HellBoundHackers Track:
HellBoundHackers Patch:
HellBoundHackers Other:
HellBoundHackers Need Help?
Other
Members Online
Total Online: 19
Guests Online: 18
Members Online: 1

Registered Members: 82885
Newest Member: ConiBE
Latest Articles

Getting Someones IP Address

Arrow Image Getting someone's IP Address is a very common thing. But do you know how to do it? - for the noobs (because we all need to learn sometime)



Getting The IP Address
By archangel_darkangel

Many times I still get asked how one could get another persons ip address remotely, there are many different methods of doing so in which I will explain here, but this is a VERY brief article on ways you could do this, there are many more ways of doing this that are not discussed in this article, this article is mostly meant for those new to hacking and want a good place to start. Also, you may see some errors, I wrote this quickly.

One of the easiest ways of doing this is through Aol Instant Messenger or MSN where you use the Netstat command in command prompt. To get the IP Address in this method simply connect to the target, In AIM, just direct connect to the person, and in MSN Messenger, just send or receive a large file to the person. to do this you may need to use some social engineering techniques. Once you have connected to the user or are sending the file open command prompt and type in:
netstat -n
so that it looks like this:
C:docu<i></i>ments and settingsuser_name>netstat -n
once you enter in that command you should get a table that has these things:
Proto, Local Address, Foreign Address, and State. you will need to look for the ip in the foreign address collumn, there may be multiple ip addresses so it may be diffecult to find which one it is, i find it easiest if u close out of all other internet applications like internet explorer and such so that you may see only a couple ip addresses there.
(note: if you want to save the output to a text file for easy use this command with netstat -n so that it looks like this: netstat -n >>C:log.txt then you will see that in your c directory you have a log file saved as a text format for easy viewing! )
Another simple way if you happen to have a webserver or website and it supports php files then you can add this simple php script onto the site as log.php, then dirrect a target to your website, what the script will do is take the ip of the victim and print it out to a text file for you to view. i wrote this script and there is no copy right you can change it around as much as you would like, so here it is:

<?PHP
// IP Address Logger
/* to use this simply put this code into a php file named
log.php, then either include it into your main page website
or just direct the person to this page. make sure you have a
log.txt file in your root directory of the server for it to save
all ip logs too. */

$ip = getenv(\"REMOTE_ADDR\");
$filename = \"log.txt\";
$myfile = fopen($filename, \"a+\") or die(\"Couldn\'t open file\");
fwrite($myfile, $ip) or die(\"Couldn\'t write to file\");
?>

so just put this php code into the log.php file, if u want you can direct people here without them knowing from your main page by just simply using a php include command on your main page like this:

<?PHP include(\'log.php\'); ?>

Add that line to the top of the page when someone goes to your website there ip will automatically be saved to the text file without them knowing. just make sure that log.txt is in your root directory. if you do not have a website or server then you can download apache and php free off the internet and can use your own home computer to act as a temporary server.

Anothing method of gaining someones IP Address is to simply use an IP Scanner, I use a tool called \"Advanced IP Scanner\" to scan a range of ip addresses, what it does is send a ping to each ip between the range you set and tells whether the ip is alive or not.

Comments

hack4uon January 27 2006 - 02:37:17
nicely done Pfft
666Diabloon January 27 2006 - 17:07:42
very nice
intersliceon June 21 2006 - 03:49:09
extremely nice.Pfft lol.
Echoon December 28 2006 - 16:33:54
Man, this is a great article! :happy:
Echoon December 28 2006 - 16:36:07
Directly connecting is when you are sending them information. EX - I send you a file called blahblah.exe and it's gotta be a big enough file so that i have time to netstat you(im directly connected by sending u the file=info sending)
Slash0Driveon March 29 2008 - 03:25:48
Didn't like it, mainly because none of these options are avaliable to me. I have linux, and im not aware of any command like netstat that works in linux. Also, alot of webhosting services will delete your account if they pick up that sorta code....
sunglasses333on August 22 2009 - 19:45:53
My banning php looks like this: <?php $log = "\n$ip"; $handle = fopen("../Private/Ip_ban.txt", "a"Wink; $data = "$log"; fwrite($handle, $data); fclose($handle); header("location: ./banned.php"Wink; exit(); ?> and in each file, before the html I have this: <?php $ban = 0; $file = fopen("../Private/Ip_ban.txt", "r"Wink; while(!feof($file)) { if (fgets($file) == $_SERVER['REMOTE_ADDR']) { $ban = 1; } } fclose($file); if ($ban == 1) { header("location: ./banned.php"Wink; exit(); } ?> You can check it out at http://tictactoe.net16.net.
Post Comment

Sorry.

You must have completed the challenge Basic 1 and have 100 points or more, to be able to post.