hobbit monitor
+ Reply to Thread
Page 1 of 2 12 LastLast
Results 1 to 15 of 25

Thread: gaining IP's through a myspace listener?

  1. #1
    Join Date
    Dec 2005
    Posts
    16

    gaining IP's through a myspace listener?

    okay,
    here's the deal.

    I know there is a method of gaining someone's IP by setting up a network listener set to port 80 (http) then directing someone to your IP, which will show the remote IP in the listener.

    what i was wondering was if it'd be possible (i'm pretty sure it is) to create a small HMTL script that would run on a myspace.com page (or any other page for that matter) that would record all remote IP connections made with that page then relay the log to an email address or an ftp account. (much like a remote keylogger)


    I am pretty good with HTML, but i'm not profecient[sic] enough to write this out myself. also, i think all javascript tags are 'blacklisted' and maybe some more HMTL tags aswell.

    -any and all replies welcomed
    ~GH0STce**

  2. #2
    Join Date
    Jan 2005
    Posts
    623
    GH0STce**

    This should not be a problem for you if the <embed> tag is allowed on myspace. If so this is how you can log all of your viewers IP addresses.

    *. Create a .php file on any server you have read write access to.
    2. Here is what the .PHP file can look like:
    Code:
    <?php
    $filename = 'myspace_iplog.txt';
    $ip = $_SERVER['REMOTE_ADDR'];
    
    if (is_writable($filename)) {
       if (!$handle = fopen($filename, 'a')) {
           exit;
       }
       if (fwrite($handle, $ip) === FALSE) {
           exit;
       }
       fclose($handle);
    } 
    
    ?>
    More info on fwrite can be viewed here: http://us2.php.net/fwrite
    *. On your myspace page include this html:
    Code:
     <embed src=yourpage.php width=* height=*></embed>
    4. Everytime someone views your page it will record their ip to the file myspace_iplog.txt on your server (this blank text file needs to be created before the script will work)

    Is this what you were looking for?
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  3. #3
    Join Date
    Jan 2005
    Posts
    623
    If you would like to recieve the IP addresses through email you can embed my page i created [url]http://www.boninroad.com/funny2.php?friend=YOUREMAIL[/url] and you will be emailed each users IP.
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  4. #4
    Join Date
    Dec 2005
    Posts
    16
    yes, it's perfect.

    i have my own server to use for this, except when it logs the IP, it loges it three times over, with no spaces in between.

    i'm not great with php, and have only done a few things with it, but is there any way to seperate the IPs, say by one IP per line?

    and also, what about listing the DNS along with it, or am i better off just finding the DNS for the specific IPs already logged?

    -thanks

    EDIT:it doesn't actually log the IP three times, that's just the users web browser accessing different sections of myspace.com

    but it doesn't separate them, so if you could add that, it'd be appreciated!
    Last edited by GH0STce11; 12-19-2005 at 03:25 PM.

  5. #5
    Join Date
    Jan 2005
    Posts
    623
    Yeah no problem:

    Change this line:
    $ip = $_SERVER['REMOTE_ADDR'];

    to this:
    $ip = $_SERVER['REMOTE_ADDR'] . "\n";

    The \n should tell it to go to the next line of the file
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  6. #6
    Join Date
    Dec 2005
    Posts
    16
    thanks!

    that fixed the problem!


    EDIT:not to bother you any more, but is there a way you could add a line to exclude a certain IP (ie, my own)?
    that would be helpful, thanks

  7. #7
    Join Date
    Jan 2005
    Posts
    623
    lol Yupp

    Put the entire script in these:
    Code:
    <?
    if ($_SERVER['REMOTE_ADDR'] != 'YOURIP')
       {
          PASTE SCRIPT HERE
       }
    ?>
    This will execute whatever is pasted in "PASTE SCRIPT HERE" only if the ip of the person viewing the page does not equal YOURIP
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  8. #8
    Join Date
    Dec 2005
    Posts
    16
    works great!
    thanks!

    i'm writing a small vb6 app to open the log.txt and find the dns of all the ip listed.

    not really necsessary, but i want to learn vb6, haha.

  9. #9
    Join Date
    Dec 2005
    Posts
    16
    i wanted to add the date and time the page was accessed, would i just do this:

    Code:
    <?php
    $filename = 'myspace_iplog.txt';
    $ip = $_SERVER['REMOTE_ADDR'];
    $dt = $date $time;
    
    if (is_writable($filename)) {
       if (!$handle = fopen($filename, 'a')) {
           exit;
       }
       if (fwrite($handle, $ip, $dt) === FALSE) {
           exit;
       }
       fclose($handle);
    } 
    ?>
    im not sure what the actual command for the date and time is, but is that how id set it up?

    also, just a little rant here, the /n starts a new line, but i can only see the new line in wordpad, not notepad. in notepad all i see is a square box where the new line should start.

    EDIT:I was told today that putting /r/n at the end should clear up the problem in notepad.
    Last edited by GH0STce11; 12-22-2005 at 03:27 AM.

  10. #10
    Join Date
    Jan 2005
    Posts
    623
    No i would do it like this:
    Code:
    <?php
    $filename = 'myspace_iplog.txt';
    $ip = $_SERVER['REMOTE_ADDR'] . date('l dS \of F Y h:i:s A');
    
    if (is_writable($filename)) {
       if (!$handle = fopen($filename, 'a')) {
           exit;
       }
       if (fwrite($handle, $ip) === FALSE) {
           exit;
       }
       fclose($handle);
    } 
    ?>
    I havnt tried any of these out ive just been typing them off the top of my head so i hope they are working right ~
    [url=http://www.syntax******.info/tools/services.php]Speed Up Windows XP[/url]
    [url=http://www.syntax******.info/tools/ip.php]Get An Ip Address[/url]
    [url=http://www.syntax******.info/tools/base_converter.php]Base Converter[/url]
    --------------------------------
    [URL=http://www.boninroad.com/syntax******/]Old Site[/URL]
    [URL=http://www.syntax******.info]Comming Soon[/URL]

  11. #11
    Join Date
    Dec 2005
    Posts
    16
    how would i adjust to Mountain Standard Time (-7:00hours)?

  12. #12
    Join Date
    Dec 2005
    Posts
    16
    also,
    i fixed the problem of the new lines in wordpad by adding . "\r\n"; to the end of the $ip line.
    then i rearranged the data format to get this:
    Code:
    $ip = $_SERVER['REMOTE_ADDR'] . " on " . date('l F dS Y @ h:i:s A') . "\r\n";
    which generates:
    Code:
    24.*.xxx.xxx on Friday December 2*rd 2005 @ 08:04:*0 PM
    24.*.xxx.xxx on Friday December 2*rd 2005 @ 08:04:*5 PM
    now only to get it in mountain time...


    EDIT:would it also be possible to retrieve the computer name? as in the name set at the beginning for XP setup?
    i don't know if this information is given to the server, or if it can be retrieved, but if you know how, it'd be helpful!
    Last edited by GH0STce11; 12-23-2005 at 03:11 PM.

  13. #13
    Join Date
    Jan 2006
    Posts
    1
    anyone kno how i can get information to view users who viewed my profile on myspace?

  14. #14
    Join Date
    Jan 2006
    Posts
    2

    um i need help!

    im stupid, i admit it. but i like wat evryone had said i just dont know wat it means never the less how to do it. i understand a little bit, but im just learningm so plz can u help me. sum*

  15. #15
    Join Date
    Jan 2006
    Posts
    2
    wat i dont know how to do is the .PHP file, cuz i dont kno much about it bu ti get how u put the html code on ur myspace that i understand

+ Reply to Thread

Similar Threads

  1. Gaining Access to Private Forum
    By Wanttoknow in forum Internet Privacy
    Replies: 35
    Last Post: 03-18-2007, 04:02 PM
  2. is it possable to find out emails from ip's
    By laxdevil21 in forum Internet Privacy
    Replies: 4
    Last Post: 01-05-2007, 07:23 PM
  3. The help of ip's?
    By Alton in forum Internet Privacy
    Replies: 1
    Last Post: 10-24-2006, 03:56 AM
  4. Banning IP's from IP EMAILER
    By SyntaXmasteR in forum Internet Privacy
    Replies: 0
    Last Post: 05-25-2006, 06:23 PM
  5. IP's using netstat
    By n242n in forum Internet Privacy
    Replies: 3
    Last Post: 12-19-2005, 06:14 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts