Welcome to HBH! If you have tried to register and didn't get a verification email, please using the following link to resend the verification email.

Getting Someones IP Address


Getting Someones IP Address

By ghostghost | 9300 Reads |
0     0

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:documents 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:

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:

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
ghost's avatar
ghost 18 years ago

nicely done :p

ghost's avatar
ghost 18 years ago

very nice

interslice's avatar
interslice 18 years ago

extremely nice.:p lol.

ghost's avatar
ghost 17 years ago

Man, this is a great article! :happy:

ghost's avatar
ghost 17 years ago

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)

ghost's avatar
ghost 16 years ago

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ā€¦.

ghost's avatar
ghost 15 years ago

My banning php looks like this: <?php $log = "\n$ip"; $handle = fopen("../Private/Ip_ban.txt", "a"); $data = "$log"; fwrite($handle, $data); fclose($handle); header("location: ./banned.php"); exit(); ?> and in each file, before the html I have this: <?php $ban = 0; $file = fopen("../Private/Ip_ban.txt", "r"); while(!feof($file)) { if (fgets($file) == $_SERVER['REMOTE_ADDR']) { $ban = 1; } } fclose($file); if ($ban == 1) { header("location: ./banned.php"); exit(); } ?> You can check it out at http://tictactoe.net16.net.

bahpomet1105's avatar
bahpomet1105 8 years ago

Nice code I'm just a noob when it comes to php but cool way to trace.