From ccd56d3b685b1cd15f3c3b176a1124377401f170 Mon Sep 17 00:00:00 2001 From: BlasenhauerJ Date: Fri, 21 Apr 2023 16:53:04 +0200 Subject: [PATCH 1/4] change antibot and misc template style --- src/common/core/antibot/files/captcha.html | 413 ++++++--- src/common/core/antibot/files/hcaptcha.html | 515 ++++++----- src/common/core/antibot/files/javascript.html | 859 ++++++++++-------- src/common/core/antibot/files/recaptcha.html | 428 +++++---- src/common/core/antibot/files/template.html | 378 +++++--- src/common/core/misc/files/default.html | 379 ++++++-- 6 files changed, 1868 insertions(+), 1104 deletions(-) diff --git a/src/common/core/antibot/files/captcha.html b/src/common/core/antibot/files/captcha.html index c88e558dd..3b531cfd0 100644 --- a/src/common/core/antibot/files/captcha.html +++ b/src/common/core/antibot/files/captcha.html @@ -1,147 +1,266 @@ - - - - - - Bot Detection - - - - -
-

Please prove that you are Human before accessing this website

-

-

- - -
-

-
- - - \ No newline at end of file + + + + + + + Bot Detection + + + + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+

Please prove that you are Human before accessing this website

+
+ + + +
+
+ + + + +
+
+

+ This website is protected with + BunkerWeb +

+
+ + + + + diff --git a/src/common/core/antibot/files/hcaptcha.html b/src/common/core/antibot/files/hcaptcha.html index 6937d55fc..050107369 100644 --- a/src/common/core/antibot/files/hcaptcha.html +++ b/src/common/core/antibot/files/hcaptcha.html @@ -1,259 +1,284 @@ - - + + + Bot Detection + rel="icon" + href="data:image/svg+xml, %3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='96.000000pt' height='96.000000pt' viewBox='0 0 96.000000 96.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,96.000000) scale(0.100000,-0.100000)'%0Afill='%23085577' stroke='none'%3E%3Cpath d='M535 863 c-22 -2 -139 -17 -260 -34 -228 -31 -267 -43 -272 -85 -2%0A-10 23 -181 55 -379 l57 -360 400 0 400 0 20 40 c16 31 20 59 19 125 -1 100%0A-24 165 -73 199 -41 29 -46 57 -22 111 30 67 29 188 -3 256 -13 28 -37 60 -53%0A72 -55 39 -169 62 -268 55z m-15 -348 c30 -16 60 -61 60 -90 0 -10 -8 -33 -17%0A-52 -16 -34 -16 -41 0 -116 9 -44 15 -82 12 -85 -6 -7 -92 -21 -131 -21 l-31%0A-1 -6 85 c-4 75 -8 89 -31 112 -20 20 -26 36 -26 70 0 38 5 50 34 79 39 39 86%0A45 136 19z'/%3E%3C/g%3E%3C/svg%3E" + type="image/svg+xml" + /> + + - - - -
-

Please prove that you are Human before accessing this website

- -
- -
-
-
-
-

- This site is protected by - hCaptcha and its - Privacy Policy and - Terms of Service apply. -

-
+ + + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / /
-
- -

+ + + +

+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+

Please prove that you are Human before accessing this website

+ + +
+
+
+

+ This site is protected by + hCaptcha and its + Privacy Policy and + Terms of Service apply. +

+
+
+ + + + +
+
+

This website is protected with - BunkerWeb -

-
- +

+ + diff --git a/src/common/core/antibot/files/javascript.html b/src/common/core/antibot/files/javascript.html index 19e2ecf9d..6ffff1793 100644 --- a/src/common/core/antibot/files/javascript.html +++ b/src/common/core/antibot/files/javascript.html @@ -1,378 +1,499 @@ - - + + + Bot Detection - - - - -
-

JavaScript needs to be enabled in order to complete the security check.

-
-
-

Please wait while we are doing some security checks...

-

-

-

-
-
- -
-
- -

- This website is protected with - BunkerWeb -

-
- - - + + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+

Please wait while we are doing some security checks...

+

+ JavaScript needs to be enabled in order to complete the security check. +

+
+
+
+ +
+ + + + + - \ No newline at end of file + /** + * Add integers, wrapping at 2^32. This uses 16-bit operations internally + * to work around bugs in some JS interpreters. + */ + function safe_add(x, y) { + var lsw = (x & 0xFFFF) + (y & 0xFFFF), + msw = (x >> 16) + (y >> 16) + (lsw >> 16); + return (msw << 16) | (lsw & 0xFFFF); + } + /** + * Convert a raw string to a hex string + */ + function rstr2hex(input, hexcase) { + var hex_tab = hexcase ? '0123456789ABCDEF' : '0123456789abcdef', + output = '', + x, i = 0, + l = input.length; + for (; i < l; i += 1) { + x = input.charCodeAt(i); + output += hex_tab.charAt((x >>> 4) & 0x0F) + hex_tab.charAt(x & 0x0F); + } + return output; + } + /** + * Convert an array of big-endian words to a string + */ + function binb2rstr(input) { + var i, l = input.length * 32, + output = ''; + for (i = 0; i < l; i += 8) { + output += String.fromCharCode((input[i >> 5] >>> (24 - i % 32)) & 0xFF); + } + return output; + } + /** + * Convert a raw string to an array of big-endian words + * Characters >255 have their high-byte silently ignored. + */ + + function rstr2binb(input) { + var i, l = input.length * 8, + output = Array(input.length >> 2), + lo = output.length; + for (i = 0; i < lo; i += 1) { + output[i] = 0; + } + for (i = 0; i < l; i += 8) { + output[i >> 5] |= (input.charCodeAt(i / 8) & 0xFF) << (24 - i % 32); + } + return output; + } + var sha256_K = [ + 1116352408, 1899447441, -1245643825, -373957723, 961987163, 1508970993, + -1841331548, -1424204075, -670586216, 310598401, 607225278, 1426881987, + 1925078388, -2132889090, -1680079193, -1046744716, -459576895, -272742522, + 264347078, 604807628, 770255983, 1249150122, 1555081692, 1996064986, + -1740746414, -1473132947, -1341970488, -1084653625, -958395405, -710438585, + 113926993, 338241895, 666307205, 773529912, 1294757372, 1396182291, + 1695183700, 1986661051, -2117940946, -1838011259, -1564481375, -1474664885, + -1035236496, -949202525, -778901479, -694614492, -200395387, 275423344, + 430227734, 506948616, 659060556, 883997877, 958139571, 1322822218, 1537002063, + 1747873779, 1955562222, 2024104815, -2067236844, -1933114872, -1866530822, + -1538233109, -1090935817, -965641998, + ]; + function sha256_S(X, n) { + return (X >>> n) | (X << (32 - n)); + } + function sha256_R(X, n) { + return X >>> n; + } + function sha256_Ch(x, y, z) { + return (x & y) ^ (~x & z); + } + function sha256_Maj(x, y, z) { + return (x & y) ^ (x & z) ^ (y & z); + } + function sha256_Sigma0256(x) { + return sha256_S(x, 2) ^ sha256_S(x, 13) ^ sha256_S(x, 22); + } + function sha256_Sigma1256(x) { + return sha256_S(x, 6) ^ sha256_S(x, 11) ^ sha256_S(x, 25); + } + function sha256_Gamma0256(x) { + return sha256_S(x, 7) ^ sha256_S(x, 18) ^ sha256_R(x, 3); + } + function sha256_Gamma1256(x) { + return sha256_S(x, 17) ^ sha256_S(x, 19) ^ sha256_R(x, 10); + } + function binb(m, l) { + var HASH = [ + 1779033703, -1150833019, 1013904242, -1521486534, 1359893119, -1694144372, + 528734635, 1541459225, + ]; + var W = [64]; + var a, b, c, d, e, f, g, h; + var i, j, T1, T2; + m[l >> 5] |= 0x80 << (24 - (l % 32)); + m[(((l + 64) >> 9) << 4) + 15] = l; + for (i = 0; i < m.length; i += 16) { + a = HASH[0]; + b = HASH[1]; + c = HASH[2]; + d = HASH[3]; + e = HASH[4]; + f = HASH[5]; + g = HASH[6]; + h = HASH[7]; + for (j = 0; j < 64; j += 1) { + if (j < 16) { + W[j] = m[j + i]; + } else { + W[j] = safe_add( + safe_add( + safe_add(sha256_Gamma1256(W[j - 2]), W[j - 7]), + sha256_Gamma0256(W[j - 15]) + ), + W[j - 16] + ); + } + T1 = safe_add( + safe_add( + safe_add(safe_add(h, sha256_Sigma1256(e)), sha256_Ch(e, f, g)), + sha256_K[j] + ), + W[j] + ); + T2 = safe_add(sha256_Sigma0256(a), sha256_Maj(a, b, c)); + h = g; + g = f; + f = e; + e = safe_add(d, T1); + d = c; + c = b; + b = a; + a = safe_add(T1, T2); + } + HASH[0] = safe_add(a, HASH[0]); + HASH[1] = safe_add(b, HASH[1]); + HASH[2] = safe_add(c, HASH[2]); + HASH[3] = safe_add(d, HASH[3]); + HASH[4] = safe_add(e, HASH[4]); + HASH[5] = safe_add(f, HASH[5]); + HASH[6] = safe_add(g, HASH[6]); + HASH[7] = safe_add(h, HASH[7]); + } + return HASH; + } + function rstr(s, sha256_K) { + s = sha256_K ? utf8Encode(s) : s; + return binb2rstr(binb(rstr2binb(s), s.length * 8)); + } + function hex(s) { + return rstr2hex(rstr(s, sha256_K)); + } + async function digestMessage(message) { + const hashBuffer = hex(message); + return hashBuffer; + } + (async () => { + const nonce = '{{random}}'; + var i = 0; + while (true) { + var digestHex = await digestMessage(nonce + i.toString()); + if (digestHex.startsWith("0000")) { + break; + } + i++; + } + document.getElementById("challenge").value = i.toString(); + document.getElementById("form").submit(); + })(); + + +
+
+

