mirror of
https://github.com/bytedream/stream-bypass.git
synced 2025-05-09 20:25:14 +02:00
Fix luluvdo.com
This commit is contained in:
parent
8852318483
commit
a9cf03c176
@ -113,22 +113,30 @@ export const Luluvdo: Match = {
|
|||||||
regex: [/./gm],
|
regex: [/./gm],
|
||||||
|
|
||||||
match: async () => {
|
match: async () => {
|
||||||
const post_match = window.location.href.match(/(?<=\/embed\/)\S*(\/.*)?/)!;
|
const postMatch = window.location.href.match(/(?<=\/embed\/)\S*(\/.*)?/)!;
|
||||||
|
|
||||||
const request_body = new FormData();
|
const requestBody = new FormData();
|
||||||
request_body.set('op', 'embed');
|
requestBody.set('op', 'embed');
|
||||||
request_body.set('file_code', post_match[0]);
|
requestBody.set('file_code', postMatch[0]);
|
||||||
const response = await fetch(`https://${window.location.host}/dl`, {
|
const response = await fetch(`https://${window.location.host}/dl`, {
|
||||||
method: 'POST',
|
method: 'POST',
|
||||||
body: request_body,
|
body: requestBody,
|
||||||
referrer: window.location.href
|
referrer: window.location.href
|
||||||
});
|
});
|
||||||
|
|
||||||
const eval_match = (await response.text()).match(
|
let unpacked;
|
||||||
/eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms
|
|
||||||
)!;
|
const responseText = await response.text();
|
||||||
|
const evalMatch = responseText.match(/eval\(function\(p,a,c,k,e,d\).*?(?=<\/script>)/gms)!;
|
||||||
|
// sometimes is packed, sometimes it's not. looks like someone forgets to obfuscate the code when pushing to
|
||||||
|
// production
|
||||||
|
if (evalMatch) {
|
||||||
|
unpacked = await unpack(evalMatch[0]);
|
||||||
|
return unpacked.match(/(?<=file:").*(?=")/)![0];
|
||||||
|
} else {
|
||||||
|
unpacked = responseText;
|
||||||
|
}
|
||||||
|
|
||||||
const unpacked = await unpack(eval_match[0]);
|
|
||||||
return unpacked.match(/(?<=file:").*(?=")/)![0];
|
return unpacked.match(/(?<=file:").*(?=")/)![0];
|
||||||
}
|
}
|
||||||
};
|
};
|
||||||
|
Loading…
x
Reference in New Issue
Block a user