Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add a LootLink bypass. #1333

Merged
merged 1 commit into from
Jan 30, 2024
Merged
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
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']