From 3163bf0b02f052a1e6e97661195b8be355b488d0 Mon Sep 17 00:00:00 2001 From: David K Date: Sat, 20 Jan 2024 16:17:21 -0500 Subject: [PATCH] Add a LootLink bypass. --- src/bypasses/lootlink.js | 25 +++++++++++++++++++++++++ 1 file changed, 25 insertions(+) create mode 100644 src/bypasses/lootlink.js diff --git a/src/bypasses/lootlink.js b/src/bypasses/lootlink.js new file mode 100644 index 00000000..500440ca --- /dev/null +++ b/src/bypasses/lootlink.js @@ -0,0 +1,25 @@ +import BypassDefinition from './BypassDefinition.js' + +export default class LootLink extends BypassDefinition { + constructor() { + super() + this.ensure_dom = true + } + + execute() { + // the bypass to this is reminiscent to decoding cloudflare's email protection but with the exception that this uses the first 5 bytes as the key and cloudflare uses the first 1 + let final = "" + let combinationLink = atob(p.PUBLISHER_LINK) + let key = combinationLink.substring(0, 5) + let enc_link = combinationLink.substring(5) + for (let i = 0; i < enc_link.length; i++) { + let enc_char = enc_link.charCodeAt(i) + let keyAtOffset = key.charCodeAt(i % key.length) + let charcode = enc_char ^ keyAtOffset + final += String.fromCharCode(charcode) + } + this.helpers.safelyNavigate(final) + } +} + +export const matches = ['lootlinks.co']