text
stringlengths 0
173k
|
---|
data: JSON.stringify(serialToken), |
headers: { |
"Content-Type": 'application/json', |
}, |
onload: function(resp) { |
response = JSON.parse(resp.responseText); |
if(target_type != "PASTE") { |
let dest = new URL(response["data"]["target"]); |
if(dest.hostname == "linkvertise.download") { |
bypassDownload(dest); |
} else { |
handleResult(dest.href); |
} |
} else { |
handleResult("https://balatin.de/api/txt/" + btoa(unescape(encodeURIComponent(response["data"]["paste"])))); |
} |
} |
}); |
} |
}); |
} |
}); |
} |
}); |
} |
}); |
} else { |
$.notify("Bypassing link via external api...", {className: "info", autoHideDelay: 8000}); |
GM_xmlhttpRequest({ |
method: 'POST', |
url: "https://api.bypass.vip/", |
headers: { |
"Content-Type": 'application/x-www-form-urlencoded;charset=UTF-8', |
}, |
data: 'url=' + encodeURIComponent(loc.href), |
onload: function(resp) { |
let jsonResponse = JSON.parse(resp.responseText); |
if(jsonResponse != null && jsonResponse.destination != null) { |
handleResult(jsonResponse.destination); |
} else if(jsonResponse != null && jsonResponse.response != null) { |
// Text proxy used to redirect |
handleResult("https://balatin.de/api/txt/" + btoa(unescape(encodeURIComponent(jsonResponse.response)))); |
} else { |
$.notify("Could not bypass link", {className: "error", autoHideDelay: 10000}); |
} |
} |
}); |
} |
} else if (loc.hostname == "linkvertise.download") { |
bypassDownload(loc); |
return; |
} else { |
$.notify("Unknown error occurred (domain or path)", {className: "error", autoHideDelay: 10000}); |
return; |
} |
} |
async function bypassDownload(dest) { |
if(dest.pathname.startsWith("/download/")) { |
let pathId = dest.pathname.split("/")[2]; |
let pathName = dest.pathname.split("/")[3]; |
$.notify("Bypassing executable..", {className: "base", autoHideDelay: 3000}); |
let key = JSON.stringify({key: dest.pathname.split("/")[4]}); |
// Stage 6 - (if link is download) get installer |
GM_xmlhttpRequest({ |
method: 'POST', |
url: "https://publisher.linkvertise.com/api/v1/redirect/link/" + pathId + "/" + pathName + "/download-info", |
data: key, |
headers: { |
"Content-Type": 'application/json', |
}, |
onload: function(resp) { |
let response = JSON.parse(resp.responseText); |
let downloadUrl = new URL(response["data"]["downloadUrl"]); |
if(downloadUrl.hostname.endsWith("cloudfront.net")) { |
// Stage 7 - Extract filename of executable |
if(useStage6) { |
let downloadReq = GM_xmlhttpRequest({ |
method: 'GET', |
url: "https://balatin.de/api/stage6?url=" + downloadUrl.href, |
onload: function(resp) { |
response = resp.responseText; |
let filename = JSON.stringify({"a":"Linkvertise","s":"Linkvertise","u":response}); |
// Stage 8 - Retrieve final download based on filename key |
GM_xmlhttpRequest({ |
method: 'POST', |
url: "https://d17kz3i6hbr7d3.cloudfront.net/o", |
data: filename, |
headers: { |
"Content-Type": 'application/json', |
}, |
onload: function(resp) { |
handleResult(JSON.parse(resp.responseText)["i"]["cu"]); |
} |
}); |
} |
}); |
} else {// Stage 8 skipped |
let downloadReq = GM_xmlhttpRequest({ |
method: 'GET', |