Skip to content

Commit 3163bf0

Browse files
authored
Add a LootLink bypass.
1 parent e1dd68a commit 3163bf0

File tree

1 file changed

+25
-0
lines changed

1 file changed

+25
-0
lines changed

src/bypasses/lootlink.js

Lines changed: 25 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,25 @@
1+
import BypassDefinition from './BypassDefinition.js'
2+
3+
export default class LootLink extends BypassDefinition {
4+
constructor() {
5+
super()
6+
this.ensure_dom = true
7+
}
8+
9+
execute() {
10+
// 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
11+
let final = ""
12+
let combinationLink = atob(p.PUBLISHER_LINK)
13+
let key = combinationLink.substring(0, 5)
14+
let enc_link = combinationLink.substring(5)
15+
for (let i = 0; i < enc_link.length; i++) {
16+
let enc_char = enc_link.charCodeAt(i)
17+
let keyAtOffset = key.charCodeAt(i % key.length)
18+
let charcode = enc_char ^ keyAtOffset
19+
final += String.fromCharCode(charcode)
20+
}
21+
this.helpers.safelyNavigate(final)
22+
}
23+
}
24+
25+
export const matches = ['lootlinks.co']

0 commit comments

Comments
 (0)