diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.html new file mode 100644 index 000000000..cd8ffd7b0 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.html @@ -0,0 +1,21 @@ + + + +5s + + + +
+
Verifying...
+
Verification Passed
+
+
+ + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.js b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.js new file mode 100644 index 000000000..d20c2a8fb --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/5s.js @@ -0,0 +1,24 @@ +window.onload = function () { + setTimeout(function () { + showSuccess(); + verifySucc(); + }, 5000); + + function showSuccess() { + document.getElementById("loadingText").style.display = "none"; + document.getElementById("loadingSuccess").style.display = "block"; + document.querySelector(".loadingSpinner").style.display = "none"; + } + + function verifySucc() { + let xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function () { + if (xhr.readyState === 4 && xhr.status === 200) { + window.location.reload(); + } + }; + const requestUrl = "%s-%s-%s-%s-%s-"; + xhr.open("GET", requestUrl, true); + xhr.send(); + } +} \ No newline at end of file diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/cc.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/cc.html new file mode 100644 index 000000000..6bd0296d2 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/cc.html @@ -0,0 +1,75 @@ + + + + + + +Request Intercepted + + + + +
+
Request frequency is too high and has been blocked
+
+ + + + + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/forbidden.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/forbidden.html new file mode 100644 index 000000000..25fbcf625 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/forbidden.html @@ -0,0 +1,75 @@ + + + + + + +Request Intercepted + + + + +
+
Request with malicious parameters has been intercepted
+
+ + + + + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/geo.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/geo.html new file mode 100644 index 000000000..c5462d050 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/geo.html @@ -0,0 +1,75 @@ + + + + + + +Region Block + + + + +
+
Your region is blocked from access
+
+ + + + + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/ip.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/ip.html new file mode 100644 index 000000000..9e8d24dcc --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/ip.html @@ -0,0 +1,75 @@ + + + + + + +Blacklist Interception + + + + +
+
Sorry, your IP is banned from access.
+
+ + + + + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/redirect.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/redirect.html new file mode 100644 index 000000000..fc52d80e5 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/redirect.html @@ -0,0 +1,28 @@ + + + + WAF + + + +
+
WAF
+
+

Your request is invalid and has been denied.

+
+ +
+ + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.html new file mode 100644 index 000000000..46524d10a --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.html @@ -0,0 +1,26 @@ + + + +Sliding Authentication + + + +
+
+
+
+
+
+
+ + + diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.js b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.js new file mode 100644 index 000000000..b4088874f --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/slide.js @@ -0,0 +1,82 @@ +window.onload = function () { + (function () { + const dragContainer = document.getElementById("dragContainer"); + const dragBg = document.getElementById("dragBg"); + const dragText = document.getElementById("dragText"); + const dragHandler = document.getElementById("dragHandler"); + const maxHandleOffset = dragContainer.clientWidth - dragHandler.clientWidth; + let isVertifySucc = false; + + initDrag(); + + function initDrag() { + dragText.textContent = "Slide to verify"; + dragHandler.addEventListener("mousedown", onDragStart); + dragHandler.addEventListener("touchstart", onDragStart); + } + + function onDragStart(a) { + a.preventDefault(); + if (a.type === "mousedown" || (a.type === "touchstart" && a.touches.length === 1)) { + document.addEventListener("mousemove", onDragMove); + document.addEventListener("touchmove", onDragMove); + document.addEventListener("mouseup", onDragEnd); + document.addEventListener("touchend", onDragEnd); + } + } + + function onDragMove(a) { + let clientX; + if (a.type === "mousemove") { + clientX = a.clientX; + } else if (a.type === "touchmove" && a.touches.length === 1) { + clientX = a.touches[0].clientX; + } + let containerOffsetX = clientX - dragContainer.getBoundingClientRect().left; + let left = containerOffsetX - dragHandler.clientWidth / 2; + if (left < 0) { + left = 0; + } else if (left > maxHandleOffset) { + left = maxHandleOffset; + } + dragHandler.style.left = left + "px"; + dragBg.style.width = dragHandler.style.left; + } + + function onDragEnd() { + document.removeEventListener("mousemove", onDragMove); + document.removeEventListener("touchmove", onDragMove); + document.removeEventListener("mouseup", onDragEnd); + document.removeEventListener("touchend", onDragEnd); + + if (!isVertifySucc) { + let left = dragHandler.offsetLeft; + if (left >= maxHandleOffset) { + verifySucc(); + } else { + dragHandler.style.left = "0px"; + dragBg.style.width = "0px"; + } + } + } + + function verifySucc() { + isVertifySucc = true; + dragText.textContent = "Verification Passed"; + dragText.style.color = "white"; + dragHandler.setAttribute("class", "dragHandlerOkBg"); + dragHandler.removeEventListener("mousedown", onDragStart); + dragHandler.removeEventListener("touchstart", onDragStart); + + let xhr = new XMLHttpRequest(); + xhr.onreadystatechange = function () { + if (xhr.readyState === 4 && xhr.status === 200) { + window.location.reload(); + } + }; + const requestUrl = "%s-%s-%s-%s-%s-"; + xhr.open("GET", requestUrl, true); + xhr.send(); + } + })(); +}; diff --git a/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/unknown.html b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/unknown.html new file mode 100644 index 000000000..65b1f7ee0 --- /dev/null +++ b/openresty/1.21.4.3-3-3-focal/1pwaf/data/html-en/unknown.html @@ -0,0 +1,75 @@ + + + + + + +The website does not exist + + + + +
+
The website does not exist, please check the domain name.
+
+ + + + + + diff --git a/pgadmin4/8.13/data.yml b/pgadmin4/8.13/data.yml index ba210e773..80677f429 100644 --- a/pgadmin4/8.13/data.yml +++ b/pgadmin4/8.13/data.yml @@ -1,6 +1,6 @@ additionalProperties: formFields: - - default: 80 + - default: 8080 edit: true envKey: PANEL_APP_PORT_HTTP labelEn: Web Port