-
Notifications
You must be signed in to change notification settings - Fork 289
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Merge pull request #1333 from davidkra230/patch-3
- Loading branch information
Showing
1 changed file
with
25 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -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'] |