+ This website is protected with + BunkerWeb +

+
+ + + diff --git a/src/common/core/antibot/files/recaptcha.html b/src/common/core/antibot/files/recaptcha.html index bb6b35c19..7b55414fb 100644 --- a/src/common/core/antibot/files/recaptcha.html +++ b/src/common/core/antibot/files/recaptcha.html @@ -1,168 +1,286 @@ - - + + + Bot Detection + rel="icon" + href="data:image/svg+xml, %3Csvg version='1.0' xmlns='http://www.w3.org/2000/svg' width='96.000000pt' height='96.000000pt' viewBox='0 0 96.000000 96.000000' preserveAspectRatio='xMidYMid meet'%3E%3Cg transform='translate(0.000000,96.000000) scale(0.100000,-0.100000)'%0Afill='%23085577' stroke='none'%3E%3Cpath d='M535 863 c-22 -2 -139 -17 -260 -34 -228 -31 -267 -43 -272 -85 -2%0A-10 23 -181 55 -379 l57 -360 400 0 400 0 20 40 c16 31 20 59 19 125 -1 100%0A-24 165 -73 199 -41 29 -46 57 -22 111 30 67 29 188 -3 256 -13 28 -37 60 -53%0A72 -55 39 -169 62 -268 55z m-15 -348 c30 -16 60 -61 60 -90 0 -10 -8 -33 -17%0A-52 -16 -34 -16 -41 0 -116 9 -44 15 -82 12 -85 -6 -7 -92 -21 -131 -21 l-31%0A-1 -6 85 c-4 75 -8 89 -31 112 -20 20 -26 36 -26 70 0 38 5 50 34 79 39 39 86%0A45 136 19z'/%3E%3C/g%3E%3C/svg%3E" + type="image/svg+xml" + /> - - - -
-

Please prove that you are Human before accessing this website

- -

-

- This site is protected by reCAPTCHA and the Google - Privacy Policy and - Terms of Service apply. -

+ + + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / /
-
- -
-
- -

+ + + +

+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+

Please prove that you are Human before accessing this website

+ + +
+ +

+ This site is protected by reCAPTCHA and the Google + Privacy Policy and + Terms of Service apply. +

+
+
+ + + + + +
+
+

This website is protected with - BunkerWeb -

-
- +

+ + diff --git a/src/common/core/antibot/files/template.html b/src/common/core/antibot/files/template.html index 1248d861b..52ef475e9 100644 --- a/src/common/core/antibot/files/template.html +++ b/src/common/core/antibot/files/template.html @@ -1,108 +1,270 @@ - - - - - - %s - - - - -
-
-

%s%s

-

%s

-
-
-
- -

- This website is protected with - BunkerWeb -

-
- - + + + + + + + %s + + + + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + + + +
+ +
+

>%s

+

>%s

+

+ >%s +

+ Go back to main level +
+ + + + +
+
+

+ This website is protected with + BunkerWeb +

+
+ + + + + diff --git a/src/common/core/misc/files/default.html b/src/common/core/misc/files/default.html index 647b73198..13135f43e 100644 --- a/src/common/core/misc/files/default.html +++ b/src/common/core/misc/files/default.html @@ -1,90 +1,309 @@ - - - BunkerWeb - + + + + Bunkerweb + + + + - -
-
-

Nothing to see here...

-
+ + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / + +
-
- -

- This website is protected with - BunkerWeb + + +

+ / / / / / / / / / / / / / / / / / / / / / / / / / / + + +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + +
+ + + + + + + +
+ +
+

+ Nothing to see here... +

+
+ + + + +
+
+ +
+

+ This website is protected with + BunkerWeb +

