Add the Index.php File - Ryuretic/SecRev GitHub Wiki
This file has to be saved in directory /var/www/index.php.
<header>
<title> Trusted Agent </title>
</header>
<body>
<?php echo "Your system [ ", shell_exec("arp -a"), " ] has been flagged.
<br><br>
Complete included instructions and enter the passkey once provided. <br>"; ?>
<?php
$mac_string = shell_exec("arp -a");
$mac_array = explode(" ",$mac_string);
$mac = $mac_array[3];
echo "<br>";
//for ($x=0; $x <= 10; $x++){
// echo "<br>";
// echo $x,", ", $mac_array[$x]; }
echo "<br>";
echo $mac_array[9];
?>
<br>
Please enter your passkey:
<form method="post" action="cgi-bin/process_data.py">
<input type="hidden" name="mac" value=<?php echo $mac_array[9]; ?> ><br>
Passkey: <input type="text", name="passkey", required="required"><br><br>
<input type="submit" name="PassKey" value="Submit PassKey" >
</form>
<p> Instructions provided below: </p>
</body>