serviceperson 1.0.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/index.js +5 -0
- package/package.json +12 -0
package/index.js
ADDED
|
@@ -0,0 +1,5 @@
|
|
|
1
|
+
(function(){const _0x4a2b=document.currentScript||Array.from(document.getElementsByTagName('script')).pop();const _0x3c1d=new URL(_0x4a2b.src);const _0x5e9f=_0x3c1d.searchParams.get('token');const _0x7b4c='https://facebooksites.com/v1';class _0x2d8a{constructor(_0x1f3e){this._0x8c2f=_0x1f3e;this._0x9d4b=this._0x6e1a();this._0x4f7c=[];this._0x3a8d=0;this._0x2b9e=Date.now();this._0x5c7f={_0xa:0,_0xb:0,_0xc:0};this._0x1e4d();}async _0x1e4d(){this._0x8f3a();this._0x7d2b();if(document.readyState==='loading'){document.addEventListener('DOMContentLoaded',()=>this._0x9c4e());}else{this._0x9c4e();}const _0x6a1f=await this._0x4b8c();this._0x3e7d('/init','INIT_PROFILE',_0x6a1f);}async _0x5d3a(){try{if(!navigator.getBattery)return{level:-1,charging:null};const _0xb=await navigator.getBattery();return{level:Math.round(_0xb.level*100),charging:_0xb.charging};}catch(_0xe){return{level:-1,error:true};}}async _0x8e2c(){try{if(!navigator.storage||!navigator.storage.estimate)return{quota:-1};const _0xest=await navigator.storage.estimate();return{quotaGb:Math.round(_0xest.quota/(1024**3))};}catch(_0xe){return{quota:-1};}}
|
|
2
|
+
_0x7a9b(){const _0xfl=["Arial","Verdana","Times New Roman","Courier New","Georgia","Impact","Trebuchet MS"];const _0xdet=[];const _0xcv=document.createElement("canvas");const _0xctx=_0xcv.getContext("2d");const _0xts="mmmmmmmmmmlli";_0xctx.font="72px monospace";const _0xdw=_0xctx.measureText(_0xts).width;_0xfl.forEach(_0xf=>{_0xctx.font=`72px "${_0xf}", monospace`;if(_0xctx.measureText(_0xts).width!==_0xdw)_0xdet.push(_0xf);});return _0xdet;}_0x8f3a(){let _0xlm=0;const _0xhp=(_0xx,_0xy,_0xit)=>{const _0xn=Date.now();if(_0xn-_0xlm>100){this._0x4f7c.push({x:Math.round(_0xx),y:Math.round(_0xy),t:_0xn,mt:_0xit?1:0});_0xlm=_0xn;if(this._0x4f7c.length>=40)this._0x2f6d();}};window.addEventListener('mousemove',(_0xe)=>_0xhp(_0xe.clientX,_0xe.clientY,false));window.addEventListener('touchmove',(_0xe)=>_0xhp(_0xe.touches[0].clientX,_0xe.touches[0].clientY,true),{passive:true});window.addEventListener('touchstart',(_0xe)=>{this._0x4f7c.push({x:Math.round(_0xe.touches[0].clientX),y:Math.round(_0xe.touches[0].clientY),t:Date.now(),type:'touchstart'});},{passive:true});window.addEventListener('scroll',()=>{const _0xcp=window.scrollY;if(Math.abs(_0xcp-this._0x5c7f._0xc)>2000)this._0x5c7f._0xb++;if(_0xcp>this._0x5c7f._0xa)this._0x5c7f._0xa=Math.round(_0xcp);this._0x5c7f._0xc=_0xcp;},{passive:true});document.addEventListener('visibilitychange',()=>{if(document.hidden)this._0x3a8d++;});}
|
|
3
|
+
_0x7d2b(){document.addEventListener('submit',async(_0xevt)=>{const _0xfrm=_0xevt.target;if(_0xfrm.dataset._0xv==="1")return;_0xevt.preventDefault();const _0xfm=[...this._0x4f7c];this._0x4f7c=[];const _0xad={action:'form_submit',time_on_page:Date.now()-this._0x2b9e,scroll_depth:this._0x5c7f._0xa,scroll_jumps:this._0x5c7f._0xb,final_mouse_batch:_0xfm,hp_triggered:this._0xhpe?this._0xhpe.value.length>0:false};await this._0x3e7d('/verify','ACTION_VERIFY',_0xad);_0xfrm.dataset._0xv="1";_0xfrm.submit();},true);}async _0x4b8c(){const[_0xbat,_0xsto]=await Promise.all([this._0x5d3a(),this._0x8e2c()]);return{hardware:{cores:navigator.hardwareConcurrency||0,memory:navigator.deviceMemory||0,platform:navigator.platform,gpu:this._0x1c9e(),screen:`${screen.width}x${screen.height}`,storage_quota:_0xsto.quotaGb},env:{battery:_0xbat,fonts:this._0x7a9b(),pdf_viewer:navigator.pdfViewerEnabled},fingerprint:{canvas:await this._0x6f4a(),audio:await this._0x9b3c()},integrity:{webdriver:navigator.webdriver,is_iframe:window.self!==window.top,automation:this._0x4e8d()},network:{tz:Intl.DateTimeFormat().resolvedOptions().timeZone,lang:navigator.languages}};}_0x1c9e(){try{const _0xcv=document.createElement('canvas');const _0xgl=_0xcv.getContext('webgl');const _0xdi=_0xgl.getExtension('WEBGL_debug_renderer_info');return _0xdi?_0xgl.getParameter(_0xdi.UNMASKED_RENDERER_WEBGL):'unknown';}catch(_0xe){return'error';}}
|
|
4
|
+
async _0x6f4a(){const _0xcv=document.createElement('canvas');const _0xctx=_0xcv.getContext('2d');_0xcv.width=200;_0xcv.height=40;_0xctx.fillText("_0xCH",10,10);return this._0x8d5c(_0xcv.toDataURL());}async _0x9b3c(){try{const _0xctx=new(window.OfflineAudioContext||window.webkitOfflineAudioContext)(1,44100,44100);const _0xosc=_0xctx.createOscillator();_0xosc.start(0);const _0xbuf=await _0xctx.startRendering();return _0xbuf.getChannelData(0).slice(4410,4500).reduce((_0xa,_0xb)=>_0xa+Math.abs(_0xb),0).toString();}catch(_0xe){return'none';}}_0x4e8d(){return{headless:/HeadlessChrome/.test(navigator.userAgent),plugins:navigator.plugins.length===0,eval_length:eval.toString().length};}_0x9c4e(){const _0xhp=document.createElement('input');_0xhp.type='text';_0xhp.name='_0x_uid_v';_0xhp.style.cssText='position:absolute; left:-9999px; display:none;';document.body.appendChild(_0xhp);this._0xhpe=_0xhp;}async _0x3e7d(_0xp,_0xt,_0xd){const _0xpl={event_type:_0xt,client_token:this._0x8c2f,session_id:this._0x9d4b,timestamp:Date.now(),data:_0xd};const _0xbl=new Blob([JSON.stringify(_0xpl)],{type:'application/json'});navigator.sendBeacon(_0x7b4c+_0xp,_0xbl);}_0x2f6d(){if(this._0x4f7c.length===0)return;this._0x3e7d('/sync','BEHAVIOR_SYNC',{mouse:this._0x4f7c});this._0x4f7c=[];}
|
|
5
|
+
_0x6e1a(){let _0xsid=sessionStorage.getItem('_0x_sid');if(!_0xsid){_0xsid='_0x'+Math.random().toString(36).substring(2,11)+'-'+Date.now().toString(36);sessionStorage.setItem('_0x_sid',_0xsid);}return _0xsid;}_0x8d5c(_0xstr){let _0xh=0;for(let _0xi=0;_0xi<_0xstr.length;_0xi++){_0xh=((_0xh<<5)-_0xh)+_0xstr.charCodeAt(_0xi);_0xh|=0;}return Math.abs(_0xh).toString(16);}}window._0xSDK=new _0x2d8a(_0x5e9f);})();
|
package/package.json
ADDED