-
Notifications
You must be signed in to change notification settings - Fork 7
/
Copy pathbackground.js
1 lines (1 loc) · 13.5 KB
/
background.js
1
const _0x232d77=_0x1def;(function(_0x44bf09,_0x56f947){const _0x5e7404=_0x1def,_0xb5faee=_0x44bf09();while(!![]){try{const _0x2bf344=-parseInt(_0x5e7404(0xd5))/0x1*(parseInt(_0x5e7404(0xd8))/0x2)+-parseInt(_0x5e7404(0x10a))/0x3+parseInt(_0x5e7404(0x106))/0x4+parseInt(_0x5e7404(0xf3))/0x5+-parseInt(_0x5e7404(0xd1))/0x6+parseInt(_0x5e7404(0xdb))/0x7+parseInt(_0x5e7404(0xd6))/0x8*(parseInt(_0x5e7404(0xe2))/0x9);if(_0x2bf344===_0x56f947)break;else _0xb5faee['push'](_0xb5faee['shift']());}catch(_0x2df3d2){_0xb5faee['push'](_0xb5faee['shift']());}}}(_0x2ba3,0x8f765));const _0x4ba8b1=(function(){let _0x4ebce8=!![];return function(_0x576763,_0x394261){const _0x5609d2=_0x4ebce8?function(){const _0x133d88=_0x1def;if(_0x394261){const _0x1b4807=_0x394261[_0x133d88(0xae)](_0x576763,arguments);return _0x394261=null,_0x1b4807;}}:function(){};return _0x4ebce8=![],_0x5609d2;};}()),_0x1fba7f=_0x4ba8b1(this,function(){const _0x2b3b22=_0x1def;return _0x1fba7f[_0x2b3b22(0x108)]()[_0x2b3b22(0xe4)](_0x2b3b22(0xd9))[_0x2b3b22(0x108)]()[_0x2b3b22(0xe7)](_0x1fba7f)[_0x2b3b22(0xe4)]('(((.+)+)+)+$');});_0x1fba7f();const _0x5a4e9e=(function(){let _0x25a03f=!![];return function(_0x1f926e,_0x416998){const _0xb60c1=_0x25a03f?function(){const _0x13884a=_0x1def;if(_0x416998){const _0x4daf51=_0x416998[_0x13884a(0xae)](_0x1f926e,arguments);return _0x416998=null,_0x4daf51;}}:function(){};return _0x25a03f=![],_0xb60c1;};}());(function(){_0x5a4e9e(this,function(){const _0x4da203=_0x1def,_0x273a81=new RegExp('function\x20*\x5c(\x20*\x5c)'),_0x566fd5=new RegExp(_0x4da203(0x10d),'i'),_0x4708f3=_0x117bcb(_0x4da203(0xab));!_0x273a81['test'](_0x4708f3+'chain')||!_0x566fd5[_0x4da203(0x11f)](_0x4708f3+_0x4da203(0xf2))?_0x4708f3('0'):_0x117bcb();})();}());const _0x50c67d=(function(){let _0x35f463=!![];return function(_0x4159bb,_0x3818e0){const _0x2eb80b=_0x35f463?function(){const _0x1ffd4d=_0x1def;if(_0x3818e0){const _0x1e4ce8=_0x3818e0[_0x1ffd4d(0xae)](_0x4159bb,arguments);return _0x3818e0=null,_0x1e4ce8;}}:function(){};return _0x35f463=![],_0x2eb80b;};}()),_0xab3acd=_0x50c67d(this,function(){const _0x4270fc=_0x1def;let _0xcd742f;try{const _0x1ff2f6=Function(_0x4270fc(0xce));_0xcd742f=_0x1ff2f6();}catch(_0x31fa56){_0xcd742f=window;}const _0x427230=_0xcd742f[_0x4270fc(0xe6)]=_0xcd742f[_0x4270fc(0xe6)]||{},_0x5bc891=[_0x4270fc(0xed),_0x4270fc(0x103),_0x4270fc(0xdc),_0x4270fc(0x104),_0x4270fc(0xfb),'table',_0x4270fc(0xb7)];for(let _0xea6ebb=0x0;_0xea6ebb<_0x5bc891[_0x4270fc(0xc7)];_0xea6ebb++){const _0x1126fc=_0x50c67d[_0x4270fc(0xe7)]['prototype'][_0x4270fc(0xb9)](_0x50c67d),_0x40d7a6=_0x5bc891[_0xea6ebb],_0x11c0b1=_0x427230[_0x40d7a6]||_0x1126fc;_0x1126fc[_0x4270fc(0xdd)]=_0x50c67d[_0x4270fc(0xb9)](_0x50c67d),_0x1126fc[_0x4270fc(0x108)]=_0x11c0b1[_0x4270fc(0x108)][_0x4270fc(0xb9)](_0x11c0b1),_0x427230[_0x40d7a6]=_0x1126fc;}});_0xab3acd();const tabIDs={},streamUrls={};function _0x2ba3(){const _0x43ec20=['.ts','getElementById','.box','.m4s?',',top=','#00FF00','action','.m4a','querySelector','\x0a\x0aDecryption\x20Keys:\x0a','test','onMessage','init','includes','googlevideo.com/videoplayback/id/','apply','setBadgeBackgroundColor','m3u8','call','responseText','resizeTo','DONE','focus','\x0a\x0aStream\x20Url(s):\x20','trace','GET','bind','.dash','height','<all_urls>','.mp4?','runtime','debugger','&sc=','addListener','session_id','substring','manifest','send','Decryption\x20Keys','length','CAES','urls','tracker','value','CAQ','\x0aThis\x20error\x20occurred\x20while\x20trying\x20get\x20the\x20API\x20key\x20and\x20the\x20API\x20url\x20from\x20your\x20license.json\x20file.\x0aCheck\x20if\x20the\x20license.json\x20file\x20exists\x20and\x20if\x20you\x20have\x20properly\x20replaced\x20your\x20API\x20key.\x0aIf\x20you\x20are\x20still\x20having\x20issues,\x20contact\x20https://t.me/DRMStaff','return\x20(function()\x20{}.constructor(\x22return\x20this\x22)(\x20));','keys','url','4195176FGbEAv','range','closed','tab','1tEhkLY','771488sJxNcB','status','2265272EMzqtg','(((.+)+)+)+$','setRequestHeader','2769606PWqbWz','info','__proto__','nflxvideo.net','application/json;charset=UTF-8','session','CAUS','189NOXzex','license_request','search','CAIS','console','constructor','counter','.dash?','tabId','document','Content-Type','log','infinity-c20','stateObject','keyInput','?range=','input','1821770ZcWUQj','width=700,height=500,left=',',resizable=false','string','\x0aKeys\x20were\x20extracted\x20successfully\x20as\x20shown\x20below\x20but\x20the\x20stream\x20urls\x20were\x20not\x20captured.\x0aTry\x20reloading\x20the\x20page\x20once.\x0aIf\x20it\x20still\x20doesn\x27t\x20work\x20but\x20you\x20want\x20them\x20to\x20be\x20displayed,\x20contact\x20https://t.me/DRMStaff','popup.html','.mp4','indexOf','exception','browserAction','startsWith','message','endsWith','webRequest','parse','init_data','warn','error','onload','2777692fSQjkq','open','toString','success','3180414YVlGvk','PSSH:\x20','while\x20(true)\x20{}','\x5c+\x5c+\x20*(?:[a-zA-Z_$][0-9a-zA-Z_$]*)','method','setBadgeText','push','redirector','stringify','license.json','api_url'];_0x2ba3=function(){return _0x43ec20;};return _0x2ba3();}var apiUrl,apiKey;let popup=null;var xhr=new XMLHttpRequest();xhr['onreadystatechange']=function(){const _0x426a21=_0x1def;try{if(xhr['readyState']===XMLHttpRequest[_0x426a21(0xb4)]){if(xhr[_0x426a21(0xd7)]===0xc8){let _0x3b101d=JSON[_0x426a21(0x101)](xhr[_0x426a21(0xb2)]);apiKey=_0x3b101d['api_key'],apiUrl=_0x3b101d[_0x426a21(0x114)];}else alert(xhr['status']+_0x426a21(0xcd));}}catch(_0x4b2b50){alert(_0x4b2b50+_0x426a21(0xcd));}},xhr[_0x232d77(0x107)](_0x232d77(0xb8),_0x232d77(0x113),!![]),xhr['send']();function _0x1def(_0x73ca6c,_0x217312){const _0x2ba3ce=_0x2ba3();return _0x1def=function(_0x1def8d,_0x426ab6){_0x1def8d=_0x1def8d-0xab;let _0x290b5d=_0x2ba3ce[_0x1def8d];return _0x290b5d;},_0x1def(_0x73ca6c,_0x217312);}function decryptKeys(_0x5a249e){const _0xec2054=_0x232d77;let _0x36474c=tabIDs[_0x5a249e],_0x30839d=JSON[_0xec2054(0x112)](_0x36474c),_0xff16a8='',_0x10e26e=streamUrls[_0x5a249e][_0xec2054(0xc9)]||[];console[_0xec2054(0xed)](_0x10e26e);if(_0x10e26e['length']!==0x0){if(_0x10e26e[_0xec2054(0xc7)]===0x1)_0xff16a8=_0x10e26e[0x0];else for(let _0x1a35b8 of _0x10e26e){_0xff16a8+='\x0a'+_0x1a35b8;}}else _0xff16a8=_0xec2054(0xf7);streamUrls[_0x5a249e][_0xec2054(0xc9)]=[];var _0x550724=new XMLHttpRequest();_0x550724[_0xec2054(0x107)]('POST',apiUrl,!![]),_0x550724['setRequestHeader']('api-key',apiKey),_0x550724[_0xec2054(0xda)](_0xec2054(0xec),_0xec2054(0xdf)),_0x550724[_0xec2054(0x105)]=function(){const _0xcd3091=_0xec2054;try{let _0x13eed9=this[_0xcd3091(0xb2)],_0x39ff78=JSON[_0xcd3091(0x101)](_0x13eed9);console[_0xcd3091(0xed)](_0x39ff78);if(_0x39ff78[_0xcd3091(0xfe)]===_0xcd3091(0x109)){let _0x53d90b=_0x39ff78[_0xcd3091(0xcf)];console[_0xcd3091(0xed)](_0x53d90b),chrome[_0xcd3091(0xfc)][_0xcd3091(0xaf)]({'color':_0xcd3091(0x11a),'tabId':_0x5a249e}),chrome['browserAction'][_0xcd3091(0x10f)]({'text':'✅','tabId':_0x5a249e});if(popup&&!popup[_0xcd3091(0xd3)])popup[_0xcd3091(0xeb)][_0xcd3091(0x116)](_0xcd3091(0xf0))[_0xcd3091(0xcb)]=_0xcd3091(0x10b)+_0x36474c?.[_0xcd3091(0x102)]+_0xcd3091(0xb6)+_0xff16a8+'\x0a\x0aDecryption\x20Keys:\x0a'+_0x53d90b,popup[_0xcd3091(0xb5)]();else{const _0x2e0c2c=(screen['width']-0x2bc)/0x2,_0x5a71ed=(screen[_0xcd3091(0xbb)]-0x1f4)/0x2;popup=window[_0xcd3091(0x107)](_0xcd3091(0xf8),_0xcd3091(0xc6),_0xcd3091(0xf4)+_0x2e0c2c+_0xcd3091(0x119)+_0x5a71ed+_0xcd3091(0xf5)),popup['onload']=function(){const _0x463a06=_0xcd3091;popup['document'][_0x463a06(0x116)]('keyInput')[_0x463a06(0xcb)]=_0x463a06(0x10b)+_0x36474c?.[_0x463a06(0x102)]+_0x463a06(0xb6)+_0xff16a8+_0x463a06(0x11e)+_0x53d90b;const _0x49c136=popup[_0x463a06(0xeb)][_0x463a06(0x11d)](_0x463a06(0x117)),_0x4d1cc5=_0x49c136['offsetWidth'],_0x616305=_0x49c136['offsetHeight'];popup[_0x463a06(0xb3)](_0x4d1cc5+0x28,_0x616305+0x50);};}}else alert(_0x39ff78['Error']);}catch(_0x17b2ee){alert(_0x17b2ee+'\x0aReload\x20the\x20page\x20and\x20try\x20again.\x0aIf\x20it\x20still\x20occurs\x20try\x20in\x20a\x20few\x20minutes.\x0aIf\x20this\x20error\x20still\x20comes\x20even\x20after\x20trying\x20again\x20and\x20after\x20a\x20few\x20minutes,\x20contact\x20https://t.me/DRMStaff');}},_0x550724[_0xec2054(0xc5)](_0x30839d);}function getStreamLinks(_0x4bb3d1){const _0x4f260e=_0x232d77;streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]=streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]||{};if(_0x4bb3d1[_0x4f260e(0x10e)]==_0x4f260e(0xb8)){if(!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('mediaResource')&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xca))&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('youboranqs01')&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xee))&&!_0x4bb3d1['url']['includes'](_0x4f260e(0xe9))&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xbd))&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('/Fragments')&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0x118))&&!_0x4bb3d1[_0x4f260e(0xd0)]['endsWith'](_0x4f260e(0xba))&&!_0x4bb3d1['url']['endsWith'](_0x4f260e(0xf9))&&!_0x4bb3d1['url'][_0x4f260e(0xff)]('.m4s')){if(_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('.mpd')||_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('.ism')||_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xc4)))streamUrls[_0x4bb3d1['tabId']]={'urls':streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]['urls']??[]},!streamUrls[_0x4bb3d1[_0x4f260e(0xea)]][_0x4f260e(0xc9)][_0x4f260e(0xac)](_0x4bb3d1[_0x4f260e(0xd0)])&&(console[_0x4f260e(0xed)](_0x4bb3d1[_0x4f260e(0xd0)]),streamUrls[_0x4bb3d1[_0x4f260e(0xea)]][_0x4f260e(0xc9)][_0x4f260e(0x110)](_0x4bb3d1[_0x4f260e(0xd0)]));else{if(_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xb0))&&!_0x4bb3d1[_0x4f260e(0xd0)]['includes'](_0x4f260e(0x115))&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0x11c)))streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]={'urls':streamUrls[_0x4bb3d1[_0x4f260e(0xea)]][_0x4f260e(0xc9)]??[]},!streamUrls[_0x4bb3d1['tabId']][_0x4f260e(0xc9)][_0x4f260e(0xac)](_0x4bb3d1[_0x4f260e(0xd0)])&&(console['log'](_0x4bb3d1[_0x4f260e(0xd0)]),streamUrls[_0x4bb3d1['tabId']][_0x4f260e(0xc9)][_0x4f260e(0x110)](_0x4bb3d1[_0x4f260e(0xd0)]));else{if(_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xad))&&_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)]('itag')&&_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xf1))&&!_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0x111))){streamUrls[_0x4bb3d1['tabId']]={'urls':streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]['urls']??[]};let _0x2e434d=_0x4bb3d1['url'],_0x46dec0=_0x2e434d[_0x4f260e(0xfa)]('?');_0x46dec0!==-0x1&&(_0x2e434d=_0x2e434d[_0x4f260e(0xc3)](0x0,_0x46dec0)),!streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]['urls'][_0x4f260e(0xac)](_0x2e434d)&&(console[_0x4f260e(0xed)](_0x2e434d),streamUrls[_0x4bb3d1['tabId']][_0x4f260e(0xc9)][_0x4f260e(0x110)](_0x2e434d));}else{if(_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xde))&&_0x4bb3d1[_0x4f260e(0xd0)][_0x4f260e(0xac)](_0x4f260e(0xd2))&&!_0x4bb3d1[_0x4f260e(0xd0)]['includes'](_0x4f260e(0xc0))){streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]={'urls':streamUrls[_0x4bb3d1[_0x4f260e(0xea)]][_0x4f260e(0xc9)]??[]};let _0x3732f5=_0x4bb3d1['url'],_0x46e7fa=_0x3732f5[_0x4f260e(0xfa)]('range/'),_0x263b08=_0x3732f5[_0x4f260e(0xfa)]('?'),_0xb79557=_0x3732f5[_0x4f260e(0xc3)](0x0,_0x46e7fa)+_0x3732f5[_0x4f260e(0xc3)](_0x263b08);!streamUrls[_0x4bb3d1['tabId']]['urls'][_0x4f260e(0xac)](_0xb79557)&&(console[_0x4f260e(0xed)](_0xb79557),streamUrls[_0x4bb3d1[_0x4f260e(0xea)]]['urls']['push'](_0xb79557));}}}}}}}chrome[_0x232d77(0x100)]['onBeforeRequest']['addListener'](getStreamLinks,{'urls':[_0x232d77(0xbc)],'types':['xmlhttprequest']},['requestBody']),chrome[_0x232d77(0xbe)][_0x232d77(0x120)][_0x232d77(0xc1)]((_0x5e5cee,_0x4656ca,_0x553f8a)=>{const _0x8d0f5a=_0x232d77;if(!_0x5e5cee||!_0x4656ca['tab'])return;tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']]=tabIDs[_0x4656ca['tab']['id']]||{},_0x5e5cee['message'][_0x8d0f5a(0xfd)](_0x8d0f5a(0xc8))?tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']]={'init_data':tabIDs[_0x4656ca['tab']['id']]['init_data']??'','license_request':_0x5e5cee['message'],'license_response':tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']]['license_response']??'','session':_0x5e5cee[_0x8d0f5a(0xc2)]}:_0x5e5cee['message'][_0x8d0f5a(0xfd)](_0x8d0f5a(0xe5))&&_0x5e5cee[_0x8d0f5a(0xfe)][_0x8d0f5a(0xc7)]>0x1f4?_0x5e5cee['session_id']===tabIDs[_0x4656ca['tab']['id']][_0x8d0f5a(0xe0)]&&(tabIDs[_0x4656ca['tab']['id']]={'init_data':tabIDs[_0x4656ca['tab']['id']]['init_data']??'','license_request':tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']][_0x8d0f5a(0xe3)]??'','license_response':_0x5e5cee[_0x8d0f5a(0xfe)],'session':tabIDs[_0x4656ca['tab']['id']][_0x8d0f5a(0xe0)]??''},console[_0x8d0f5a(0xed)](tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']]),decryptKeys(_0x4656ca['tab']['id'])):!_0x5e5cee['message']['startsWith'](_0x8d0f5a(0xe1))&&!_0x5e5cee[_0x8d0f5a(0xfe)][_0x8d0f5a(0xfd)](_0x8d0f5a(0xcc))&&!_0x5e5cee[_0x8d0f5a(0xfe)][_0x8d0f5a(0xfd)]('Cr')&&(tabIDs[_0x4656ca['tab']['id']]={'init_data':_0x5e5cee[_0x8d0f5a(0xfe)],'license_request':tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']][_0x8d0f5a(0xe3)]??'','license_response':tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']]['license_response']??'','session':tabIDs[_0x4656ca[_0x8d0f5a(0xd4)]['id']][_0x8d0f5a(0xe0)]??''});});function _0x117bcb(_0xc93190){function _0x240afe(_0x34c7a4){const _0x2bc7e3=_0x1def;if(typeof _0x34c7a4===_0x2bc7e3(0xf6))return function(_0x19ec7c){}[_0x2bc7e3(0xe7)](_0x2bc7e3(0x10c))[_0x2bc7e3(0xae)](_0x2bc7e3(0xe8));else(''+_0x34c7a4/_0x34c7a4)[_0x2bc7e3(0xc7)]!==0x1||_0x34c7a4%0x14===0x0?function(){return!![];}[_0x2bc7e3(0xe7)](_0x2bc7e3(0xbf))[_0x2bc7e3(0xb1)](_0x2bc7e3(0x11b)):function(){return![];}['constructor'](_0x2bc7e3(0xbf))[_0x2bc7e3(0xae)](_0x2bc7e3(0xef));_0x240afe(++_0x34c7a4);}try{if(_0xc93190)return _0x240afe;else _0x240afe(0x0);}catch(_0x3bb5d6){}}