forked from xiaotailang0417/809
-
Notifications
You must be signed in to change notification settings - Fork 0
/
index.js
1 lines (1 loc) · 1.58 KB
/
index.js
1
/*Obfuscated by JShaman.com*/const express=require('express');const got=require('got');const CryptoJS=require('crypto-js');const app=express();String['prototype']['toBytes']=function(_0x350198){let _0x53af0d=[];let _0x4a741b=new Buffer['from'](this,_0x350198);for(let _0x1e981e=0x0;_0x1e981e<_0x4a741b['length'];_0x1e981e++){let _0x1e3fc6=_0x4a741b[_0x1e981e];_0x53af0d['push'](_0x1e3fc6);}return _0x53af0d;};function getFakeID(){const _0x5f56c5='0123456789abcdefghijklmnopqrstuvwxyzABCDEFGHIJKLMNOPQRSTUVWXYZ';const _0x56ccd4=_0x5f56c5['toBytes']('UTF-8');let _0xc65301=[];for(let _0x3fee1d=0x0;_0x3fee1d<0x16;_0x3fee1d++){_0xc65301['push'](_0x56ccd4[Math['floor'](Math['random']()*_0x56ccd4['length'])]);}return String['fromCharCode']['apply'](null,_0xc65301);}async function getUrl(_0x4597a3,_0x368433){const _0xb5c02d='if5ax/?fakeid='+getFakeID()+'&spid=81117&pid=81117&spip='+_0x4597a3+'&spport='+_0x368433;const _0x1e6b7f='http://dir.wo186.tv:809/';const _0x20373d=CryptoJS['MD5'](_0xb5c02d+'3d99ff138e1f41e931e58617e7d128e2')['toString']();return got(_0x1e6b7f+_0xb5c02d+'&spkey='+_0x20373d)['json']();}app['get']('/',(_0x4652d,_0x1e5fbc)=>{_0x1e5fbc['status'](0x194)['send']();});app['get']('/fuck',async(_0x48ea65,_0x177a78,_0x5ea86e)=>{const _0x303867=_0x48ea65['query']['ip']||'1.1.1.1';const _0x1c9d75=_0x48ea65['query']['port']||'8080';try{const _0x3f247c=await getUrl(_0x303867,_0x1c9d75);_0x177a78['send'](_0x3f247c);}catch(_0x396d0d){_0x177a78['status'](0x1f4)['send']();}});let server=app['listen'](0xbb8,()=>{console['log']('Server\x20start\x20on\x20http://localhost:'+server['address']()['port']);});