+
+
+ + From 56028b087ec9f7aacfca8fb7f9fa0cb354ae2e8f Mon Sep 17 00:00:00 2001 From: BlasenhauerJ Date: Sat, 22 Apr 2023 21:17:26 +0200 Subject: [PATCH 2/4] update antibot / loading / default page *change syntax {{ }} for {* *} *wrap html on {-raw-} unless there is LUA variable *loading template get new UI *remove default page back btn --- src/bw/loading/index.html | 483 ++++++++++++------ src/common/core/antibot/files/captcha.html | 8 +- src/common/core/antibot/files/hcaptcha.html | 8 +- src/common/core/antibot/files/javascript.html | 19 +- src/common/core/antibot/files/recaptcha.html | 15 +- src/common/core/antibot/files/template.html | 5 + src/common/core/misc/files/default.html | 55 +- 7 files changed, 363 insertions(+), 230 deletions(-) diff --git a/src/bw/loading/index.html b/src/bw/loading/index.html index 4ad14674d..62f7d6971 100644 --- a/src/bw/loading/index.html +++ b/src/bw/loading/index.html @@ -1,177 +1,322 @@ - - + + + + {-raw-} Generating... - - + + + - -
-

Generating BunkerWeb config...

-

-

-

+ + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / /
-
- -

- This website is protected with BunkerWeb -

-
+ + + +
+ / / / / / / / / / / / / / / / / / / / / / / / / / / +
+ + + + + + + + + + + +
+ + + + + + + + + + + + + + + + + + + + + +
+ + + + + +
+ +
+

Generating BunkerWeb config...

+
+
+ + + +
+
+

+ This website is protected with + BunkerWeb +

+
+ + + +{-raw-} \ No newline at end of file diff --git a/src/common/core/antibot/files/captcha.html b/src/common/core/antibot/files/captcha.html index 3b531cfd0..e28840ea0 100644 --- a/src/common/core/antibot/files/captcha.html +++ b/src/common/core/antibot/files/captcha.html @@ -4,6 +4,7 @@ + {-raw-} Bot Detection

Please prove that you are Human before accessing this website

-
- + {-raw-} + + + {-raw-}
@@ -264,3 +267,4 @@ +{-raw-} \ No newline at end of file diff --git a/src/common/core/antibot/files/hcaptcha.html b/src/common/core/antibot/files/hcaptcha.html index 050107369..862c9cd6f 100644 --- a/src/common/core/antibot/files/hcaptcha.html +++ b/src/common/core/antibot/files/hcaptcha.html @@ -4,6 +4,7 @@ + {-raw-} Bot Detection -
+ {-raw-}

This site is protected by @@ -282,3 +285,4 @@ +{-raw-} diff --git a/src/common/core/antibot/files/javascript.html b/src/common/core/antibot/files/javascript.html index 6ffff1793..26857f37b 100644 --- a/src/common/core/antibot/files/javascript.html +++ b/src/common/core/antibot/files/javascript.html @@ -4,6 +4,7 @@ + {-raw-} Bot Detection .lds-roller{display: inline-block;position: relative;width: 80px;height: 80px}.lds-roller div{animation: lds-roller 1.2s cubic-bezier(0.5, 0, 0.5, 1) infinite;transform-origin: 40px 40px}.lds-roller div:after{content: " ";display: block;position: absolute;width: 7px;height: 7px;border-radius: 50%;background: #fff;margin: -4px 0 0 -4px}.lds-roller div:nth-child(1){animation-delay: -0.036s}.lds-roller div:nth-child(1):after{top: 63px;left: 63px}.lds-roller div:nth-child(2){animation-delay: -0.072s}.lds-roller div:nth-child(2):after{top: 68px;left: 56px}.lds-roller div:nth-child(3){animation-delay: -0.108s}.lds-roller div:nth-child(3):after{top: 71px;left: 48px}.lds-roller div:nth-child(4){animation-delay: -0.144s}.lds-roller div:nth-child(4):after{top: 72px;left: 40px}.lds-roller div:nth-child(5){animation-delay: -0.18s}.lds-roller div:nth-child(5):after{top: 71px;left: 32px}.lds-roller div:nth-child(6){animation-delay: -0.216s}.lds-roller div:nth-child(6):after{top: 68px;left: 24px}.lds-roller div:nth-child(7){animation-delay: -0.252s}.lds-roller div:nth-child(7):after{top: 63px;left: 17px}.lds-roller div:nth-child(8){animation-delay: -0.288s}.lds-roller div:nth-child(8):after{top: 56px;left: 12px}@keyframes lds-roller{0%{transform: rotate(0deg)}100%{transform: rotate(360deg)}}#showjs{display:none}#nojs{display:inline} - + {-raw-} + + {-raw-} +

- + {-raw-} +
- + {-raw-} + {-raw-} + + {-raw-} + + {-raw-} + - + {-raw-}

@@ -256,12 +262,13 @@ }catch(err) {} }); + {-raw-} + {-raw-}