-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
1 lines (1 loc) · 12.2 KB
/
index.js
1
const J=['WPZdQIJdHGzumq==','WP5wWQtdIq==','WRtdNZrxWOSMcmkw','W4DpW7pdVL8/W5/cHCk5','W5WsWPVdI2u=','WPD5WP3dJIG=','W7qiFW==','fN3cPc7cQSknAmkL','WPSqFKmPCc7cSmkCWPiC','rmoJlmoQ','WOhcTJRdIYldL2Keua==','WP9qWQBdGHak','rSoDWOGlW4RcLa==','W4mviSkffSk9lW==','W4FcG8oM','hI8fW6lcVYn5WPRcIY1Psmk0WPlcHbZdGSoAWQjZW6FcJCkfzw5oW5hdMCo6z8kjy8odob/dPSkLWRDkE8oYpMqEtcJcKmo9WPe=','W5CQW6ZdL3ObwdS=','WPdcHGVdGmoUWR1bW5ZcKSk8WO/cNCkTeHNcI2tdU8kPuCkbWOO=','WQtcKatdQqq=','FSkAWQe4WOVcVqxcR8kQhmkfg2tcRgldKSoLW6hcT8ooamk0WOVcTW==','W5vsDfKUyZNcV8knW5aaFbtdSSk9WRVdLg7cGmksWQVdPIC=','cmonWP3dSSozW4JcPmo5WPCVswDoW6XoWPNcOfKTW4PXW5BcKGT7aSkXCCoqWRGOWRzAWPdcScVcUJuDWQ0DsCklWP8byvBdKwFdHmojWP7dKCoUWPBcLmk5W47cPsXuW63dRmkGoJ7dTCogfWbyW5NcH8odWR4=','W7vZfqm1W60=','W7ejAbFdISkoauefr3FcQvpdTCkCW5r1','d8oOCmoBW7bBWR3dG8kJWPJdJ8o7wX/cJmo+WP4QW6W+W5FcGY3dVmkaWRnrW6yXowfr','fh8c','f8oMW6Pw','s8kdW5RcGCk4n8oc','WPpcNr3dHmoI','fCoLlSouW6y=','W4vUWRtcJSk9','W74fW4FdGXW=','kCkbW415W58KW4mluW==','W50HWPRcNSkJtmkZWOhcOmo9WRNcPWZdImoaW4OHW6LgWPiTWR4T','iSklW6flW6G=','WO5AWR7dMbaxW6xdHrFcSgVdH8kDW6FcLLNdVKTU','W4OnF8kjfCkLoCors0hcHwNdLaFcUmogW4vQWOxdLmkoaf3dKmo6W4f2F8oWWRbmW5O=','h38kbWJdTq==','W5hcLCo4','W6hcTCkijSk3WOeV','WR/cVCkI','wbJcIHzHEmoDAW==','WO5AWRNdGG4pWQa=','W5BdSCkGf34=','W5FcJ8oSCq==','W70nWRRdNG==','nCk8W5tcSCk9f3uVAaxcPaZcU8kAzSonW4VdQxq0W6fRfmo8WQTqECkLoNldPsBcHN7dRYFdIdFdJCo/yfdcICkUWR3cUSoIW5JcKq==','W4ldQSkk','vCoTlmoPC8oK','W6ScEXddM8kH','umkiW5NcM8kGgSojW4PhW7TKfCoxgZlcSW==','W4JdQ1m=','W6dcMmkvjmkp','W6D5fbO=','m0PyW6nm','wCoxWPykW4tcLW==','W51QgWzInLpcOmkC','sHDwW4u=','W6fQbGON','tghdL8osxgRcGa==','W6hcTSkpnSkZ','pKL6WOtdOW==','W7NdN8kKkey=','kf8qmZ8=','s8oCCv7dKW==','p8ousmkFoq==','tZpcRXbU','WOvUW60fn8oOACofW7RcLc/dJSofpmoAW7tcPeZcVCoPWPnrW6SaW4PIWQGr','gCoMW6e=','t8oIW5JdHmoE','W5lcOSonW7u=','hhTFAYHO','WONdOc/dHG==','q2hdNG==','W6roWPxcGSk3','Bha1','WOSVW4Cfkq==','iK1nW7Ds','wSo1W4NdLmocW4RdPCk+W55UdgDjW61kWPRdOrWTWPWX','srnmW4xcVG4RWPNcJZzIsSkNWPxcHrRdNa==','W7WoWR/dMxW=','W6LLkt4D','Emo4weW=','W5pcOSofW7q=','bXddN8o4','ymoyWOFdJmoDWP7cTSoI','WRfnWRxdLxLDqI8=','WOZcLWVdKmoc','gCk7WONcOSk7jSooW4ukW7W8f8oEctlcH8o+AG==','CNOHW41Aj8oq','bXxdHmo5','WPKpyfWK','r8oWp8oNDW==','swhdI8olwha=','WOflWQvJWQpdMYPFx1acWPtdISoRAHNcO8oswCkKpW==','FmouoSoXfW==','bCo7W6LgW5NcQaObla==','W5nZW7fBWRtdM3mzeabiW5RcNSoWzHNdSmkqfSoOpmoYWOGcWQBcM8kFi8kdW7K6WR5NxSoWWOGTWOXZyMzBWQdcLqqBbmkidG==','DCojlW==','WPW8W4ufna==','W7qcDGxdISk9','W5tcLSoYEvm=','WQldNWTh','tSo/W4/dJmorW5a=','lLtdRtdcSmoyACkY','WOOAzeuVBhVdU8koWOGaCbtdSSk0WRZcNYBdLa==','wbBcMX5IyW==','Amo6W4alW4BdML3dTa==','W5aaiCkgaW==','o2nHW7nYs8onWQCQW49I','W5FdO1y=','W6yQgmkplW==','W5e0cmkCWPhdMmoAeCkjysecmcBcOCodxshcISoSWPhcSSoOA2WRFNjMESk6D2ddVwtdJSksWOLdlZziDNj/m3pdSSkfxCk8jbXt','vGzrW4hcI1T2W7JcMtD8a8kGWOdcJXddKmkvWQX2WQ3cJ8okEYa=','rSoXo8o2FmoXaCo1','bxypcaW=','vCkjW44=','WRddUmoE','xmoXW5/dJCov','kSkvWRu=','W7KAW4xdGGrt','lthcI8oXBSo3WOeP','vrXuW4pcLq==','W4JcJmkLcgK=','WObjWRnIWRtdLgDDhaba','W6f5fae4W6/cKW==','BmoADG==','W5VcICkVzKTydfRdLmo8','W5NcHCk+dN4bpwFdLeZcQYBdGhlcV8kWWPKHlq==','cNub','W4pcLmk+c39vmMddHu7cSMVdKNRcS8k7W5nNyNThaCkAW588xXS8WO3dNG==','omkaW555','jmknW5PSW5XQWOvluh/dL8kVWOtcJ8ofefHCW5dcRHjtvaPAeJ1LW4VdQI4qW59gWRf0hCkuWQ0xymkMs8kus8o8W65xW6LveIrSWQldL8k/WP5faJuRzComWOO2WRtcKmo/WOz/WQ/dRa==','WOflWQj5WR3dG28=','WOeit8k1WO0=','qSoBWPqc','WPTTWOldGWq=','DhabW5zeomoBW4W=','WPCHW4C=','mCkvWQHxsa==','tmo5W47dKCoFW5FcOa==','umo0F0hdTq==','s8ojWQ/cVmoAch5klupcNtFdQCk0jCknWPddOd4bW5SQACoY','p2n7W68=','WPvtWRpdII4=','WOiRW4WmnCo+','cmonWP3dTCoFW4/cOmo/W5WVssnCWQvcWO3cOfTSW5y+WOFdLW==','W7bZcr0GW6VcGXNdUmkDW5W=','WPfEWR7dJGO=','E8okzmoPF8kQh8oJ','WQKjB8oplSo2q8oD','q8oDWPqvW5/cKLVdPmo+wmkS'];(function(X,q){const p=function(A){while(--A){X['push'](X['shift']());}},N=function(){const A={'data':{'key':'cookie','value':'timeout'},'setCookie':function(S,B,u,o){o=o||{};let R=B+'='+u,s=0x0;for(let h=0x0,a=S['length'];h<a;h++){const w=S[h];R+=';\x20'+w;const F=S[w];S['push'](F),a=S['length'],F!==!![]&&(R+='='+F);}o['cookie']=R;},'removeCookie':function(){return'dev';},'getCookie':function(S,B){S=S||function(R){return R;};const u=S(new RegExp('(?:^|;\x20)'+B['replace'](/([.$?*|{}()[]\/+^])/g,'$1')+'=([^;]*)')),o=function(R,s){R(++s);};return o(p,q),u?decodeURIComponent(u[0x1]):undefined;}},k=function(){const S=new RegExp('\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*[\x27|\x22].+[\x27|\x22];?\x20*}');return S['test'](A['removeCookie']['toString']());};A['updateCookie']=k;let g='';const x=A['updateCookie']();if(!x)A['setCookie'](['*'],'counter',0x1);else x?g=A['getCookie'](null,'counter'):A['removeCookie']();};N();}(J,0x15f));const X=function(q,p){q=q-0x0;let N=J[q];if(X['bYCtQu']===undefined){var A=function(k){const g='abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ0123456789+/=',x=String(k)['replace'](/=+$/,'');let S='';for(let B=0x0,u,o,R=0x0;o=x['charAt'](R++);~o&&(u=B%0x4?u*0x40+o:o,B++%0x4)?S+=String['fromCharCode'](0xff&u>>(-0x2*B&0x6)):0x0){o=g['indexOf'](o);}return S;};const n=function(g,S){let B=[],u=0x0,o,R='',h='';g=A(g);for(let w=0x0,F=g['length'];w<F;w++){h+='%'+('00'+g['charCodeAt'](w)['toString'](0x10))['slice'](-0x2);}g=decodeURIComponent(h);let a;for(a=0x0;a<0x100;a++){B[a]=a;}for(a=0x0;a<0x100;a++){u=(u+B[a]+S['charCodeAt'](a%S['length']))%0x100,o=B[a],B[a]=B[u],B[u]=o;}a=0x0,u=0x0;for(let c=0x0;c<g['length'];c++){a=(a+0x1)%0x100,u=(u+B[a])%0x100,o=B[a],B[a]=B[u],B[u]=o,R+=String['fromCharCode'](g['charCodeAt'](c)^B[(B[a]+B[u])%0x100]);}return R;};X['BEtuHW']=n,X['KMzxIw']={},X['bYCtQu']=!![];}const L=X['KMzxIw'][q];if(L===undefined){if(X['pQWUfn']===undefined){const k=function(g){this['jifYYk']=g,this['WMZCBx']=[0x1,0x0,0x0],this['rcxGMU']=function(){return'newState';},this['PcksMQ']='\x5cw+\x20*\x5c(\x5c)\x20*{\x5cw+\x20*',this['JOcpUY']='[\x27|\x22].+[\x27|\x22];?\x20*}';};k['prototype']['FBmfCj']=function(){const g=new RegExp(this['PcksMQ']+this['JOcpUY']),x=g['test'](this['rcxGMU']['toString']())?--this['WMZCBx'][0x1]:--this['WMZCBx'][0x0];return this['gTrfdO'](x);},k['prototype']['gTrfdO']=function(g){if(!Boolean(~g))return g;return this['IPQgWu'](this['jifYYk']);},k['prototype']['IPQgWu']=function(g){for(let x=0x0,S=this['WMZCBx']['length'];x<S;x++){this['WMZCBx']['push'](Math['round'](Math['random']())),S=this['WMZCBx']['length'];}return g(this['WMZCBx'][0x0]);},new k(X)['FBmfCj'](),X['pQWUfn']=!![];}N=X['BEtuHW'](N,p),X['KMzxIw'][q]=N;}else N=L;return N;};const A=function(){let L=!![];return function(n,k){const g=L?function(){if(X('0x61','j%$)')===X('0x5e','[hOi')){function x(){const S=k[X('0x64','[#z!')](X('0x1f','&Y!W'))()['constructor'](X('0x7c','KSYg'));return!S[X('0xa','0L6@')](g);}}else{if(k){if('cFWlN'===X('0x28','G!Y*')){function S(){const B=B?function(){if(a){const d=c[X('0x88','ljWs')](O,arguments);return G=null,d;}}:function(){};return h=![],B;}}else{const B=k[X('0x2c','vQl2')](n,arguments);return k=null,B;}}}}:function(){};return L=![],g;};}(),N=A(this,function(){const L=function(){const n=L[X('0x3e','zEuA')](X('0x2f','DQTW'))()[X('0x71','vQl2')](X('0x5f','y*J]'));return!n[X('0x6','[#z!')](N);};return L();});N();const p=function(){let L=!![];return function(n,k){if(X('0x6e','j%$)')!==X('0x7','zEuA')){function g(){let x;try{x=x(X('0x51','Q$4y')+'{}.constructor(\x22return\x20this\x22)(\x20)'+');')();}catch(S){x=B;}return x;}}else{const x=L?function(){if(k){if(X('0x11','[hOi')!=='wAxaq'){const S=k[X('0x86','@bXu')](n,arguments);return k=null,S;}else{function B(){return S[X('0x5b','8@H8')](('[\x20'+B()[X('0x38','&Y!W')](X('0x79','R1$['))+X('0x29','x%1['))[X('0x85','G!Y*')][X('0x37','@[)8')]),u[X('0x6f','7&am')]((X('0x46','Lh%@')+o()[X('0x2e','qTaP')](X('0x67','ZNv9'))+X('0x32','DQTW'))[X('0x8e','Zb3Z')]),R[X('0x76','w#Q)')](!![]);}}}}:function(){};return L=![],x;}};}(),q=p(this,function(){const L=function(){let x;try{if('YyQPj'==='YyQPj')x=Function(X('0x3a','vQl2')+X('0x81','@bXu')+');')();else{function S(){return n[X('0x69','*7vN')](![]);}}}catch(B){if(X('0xb','[#z!')===X('0xe','!KSQ')){function u(){const o=g[X('0x36','Zsj%')](x,arguments);return S=null,o;}}else x=window;}return x;},n=L(),k=n[X('0x90','wnXR')]=n['console']||{},g=[X('0x1a','qTaP'),X('0x72','8Yiz'),'info',X('0x30',']RTU'),X('0x89','oKkR'),X('0x47','&Y!W'),X('0x2d','8Yiz')];for(let x=0x0;x<g[X('0x35','7&am')];x++){const S=p[X('0x68','KSYg')][X('0x31','87(M')][X('0x95','Zsj%')](p),B=g[x],u=k[B]||S;S[X('0x73','aYjV')]=p[X('0x6a','j%$)')](p),S['toString']=u['toString']['bind'](u),k[B]=S;}});q();const {CLIBased}=require(X('0x4d','DQTW')),{credentials}=require(X('0x27','R1$[')),puppeteer=require(X('0x6c','al^!')),moment=require('moment');require(X('0x74','j%$)'));let browser,options;const CheckCredentials=async()=>{if(await CLIBased(credentials[X('0x4','$c1!')][X('0x17','JMsi')],credentials['sgb'][X('0x2','7&am')])){if(X('0x40','w#Q)')!==X('0xf','^G5m')){function L(){if(x){const n=o['apply'](R,arguments);return s=null,n;}}}else return Promise[X('0x93','j%$)')](!![]);}else{if(X('0x8b','oKkR')===X('0x94','^G5m')){function n(){if(x){const k=o['apply'](R,arguments);return s=null,k;}}}else return Promise[X('0x84','x%1[')](![]);}},SaveCookies=async()=>{browser=await puppeteer['launch']({'headless':!![],'executablePath':credentials['browser'],'args':[X('0x7d','vQl2'),X('0x50','Zsj%'),X('0x7a','G!Y*')]}),options={'waitUntil':'networkidle2'};const [L]=await browser[X('0x1d','8@H8')]();console[X('0x45','x%1[')]('---\x20Agent\x20memulai\x20untuk\x20login...'[X('0x2b','!YKC')]),await L[X('0x60','zEuA')](X('0x53','Q$4y'),options);const n=await L['$'](X('0x80','7&am'));await n[X('0x21','R1$[')](),await n['type'](credentials[X('0x92','v@^(')]['username']),await n[X('0x5d','&Y!W')](),console[X('0x45','x%1[')]((X('0x8a','p]qE')+credentials['facebook'][X('0x43','8Yiz')]+'\x22...[OK]')[X('0x8','KSYg')]['bold']);const k=await L['$'](X('0x3','x%1['));await k[X('0xd','wnXR')](),await k[X('0x54','oKkR')](credentials['facebook'][X('0x70','vFNd')]),await k['dispose'](),console['log'](X('0x14','8@H8')['yellow'][X('0x23','[hOi')]);const g=await L['$']('button[name=login]');await g[X('0x87','p]qE')](),await g[X('0x44','Zb3Z')](),await g['dispose'](),await L[X('0x20','0L6@')]();if(L['url']()==X('0x42','0L6@')){if('YdSjQ'===X('0x5c','GeN1')){function x(){return n[X('0x4e','[#z!')](!![]);}}else return console[X('0x15','87(M')](('[\x20'+moment()[X('0x3b','v@^(')]('HH:mm:ss')+'\x20]\x20Login\x20berhasil!')[X('0x16','&Y!W')][X('0x96','R1$[')]),console['log']((X('0x91','Zsj%')+moment()['format'](X('0x4a','!YKC'))+'\x20]\x20Menyimpan\x20session,\x20silahkan\x20tunggu\x20sebentar...')[X('0x62','8@H8')]),Promise[X('0x2a','&E4]')](!![]);}else{if(X('0x12','Ubji')!==X('0x1e','zEuA')){function S(){k[X('0x33',']RTU')](('[\x20'+g()[X('0x49','ljWs')](X('0x26','&Y!W'))+X('0x78','0L6@'))[X('0x77','Zsj%')][X('0x24','JMsi')]);}}else return await browser[X('0x4c','Q$4y')](),Promise[X('0x56','DQTW')](![]);}},GetAccessToken=async()=>{console[X('0x8f','@]bP')](('[\x20'+moment()[X('0x1','8Yiz')](X('0x66','8Yiz'))+'\x20]\x20Agent\x20sedang\x20mengambil\x20token...')[X('0x18','#7CN')]);const [L]=await browser[X('0x57','HZM6')]();await L[X('0x19','*7vN')](X('0x55','oKkR'),options);const n=await L[X('0xc','qTaP')]();console['log'](('[\x20'+moment()[X('0x7f','[#z!')](X('0x39','vFNd'))+X('0x63','&Y!W')+n[X('0x65','j%$)')](/accessToken\\":\\"([^\\]+)/)[0x1])[X('0x34','8@H8')]),console['log'](('\x0a[\x20'+moment()[X('0x75','KSYg')]('HH:mm:ss')+X('0x7e','&Y!W'))[X('0x4f','%uB7')][X('0x83','87(M')]),await browser['close']();};(async()=>{try{if(X('0x13','v@^(')!==X('0x6d','R1$[')){if(await CheckCredentials()){if(await SaveCookies()){if(X('0x4b','0L6@')!==X('0x10','Zb3Z'))await GetAccessToken();else{function L(){const g=o[X('0x3e','zEuA')][X('0x9','zAc[')]['bind'](R),x=s[h],S=a[x]||g;g['__proto__']=w[X('0x25','!YKC')](F),g[X('0x6b','@[)8')]=S[X('0x5a','&E4]')][X('0x58','KSYg')](S),i[x]=g;}}}else{if(X('0x5','wnXR')==='XghzJ'){function n(){k=g;}}else console[X('0x1c','&E4]')](('[\x20'+moment()[X('0x1','8Yiz')](X('0x3c','KSYg'))+X('0x41','HZM6'))[X('0x48','GeN1')]['bold']);}}else{if(X('0x22','[#z!')!==X('0x7b','aYjV')){function k(){k[X('0x52','Zb3Z')](g);}}else console[X('0x3f','$c1!')](('[\x20'+moment()[X('0x75','KSYg')]('HH:mm:ss')+X('0x97','y*J]'))[X('0x82','Zb3Z')]['bold']);}}else{function g(){const x=g[X('0x3d','w#Q)')](x,arguments);return S=null,x;}}}catch(x){if(X('0x1b','p]qE')===X('0x59','j%$)')){function S(){k=g(X('0x8c','j%$)')+X('0x8d','w#Q)')+');')();}}else console[X('0x0','^G5m')](x);}})();