鸿途.js 2.1 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364
  1. // let jxUrl = 'https://h5.freejson.xyz/player/analysis.php?v=';
  2. // fetch_params.headers.Referer = jxUrl;
  3. // try {
  4. // // realUrl = null;
  5. // let html = request(jxUrl+input);
  6. // log(html);
  7. // //realUrl = jsp.pjfh(html,'$..url');
  8. // realUrl=html.match(/var urls = "(.*?)"/)[1];
  9. // log('解析到真实播放地址:'+realUrl);
  10. // }catch (e) {
  11. // log('解析发生错误:'+e.message);
  12. // realUrl = input;
  13. // }
  14. // 虾米免嗅
  15. var flag = [];
  16. function lazy() {
  17. let jxUrl = 'https://jx.xmflv.com/?url=';
  18. fetch_params.headers.Referer = jxUrl;
  19. eval(getCryptoJS());
  20. function encrypt(_0x5cf953) {
  21. var _0x5efb07 = CryptoJS.enc.Utf8.parse(vkey);
  22. var _0x45c0ea = CryptoJS.enc.Utf8.parse('ash3omcjsoajh1ur');
  23. var _0x268682 = CryptoJS.AES.encrypt(_0x5cf953, _0x5efb07, {
  24. 'iv': _0x45c0ea,
  25. 'mode': CryptoJS.mode.CBC,
  26. 'padding': CryptoJS.pad.ZeroPadding
  27. });
  28. return _0x268682.toString();
  29. }
  30. function jsdecrypt(_0x1a43fe) {
  31. var _0x10ab4d = CryptoJS.enc.Utf8.parse(vkey);
  32. var _0x291247 = CryptoJS.enc.Utf8.parse('contentDocuments');
  33. var _0x5abb12 = CryptoJS.AES.decrypt(_0x1a43fe, _0x10ab4d, {
  34. 'iv': _0x291247,
  35. 'mode': CryptoJS.mode.CBC,
  36. 'padding': CryptoJS.pad.ZeroPadding
  37. }).toString(CryptoJS.enc.Utf8);
  38. return _0x5abb12.toString();
  39. }
  40. try {
  41. let html = request(jxUrl + input);
  42. let time = html.match(/var time = '(.*?)'/)[1];
  43. let ua = html.match(/var ua = '(.*?)'/)[1];
  44. let vkey = html.match(/var vkey = '(.*?)'/)[1];
  45. // log(encrypt(vkey));
  46. let phtml = request("https://jx.xmflv.com/favicon.ico", {
  47. headers: {
  48. "origin": "https://jx.xmflv.com"
  49. },
  50. body: "url=" + input + "&time=" + time + "&ua=" + ua + "&vkey=" + encrypt(vkey),
  51. method: "post"
  52. });
  53. // log(phtml);
  54. realUrl = jsdecrypt(JSON.parse(phtml).url);
  55. log('解析到真实播放地址:' + realUrl);
  56. } catch (e) {
  57. log('解析发生错误:' + e.message);
  58. realUrl = input;
  59. }
  60. return realUrl
  61. }