HACKING HUB

hacking tutorials, full version softwares, tips & tricks

  •  

      





So far, i have give some third party websites to track ip address of victim.  Today we are going to create our own website or webpage to track victim IP address.  I have written this PHP code for you.

Let me explain in two different methods 
Method 1:
Log ip and redirect to some other interesting webpage(like "cute kittens pictures" page) or trusted page (like "facebook" page).


Method 2:
Log the ip and remains in same page( without redirection). I think "you won't select this method.

In this post , i will explain the method 1.



Requirements:
  • Any free hosting site and basic knowledge about file uploading to hosting.
  • url shortening sites account like co.cc,co.nr[optional]

Method 1-IP log php code: 

Step 1:
Create account in any free web hosting service. 

Step 2:
Open notepad++ or notepad (if you have notepadd++, it will better to edit).
Paste the following code:



<?php
header("Location:index1.php");
$file="iplog.txt"; 
$f=fopen($file,'a'); 
fwrite($f,"-------------------------"."\n"); 
fwrite($f,"IP Address:".$_SERVER['REMOTE_ADDR']."\n"); 
fwrite($f,"User Agemt:".$_SERVER['HTTP_USER_AGENT']."\n"); 
fwrite($f,"Host Name:".php_uname('n')."\n"); 
fwrite($f,"Operating System:".php_uname('v')."(".php_uname('s').")"."\n"); 
fclose($f); 
//provided by BreakTheSecurity.com 
?>
and save it as index.php 


Code Explanation:
If you don't want to know how it is logging the IP, you can skip to the step 3.

header("Location:index1.php"); this will redirect to index1.php page.
 You can specify any other location instead.  For example, if you want to redirect to www.interestingwebsite.com ,then change the code as
header("Location: http://www.interestingwebsite.com");
or
header("Location: http://www.interestingwebsite.com/post.php");
  
$f=fopen($file,'a');  opens the file iplog.txt in append mode( add the contents at the end of file)and store the pointer in variable f.

fwrite($f,string) will write the string into the file(iplog.txt) for example, if the string is "hello", it will be stored inside iplog.txt file.

so fwrite($f,"-------------------------"."\n"); will insert ----------- inside the iplog.txt

fwrite($f,"IP Address:".$_SERVER['REMOTE_ADDR']."\n");
here $_SERVER['REMOTE_ADDR'] is build function ,returns IP address(if you run locally in your pc using wamp/xampp, it will return 127.0.0.1). So after ---------- lines, the "Ip address:127.0.0.1" will be append.

Now the iplog.txt file contains:


 --------------------
IP Address: 127.0.0.1


$_SERVER['HTTP_USER_AGENT'] returns the current user agent used by victim.  It will contains information about the browser details(mozilla 3.6,ie),operating system(xp,linux).

php_uname('n') returns the Host name .  Now the iplog.txt contains



--------------------
IP Address: 127.0.0.1
User Agent: Mozilla (linux) (ubuntu 11.10) Mozilla3.6
HostName: xxxx.limestonenetwork.com

fclose($f); will close the opened file.

Step 3:
Open notepad and save the file as "iplog.txt"

Step 4:
again open the notepad and create your own php or html page. It should be some interesting contents(download any website templates,rename the index.html file to index1.html).
Example 1(html):



 <html>
<body>
<img src="cutekittens.jpg"/>
</body>
</html>

save the file as index1.html.
Example 2(php):


 <html>
<head>
<title><?php echo "Cute kittens"; ?></title>
</head>
 <body>
 <img src="cutekittens.jpg"/>
</body>
</html>

 save the file as index1.php

Step 5:
Now you have 3 files namely index.php,index1.php,iplog.txt.
Upload these files to your hosting.


set iplog.txt permisson to read and write by global.


Step 6:
Check whether it is working or not by visiting the your hosting sub domain account.
For example:
http://uraccount.hosting.com/index.php
if you enter the url, it will redirect from index.php to index1.php.
Now open the iplog.txt.  There you can see the logged information.

Step 7:
Send to your friend or victim with attractive mail content and title. At the end, ask him to visit the link to know more about the info.


Once he visit the link, his IP address is in your hands.

Categories:

53 Response for the "How to log IP of Victim using Web page? Ip Logger[Method 1]"

  1. Anonymous says:

    It's an amazing article in favor of all the web people; they will take advantage from it I am sure.

    Here is my web site ... http://wiki.fietsweb.nl/index.php?title=Gebruiker:Hollie97O

  2. Anonymous says:

    Spot on with this write-up, I actually think this site needs far more attention.
    I'll probably be back again to read through more, thanks for the information!

    Here is my website; internet marketing forum

  3. Anonymous says:

    After I originally left a comment I appear to have clicked the
    -Notify me when new comments are added- checkbox and
    now each time a comment is added I get 4 emails with the
    same comment. Is there an easy method you can
    remove me from that service? Appreciate it!

    My blog ... womens relic watches

  4. Anonymous says:

    Usually I do not learn article on blogs, but I wish to say that this
    write-up very compelled me to take a look at and
    do so! Your writing style has been surprised me.

    Thanks, quite nice post.

    my webpage :: www.spurse.org

  5. Anonymous says:

    Greate article. Keep posting such kind of information on your page.
    Im really impressed by it.
    Hey there, You have done a great job. I will certainly digg it and in my
    opinion recommend to my friends. I am sure
    they will be benefited from this website.

    Feel free to visit my blog www.howmuchjoy.com

  6. Anonymous says:

    Wonderful blog! I found it while browsing on
    Yahoo News. Do you have any tips on how to get listed in Yahoo News?

    I've been trying for a while but I never seem to get there! Appreciate it

    Here is my weblog: Watches

  7. Anonymous says:

    always i used to read smaller articles or reviews that as well clear their motive,
    and that is also happening with this piece of writing which I am reading now.


    my page women's victorinox watches

  8. Anonymous says:

    There is definately a great deal to find out about this topic.
    I like all of the points you have made.

    Here is my weblog men's stuhrling original watches

  9. Anonymous says:

    Wonderful blog! I found it while surfing around on Yahoo News.
    Do you have any suggestions on how to get listed
    in Yahoo News? I've been trying for a while but I never seem to get there! Many thanks

    Also visit my page :: blackhat seo

  10. Anonymous says:

    Appreciation to my father who shared with me
    on the topic of this web site, this webpage is in fact awesome.


    Here is my weblog ... akribos watches

  11. Anonymous says:

    Keep the bottle filled with beer, up to all about an inch beyond the top.
    For everybody who is overweight and want to lose weight, have a target weight at heart.



    Feel free to visit my blog post gsa search engine ranker

  12. Anonymous says:

    Most of the accidents may be in vehicles, office accidents, and industrial accidental injuries.


    Here is my homepage: szamba

  13. Anonymous says:

    A person running the Philly marathon this 1 year? They
    are considered as unskilled and uneducated laborers working in the
    labor industry.

    Feel free to surf to my web blog ... imprezy integracyjne

  14. Anonymous says:

    This situation has a binary hybrid plan just that allows you
    to allow them to earn money five different ways. A person do
    have sales training, put period into it.

    Here is my weblog: usługi ochrony lublin

  15. Anonymous says:

    The price for a Ottawa bungalow will go up and down according to that's of town it's
    an. Temperatures in spring but also fall make ideal camping weather.


    Also visit my web blog - ochrona obiektów lublin

  16. Anonymous says:

    Actual exercises will improve fighting capability but also prepare you finer for an Fight fight.
    Mostly because aged ways of marketing and advertising have evolved.


    my web page ... adwokat warszawa

  17. Anonymous says:

    It constantly makes significantly into their music in
    sound, in ragas. Manchester had a thriving music scene in advance of when Madchester happened.


    Feel free to surf to my webpage adwokat warszawa

  18. Anonymous says:

    With involving everyone, companies will learn specifically why and
    how companies need solar power up.

    Stop by my web page :: tłumaczenia włoski Katowice

  19. Anonymous says:

    Hi there just wanted to give you a quick heads up.
    The text in your content seem to be running off the screen in Opera.
    I'm not sure if this is a

    format issue or something to do with internet browser compatibility but I thought I'd
    post to let you know. The design and style look great though!

    Hope you get

    the issue fixed soon. Cheers

    My web-site vendita case costa blanca

  20. Anonymous says:

    Its such as you learn my thoughts! You seem to grasp a

    lot about this, such as you wrote the e book in it or something.
    I feel that you simply could do with some percent to

    drive the message house a bit, but other than that,


    this is excellent blog. An excellent read. I'll definitely be back.

    My blog post: selling property malaysia

  21. Anonymous says:

    Today, I went to the beach front with my kids. I found a sea
    shell and gave it to my 4 year

    old daughter and said "You can hear the ocean if you put this to your ear."
    She placed the shell to her ear and

    screamed. There was a hermit crab inside and it pinched her ear.

    She never wants to go back! LoL I know this is

    entirely off topic but I had to tell someone!

    Also visit my web page ... spanish properties rent to buy

  22. Anonymous says:

    Wonderful blog! Do you have any hints for aspiring writers?
    I'm hoping to start my own blog

    soon but I'm a little lost on everything.
    Would you propose starting with a free platform like

    Wordpress or go for a paid option? There are so many choices out there that I'm totally

    overwhelmed .. Any recommendations? Thank

    you!

    Take a look at my web-site: Svetsila.ru

  23. Anonymous says:

    Great blog! Do you have any recommendations for aspiring
    writers? I'm planning to start my own site

    soon but I'm a little lost on everything. Would you advise
    starting with a free platform like

    Wordpress or go for a paid option? There are so many
    options out there that I'm completely confused .. Any suggestions? Thank

    you!

    my web blog; expat living kuwait

  24. Anonymous says:

    Contemporary scientific version pretty different and challenging as well.
    Beer is especially attractive to slugs; they will seduced
    to it plus trapped.

    Also visit my website - agencja detektywistyczna

  25. Anonymous says:

    The optimum idea of making a t shirt exceptionally unique and hot is by customizing it.
    One of the several types of create is known given that
    puff.

    My blog post biuro detektywistyczne warszawa

  26. Anonymous says:

    This is a wonderful area for a t-shirt in order to at.
    Later, other manufactures also expanded in keeping
    with the T-shirt stamping business.

    My weblog - usługi detektywistyczne

  27. Anonymous says:

    Construct up over time -with no release - you don't run or resist do you? Accumulated gas in tanks can be hazardous.

    My blog: usługi detektywistyczne warszawa

  28. Anonymous says:

    The next step is actually decide how much units we is able to bet
    on green or black. It tracks an individual's valuable assets, checks items in or simply out with each barcode scanner.

    Visit my web blog: usługi detektywistyczne

  29. Anonymous says:

    It can also be extended to cover texts with similar functions in government.


    Also visit my web blog - detektywi warszawa

  30. Anonymous says:

    of course like your web site but you need to check the

    spelling on several of your posts. A number of them are rife with spelling issues

    and I find it very bothersome to tell the truth nevertheless I’ll certainly come

    back again.

    Also visit my homepage :: costa blanca zaragoza

  31. Anonymous says:

    Store garden fitness gear on hooks far away from direct
    sunlight as well as the elements. The user can immediately
    give a opinion to the system.

    Check out my webpage; prywatny detektyw warszawa

  32. Anonymous says:

    Hey! Would you mind if I share your blog with my myspace group?
    There's a lot of people that I think would really appreciate your content.

    Please let me know. Cheers

    my web-site - florida real estate license course spanish

  33. Anonymous says:

    You should certainly also pay over a virtual workout plan emailed into you daily.
    Made available this, it's not suprisingly that many companies invest in purchaser service training.

    My web site - pobierowo

  34. Anonymous says:

    Yet another type of driver's license is an unrestricted use of music for any you specific use. Some of these terms have Copyrights, Publishing, Licenses, etc.

    my website: tanie wczasy nad morzem

  35. Anonymous says:

    Criticize each other's views, religion, even drive? Their information is directed toward painting the receiptant straight into a sales situation.

    Feel free to visit my web site - zespół muzyczny Bydgoszcz

  36. Anonymous says:

    So it turns out for your corporation and corporate custom logo.
    In addition, it contains all the mandatory team
    building areas but in an excellent atmosphere.

    My webpage; tanie wczasy

  37. Anonymous says:

    Make a decision a type of dog pen by which is appropriate time for the needs connected
    with your dog. Remove all liquid products may possibly freeze and broke.


    My homepage tanie wczasy nad morzem

  38. Anonymous says:

    The photovoltaic plant seemed to be connected to some grid on 28 November 2010.
    These websites operate the detailed facts making solar panel.


    Feel free to visit my web site :: ochrona przeciwpożarowa

  39. Anonymous says:

    And, one excess plus from grape planting garlic is it is edible.
    Have fun doing this in turn and if you'll have children show them what you really are doing.

    Feel free to visit my web page borelioza

  40. Anonymous says:

    The major difference lies here in the amount to do with money they be successful.

    Effortlessly classify the music channels on Course Network
    in multiple categories.

    Stop by my weblog - candida

  41. Anonymous says:

    This bullet tests was captured video, and Many of us posted it along with this review.
    The employment of solar mobile material in the
    house usually quite very expensive.

    my web page: historia piwa

  42. Anonymous says:

    "Picture" was cool given that it opened due to a sax solo. Retrieve vital info doing
    the sphere out of - go through this web site.

    Feel free to visit my site; borelioza

  43. Anonymous says:

    This was the precept we used when we developed many of our universal roulette programme.
    Computer system registry Winner could handle those
    problems anyone personally.

    My site - wycieczki all inclusive

  44. Anonymous says:

    The actual language tuition, the teacher will release the question in addition to
    the answer approach. To reply your first question:
    Who creates Money this Planet?

    Feel free to surf to my webpage :: strona główna

  45. Anonymous says:

    As an example to be qualified for a that in British isles, a person should
    be at least 17 years of age, a lasting employee in a organization,
    use a checkable bank account and must earn a regular monthly salary higher than http://instantpaydayloansplace.co.uk/ With the pharmacy technicians
    program, you can gain insight around the pharmaceutical industry and work your way up
    on the way to a Local drugstore degree whether it interests you

    Feel free to surf to my page ... instant loans

  46. Anonymous says:

    Try asking yourself if the interface keep on performing when they notice the winning bar.
    casinos online The S2 fan is mapped
    on the existent and a hale lot more than that can be rather dizzying and makes
    you Bounce into them before look into what they truly Extend.



    my web site; online casinos

  47. Anonymous says:

    To have these you have got to meet specified some typical eligibility specs like:: http://1yearloansdepot.co.uk/
    If you are interested in learn more about the online
    world and making profits on the internet visit my resource box in
    email:prince@unlimited-mlmwealth-online

    Here is my blog 1 year loans

  48. Anonymous says:

    Loosen any hardened spills all by saturating them by using a damp
    sponge until they break available. Evening rust removal processes are pretty basic.


    my webpage - projekty-wnętrz-bauart.pl

  49. Anonymous says:

    Still, the process rotates a lot of pure silicon into expensive
    dust.

    Feel free to visit my web blog STRONA GŁÓWNA

  50. Anonymous says:

    After checkіng out a few οf thе blog articleѕ on yοur website, I really lіkе youг
    wаy οf ωriting a blog.

    I ѕaved as a favorite it to mу booκmark webѕite
    list and wіll be сheckіng back in the nеar
    future. Takе a loоk at my website as well and lеt me know your oрinіon.


    my web ρage :: tabletkі na potencję *http://tabletki-na-potencje.com.pl*

  51. Anonymous says:

    A free arena name is included in hijab, you will realise that except
    for a few cases, it is a personal alternative, which
    has exhaustively contributed to personal maturation.
    free website hosting My New twelvemonth's resolving power is conversation, they are not the to the highest degree popular posts with the fair Gather members.

    my web-site: fast hosts

  52. Anonymous says:

    New television games Florida has been the tourist hub.
    europe car hire The quake damaged churches Fogarty-Hardwick
    was awarded 4.9 million dollars.

    Also visit my web page: http://www.easycarhireuk.co.uk/

  53. Anonymous says:

    We have all deleted our to no one: Fraternities systematically produce
    some of the least charitable cases for Campus free oral communication advocates.

    atlas car hire every day, you
    automatically get an item that allows you to
    spin the bike of kit and caboodle enclosed in these museums
    are in truth gorgeous.

    Here is my blog post holiday car hire

Post a Comment