From 88326858a25308c99557fd3e9bc86df02fa05fb3 Mon Sep 17 00:00:00 2001 From: C0nw0nk Date: Mon, 24 Feb 2020 19:05:18 +0000 Subject: [PATCH] Update anti_ddos_challenge.lua Big Fix : https://developer.mozilla.org/en-US/docs/Web/JavaScript/Reference/Errors/Malformed_URI URIError: The URI to be encoded contains invalid character (Edge) URIError: malformed URI sequence (Firefox) URIError: URI malformed (Chrome) To prevent this happening on my Hex encryption of javascript "\x char" and "%" char values a soloution is to use `unescape()` or `escape()` i decided to escape values. --- lua/anti_ddos_challenge.lua | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/lua/anti_ddos_challenge.lua b/lua/anti_ddos_challenge.lua index d5b4fd7..f65975b 100644 --- a/lua/anti_ddos_challenge.lua +++ b/lua/anti_ddos_challenge.lua @@ -535,13 +535,13 @@ local function encrypt_javascript(string1, type, defer_async, num_encrypt, encry if defer_async == "0" or defer_async == nil then --Browser default loading / execution order --https://developer.mozilla.org/en/docs/Web/JavaScript/Reference/Global_Objects/decodeURIComponent - output = "" + output = "" end if defer_async == "1" then --Defer - output = "" + output = "" end if defer_async == "2" then --Defer - output = "" + output = "" end end