Skip to content

Commit

Permalink
Merge pull request #1333 from davidkra230/patch-3
Browse files Browse the repository at this point in the history
  • Loading branch information
NotAProton authored Jan 30, 2024
2 parents e1dd68a 3163bf0 commit fff014d
Showing 1 changed file with 25 additions and 0 deletions.
25 changes: 25 additions & 0 deletions src/bypasses/lootlink.js
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']

0 comments on commit fff014d

Please sign in to comment.