antibot - custom templates
This commit is contained in:
5
antibot/captcha.data
Normal file
5
antibot/captcha.data
Normal file
@@ -0,0 +1,5 @@
|
||||
<form method="POST" action="%s">
|
||||
<img src="data:image/jpeg;base64,%s" /><br>
|
||||
Captcha : <input type="text" name="captcha" /><br />
|
||||
<input type="submit" value="send" />
|
||||
</form>
|
||||
24
antibot/captcha.html
Normal file
24
antibot/captcha.html
Normal file
@@ -0,0 +1,24 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Website protection</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #1d70b7;
|
||||
}
|
||||
.centered {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="centered" style="color: white;">
|
||||
<h1>As a security measure, we ask you to complete this captcha to access our website :</h1>
|
||||
%CAPTCHA%
|
||||
<div>🛡️ this website is protected with <a href="https://github.com/bunkerity/bunkerized-nginx" target="_blank">bunkerized-nginx</a> 🛡️</div>
|
||||
</div>
|
||||
</body>
|
||||
</html>
|
||||
21
antibot/javascript.data
Normal file
21
antibot/javascript.data
Normal file
@@ -0,0 +1,21 @@
|
||||
<script>
|
||||
async function digestMessage(message) {
|
||||
const msgUint8 = new TextEncoder().encode(message);
|
||||
const hashBuffer = await crypto.subtle.digest('SHA-256', msgUint8);
|
||||
const hashArray = Array.from(new Uint8Array(hashBuffer));
|
||||
const hashHex = hashArray.map(b => b.toString(16).padStart(2, '0')).join('');
|
||||
return hashHex;
|
||||
}
|
||||
(async () => {
|
||||
const digestHex = await digestMessage('%s');
|
||||
xhr = new XMLHttpRequest();
|
||||
xhr.open('POST', '%s');
|
||||
xhr.setRequestHeader('Content-Type', 'application/x-www-form-urlencoded');
|
||||
xhr.onload = function() {
|
||||
if (xhr.status === 200) {
|
||||
window.location.replace('%s');
|
||||
}
|
||||
};
|
||||
xhr.send(encodeURI('challenge=' + digestHex));
|
||||
})();
|
||||
</script>
|
||||
43
antibot/javascript.html
Normal file
43
antibot/javascript.html
Normal file
@@ -0,0 +1,43 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Website protection</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #1d70b7;
|
||||
}
|
||||
.centered {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
}
|
||||
.loader {
|
||||
border: 16px solid #1d70b7;
|
||||
border-top: 16px solid #2dab66;
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="centered" style="color: white;">
|
||||
<div class="loader"></div>
|
||||
<noscript>
|
||||
<h1 style="color: red;">In order to access this website, you need to enable JavaScript.</h1>
|
||||
</noscript>
|
||||
<h1>Please wait while we are doing some security checks...</h1>
|
||||
🛡️ this website is protected with <a href="https://github.com/bunkerity/bunkerized-nginx" target="_blank">bunkerized-nginx</a> 🛡️
|
||||
</div>
|
||||
%JAVASCRIPT%
|
||||
</body>
|
||||
</html>
|
||||
11
antibot/recaptcha-body.data
Normal file
11
antibot/recaptcha-body.data
Normal file
@@ -0,0 +1,11 @@
|
||||
<form method="POST" action="%s" id="form">
|
||||
<input type="hidden" name="token" id="token">
|
||||
</form>
|
||||
<script>
|
||||
grecaptcha.ready(function() {
|
||||
grecaptcha.execute('%s', {action: 'recaptcha'}).then(function(token) {
|
||||
document.getElementById("token").value = token;
|
||||
document.getElementById("form").submit();
|
||||
});;
|
||||
});
|
||||
</script>
|
||||
1
antibot/recaptcha-head.data
Normal file
1
antibot/recaptcha-head.data
Normal file
@@ -0,0 +1 @@
|
||||
<script src="https://www.google.com/recaptcha/api.js?render=%s"></script>
|
||||
44
antibot/recaptcha.html
Normal file
44
antibot/recaptcha.html
Normal file
@@ -0,0 +1,44 @@
|
||||
<html>
|
||||
<head>
|
||||
<title>Website protection</title>
|
||||
<style>
|
||||
body {
|
||||
background-color: #1d70b7;
|
||||
}
|
||||
.centered {
|
||||
position: fixed;
|
||||
top: 50%;
|
||||
left: 50%;
|
||||
transform: translate(-50%, -50%);
|
||||
text-align: center;
|
||||
}
|
||||
.loader {
|
||||
border: 16px solid #1d70b7;
|
||||
border-top: 16px solid #2dab66;
|
||||
border-radius: 50%;
|
||||
width: 120px;
|
||||
height: 120px;
|
||||
animation: spin 2s linear infinite;
|
||||
display: block;
|
||||
margin-left: auto;
|
||||
margin-right: auto;
|
||||
}
|
||||
@keyframes spin {
|
||||
0% { transform: rotate(0deg); }
|
||||
100% { transform: rotate(360deg); }
|
||||
}
|
||||
</style>
|
||||
%RECAPTCHA_HEAD%
|
||||
</head>
|
||||
<body>
|
||||
<div class="centered" style="color: white;">
|
||||
<div class="loader"></div>
|
||||
<noscript>
|
||||
<h1 style="color: red;">In order to access this website, you need to enable JavaScript.</h1>
|
||||
</noscript>
|
||||
<h1>Please wait while we are doing some security checks...</h1>
|
||||
🛡️ this website is protected with <a href="https://github.com/bunkerity/bunkerized-nginx" target="_blank">bunkerized-nginx</a> 🛡️
|
||||
</div>
|
||||
%RECAPTCHA_BODY%
|
||||
</body>
|
||||
</html>
|
||||
Reference in New Issue
Block a user