Skip to content

Instantly share code, notes, and snippets.

@Modder4869
Last active August 21, 2023 13:50
Show Gist options
  • Save Modder4869/e5dd10c9db97c02c567d8e1d44897192 to your computer and use it in GitHub Desktop.
Save Modder4869/e5dd10c9db97c02c567d8e1d44897192 to your computer and use it in GitHub Desktop.
t1 = function (t) {
//fmovies
a = 'eST4kCjadnvlAm5b1BOGyLJzrE90Q6oKgRfhV+M8NDYtcxW3IP/qp2i7XHuwZFUs'
//9anime a = '0wMrYU+ixjJ4QdzgfN2HlyIVAt3sBOZnCT9Lm7uFDovkb/EaKpRWhqXS5168ePcG'
for (t = ''.concat(t), i = 0; i < t.length; i++)
if (255 < t.charCodeAt(i))
return null;
for (var n = "", i = 0; i < t.length; i += 3) {
var u = [
void 0,
void 0,
void 0,
void 0
];
u[0] = t.charCodeAt(i) >> 2;
u[1] = (3 & t.charCodeAt(i)) << 4;
t.length > i + 1 && (u[1] |= t.charCodeAt(i + 1) >> 4, u[2] = (15 & t.charCodeAt(i + 1)) << 2);
t.length > i + 2 && (u[2] |= t.charCodeAt(i + 2) >> 6, u[3] = kpPGa(63, t.charCodeAt(i + 2)));
for (var o = 0; o < u.length; o++)
if ('undefined' == typeof u[o])
n += '='
else
n += (function (t)
/* Called:true | Scope Closed:false| writes:false*/
{
if (OSApP(0, t) && t < 64)
// console.log(a[t],t)
return a[t];
}(u[o]));
}
return n;
}
kpPGa = function (t, n) {
return t & n;
};
OSApP = function (t, n) {
return t <= n;
}
t2 = function (t, n) {
for (var r, i = [], u = 0, o = "", e = 256, c = 0; c < e; c += 1)
i[c] = c;
for (c = 0; c < e; c += 1)
u = (u + i[c] + t.charCodeAt(c % t.length)) % e,
r = i[c],
i[c] = i[u],
i[u] = r;
for (var u = c = 0, f = 0; f < n.length; f += 1)
u = (u + i[c = (c + f) % e]) % e,
r = i[c],
i[c] = i[u],
i[u] = r,
o += String.fromCharCode(n.charCodeAt(f) ^ i[(i[c] + i[u]) % e]);
return o;
}
vrf = function (t) {
var n = t1(encodeURIComponent(t) + '0000000').substr(0, 6).split("").reverse().join("");
return n + t1(t2(n, encodeURIComponent(''.concat(t)))).replace(/=+$/, "");
};
console.log(vrf('test'))
//"46qLj6T2FHtI"
string = 'hi'
console.log(vrf(string))
console.log(`https://fmovies.to/ajax/film/search?vrf=${encodeURIComponent(vrf(string))}&keyword=${string}`)
@brahmkshatriya
Copy link

Eyo, can we talk on discord?

@Enmn
Copy link

Enmn commented Nov 16, 2022

not working

@Modder4869
Copy link
Author

not working

they probably updated it or something , this gist is very old would be surprised if code still work

@estrath
Copy link

estrath commented Aug 19, 2023

amazing work but how did you get the
a = 'eST4kCjadnvlAm5b1BOGyLJzrE90Q6oKgRfhV+M8NDYtcxW3IP/qp2i7XHuwZFUs'

@Modder4869
Copy link
Author

amazing work but how did you get the a = 'eST4kCjadnvlAm5b1BOGyLJzrE90Q6oKgRfhV+M8NDYtcxW3IP/qp2i7XHuwZFUs'

been forever since then so cant really remember but probably just logged it in devtools debugger

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment