-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathconsole.min.js
41 lines (39 loc) · 7.6 KB
/
console.min.js
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
"use strict";
{
/*!
* Console Protector By Zero_One (Angelshadow2017)
* version 1.0.0
* http://pvz4.lonelystar.org/1779pvz/
*/
//提示 Tips
var tips = "请输入密码~";
//Chinese:
//密钥和密文请base64,rc4加密后再写成xxxx[|_ZeTroXOnLeJM_|]xxxx的格式(密钥[|_ZeTroXOnLeJM_|]密文)【啊这当然自己写也是可以的】(笑)
/*示例:
秘钥:ecl --base64--> ZWNs
密文:啊这 --rc4--> 啊违
*/
//English:
//The key and ciphertext should be encrypted with Base64 and RC4, and then written as xxxx[|_ZeTroXOnLeJM_|]xxxx (key [|_ZeTroXOnLeJM_|] ciphertext) [ah, of course, you can write it yourself] (laughter)
/*e.g. :
Key: ecl --base64--> ZWNs
Ciphertext: 啊这 --rc4--> 啊违
*/
//password = "key[|_ZeTroXOnLeJM_|]Ciphertext"
var password = "ZWNs[|_ZeTroXOnLeJM_|]啊违";//密码 password
var config = {
Debugger:false,//封禁的时候开debugger Use debugger when banned console
Ban_Elements:false,//封禁审查元素 Ban inspect elements
Ban_Console_Open:false,//封禁控制台打开 Block console open
Ban_Copy:false,//封禁复制/右键/选择 Block copy / right click / select
Ban_F12:false,//封禁F12(仅仅是这个键而以) Ban F12 (It's just this key)
Ban_With_Size:false,//在改变页面大小的时候封禁(仅限于侧栏控制台) Ban With changing page size
Use_Users_Password:false,//用用户自己的密码格式(传入password必须是明文) Use the user's own password format (the password passed in must be clear text)
};
function windowClose(){
//输入密码窗口关闭的函数
window.close();
location.href="about:blank";
}
var __encode = atob("c29qc29uLmNvbQ=="),_a={}, _0xb483=["\x5F\x64\x65\x63\x6F\x64\x65","\x68\x74\x74\x70\x3A\x2F\x2F\x77\x77\x77\x2E\x73\x6F\x6A\x73\x6F\x6E\x2E\x63\x6F\x6D\x2F\x6A\x61\x76\x61\x73\x63\x72\x69\x70\x74\x6F\x62\x66\x75\x73\x63\x61\x74\x6F\x72\x2E\x68\x74\x6D\x6C"];(function(_0xd642x1){_0xd642x1[_0xb483[0]]= _0xb483[1]})(_a);var __Ox8bb27=["\x6F\x75\x74\x65\x72\x57\x69\x64\x74\x68","\x69\x6E\x6E\x65\x72\x57\x69\x64\x74\x68","\x6F\x6E\x72\x65\x73\x69\x7A\x65","\x44\x45\x56\x45\x4C\x4F\x50\x45\x52","\x6C\x6F\x63\x61\x6C\x53\x74\x6F\x72\x61\x67\x65","\x42\x61\x6E\x5F\x43\x6F\x70\x79","\x6F\x6E\x63\x6F\x70\x79","\x62\x6F\x64\x79","\x6F\x6E\x63\x6F\x6E\x74\x65\x78\x74\x6D\x65\x6E\x75","\x6F\x6E\x73\x65\x6C\x65\x63\x74\x73\x74\x61\x72\x74","\x6F\x6E\x6D\x6F\x75\x73\x65\x64\x6F\x77\x6E","\x42\x61\x6E\x5F\x45\x6C\x65\x6D\x65\x6E\x74\x73","\x70\x6F\x69\x6E\x74\x65\x72\x72\x61\x77\x75\x70\x64\x61\x74\x65","\x61\x64\x64\x45\x76\x65\x6E\x74\x4C\x69\x73\x74\x65\x6E\x65\x72","\x42\x61\x6E\x5F\x46\x31\x32","\x6F\x6E\x6B\x65\x79\x64\x6F\x77\x6E","\x77\x68\x69\x63\x68","\x6B\x65\x79\x43\x6F\x64\x65","\x72\x65\x74\x75\x72\x6E\x56\x61\x6C\x75\x65","\x63\x72\x65\x61\x74\x65","\x6E\x6F\x77","\x61","\x64\x65\x66\x69\x6E\x65\x50\x72\x6F\x70\x65\x72\x74\x79","\x64\x65\x62\x75\x67\x67\x65\x72","\x63\x6F\x6E\x73\x74\x72\x75\x63\x74\x6F\x72","\x6C\x6F\x67","\x44\x4F\x4D\x43\x6F\x6E\x74\x65\x6E\x74\x4C\x6F\x61\x64\x65\x64","\x42\x61\x6E\x5F\x43\x6F\x6E\x73\x6F\x6C\x65\x5F\x4F\x70\x65\x6E","\x44\x65\x62\x75\x67\x67\x65\x72","\x42\x61\x6E\x5F\x57\x69\x74\x68\x5F\x53\x69\x7A\x65","\x74\x72\x75\x65","\x64\x69\x76","\x63\x72\x65\x61\x74\x65\x45\x6C\x65\x6D\x65\x6E\x74","\x69\x64","\x6C\x65\x6E\x67\x74\x68","\x63\x68\x61\x72\x43\x6F\x64\x65\x41\x74","\x66\x72\x6F\x6D\x43\x68\x61\x72\x43\x6F\x64\x65","","\x6A\x6F\x69\x6E","\x55\x73\x65\x5F\x55\x73\x65\x72\x73\x5F\x50\x61\x73\x73\x77\x6F\x72\x64","\x5B\x7C\x5F\x5A\x65\x54\x72\x6F\x58\x4F\x6E\x4C\x65\x4A\x4D\x5F\x7C\x5D","\x73\x70\x6C\x69\x74","\x70\x72\x6F\x6D\x70\x74","\x66\x61\x6C\x73\x65","\x75\x6E\x64\x65\x66\x69\x6E\x65\x64","\u5220\u9664","\u7248\u672C\u53F7\uFF0C\x6A\x73\u4F1A\u5B9A\u671F\u5F39\u7A97\uFF0C","\u8FD8\u8BF7\u652F\u6301\u6211\u4EEC\u7684\u5DE5\u4F5C","\x73\x6F\x6A\x73","\x6F\x6E\x2E\x63\x6F\x6D"];function Ban_When_StartF(){var _0xfe96x2=(_0xfe96x3)=>{if(window[__Ox8bb27[0x0]]- window[__Ox8bb27[0x1]]>= 200){pass()}};_0xfe96x2();window[__Ox8bb27[0x2]]= _0xfe96x2}var n=document,o=window,t=o[__Ox8bb27[0x4]][__Ox8bb27[0x3]],e=function(o){if(config[__Ox8bb27[0x5]]){n[__Ox8bb27[0x7]][__Ox8bb27[0x6]]= n[__Ox8bb27[0x7]][__Ox8bb27[0x8]]= n[__Ox8bb27[0x8]]= n[__Ox8bb27[0x9]]= n[__Ox8bb27[0xa]]= function(){return o}};if(!o){if(config[__Ox8bb27[0xb]]){document[__Ox8bb27[0xd]](__Ox8bb27[0xc],function _0xfe96x8(){return false})};if(config[__Ox8bb27[0xe]]){document[__Ox8bb27[0xf]]= function _0xfe96x9(e){e= e[__Ox8bb27[0x10]]|| e[__Ox8bb27[0x11]];if(e== 123){return false;e[__Ox8bb27[0x12]]= false}}}}};function observerConsole(){var _0xfe96xb=Object[__Ox8bb27[0x13]](null),t=Date[__Ox8bb27[0x14]]();Object[__Ox8bb27[0x16]](_0xfe96xb,__Ox8bb27[0x15],{get:function(){if(Date[__Ox8bb27[0x14]]()- t> 100){pass()}}});setInterval(function(){t= Date[__Ox8bb27[0x14]]();(function(){})[__Ox8bb27[0x18]](__Ox8bb27[0x17])();console[__Ox8bb27[0x19]](_0xfe96xb[__Ox8bb27[0x15]])},200)}!function(){n[__Ox8bb27[0xd]](__Ox8bb27[0x1a],function(){if(config[__Ox8bb27[0x1b]]){createPassWord()};if(config[__Ox8bb27[0x1c]]){observerConsole()};if(config[__Ox8bb27[0x1d]]){Ban_When_StartF()};t&& __Ox8bb27[0x1e]=== t|| e(!1)})}();function createPassWord(){var _0xfe96xd=document[__Ox8bb27[0x20]](__Ox8bb27[0x1f]);console[__Ox8bb27[0x19]](_0xfe96xd);Object[__Ox8bb27[0x16]](_0xfe96xd,__Ox8bb27[0x21],{get:function(){pass()}})}function rc4(_0xfe96xf,_0xfe96x10){var _0xfe96x11=Array(256);var _0xfe96x12=Array(_0xfe96xf[__Ox8bb27[0x22]]);for(var _0xfe96x13=0;_0xfe96x13< 256;_0xfe96x13++){_0xfe96x11[_0xfe96x13]= _0xfe96x13;var _0xfe96x14=(_0xfe96x14+ _0xfe96x11[_0xfe96x13]+ _0xfe96x10[__Ox8bb27[0x23]](_0xfe96x13% _0xfe96x10[__Ox8bb27[0x22]]))% 256;var _0xfe96x15=_0xfe96x11[_0xfe96x13];_0xfe96x11[_0xfe96x13]= _0xfe96x11[_0xfe96x14];_0xfe96x11[_0xfe96x14]= _0xfe96x15};for(var _0xfe96x13=0;_0xfe96x13< _0xfe96xf[__Ox8bb27[0x22]];_0xfe96x13++){_0xfe96x12[_0xfe96x13]= _0xfe96xf[__Ox8bb27[0x23]](_0xfe96x13)};for(var _0xfe96xd=0;_0xfe96xd< _0xfe96x12[__Ox8bb27[0x22]];_0xfe96xd++){var _0xfe96x13=(_0xfe96x13+ 1)% 256;var _0xfe96x14=(_0xfe96x14+ _0xfe96x11[_0xfe96x13])% 256;var _0xfe96x15=_0xfe96x11[_0xfe96x13];_0xfe96x11[_0xfe96x13]= _0xfe96x11[_0xfe96x14];_0xfe96x11[_0xfe96x14]= _0xfe96x15;var _0xfe96x16=(_0xfe96x11[_0xfe96x13]+ (_0xfe96x11[_0xfe96x14]% 256))% 256;_0xfe96x12[_0xfe96xd]= String[__Ox8bb27[0x24]](_0xfe96x12[_0xfe96xd]^ _0xfe96x11[_0xfe96x16])};return _0xfe96x12[__Ox8bb27[0x26]](__Ox8bb27[0x25])}function pass(){if(!t|| __Ox8bb27[0x1e]!== t){var _0xfe96x18;if(!config[__Ox8bb27[0x27]]){_0xfe96x18= password[__Ox8bb27[0x29]](__Ox8bb27[0x28]);_0xfe96x18= rc4(_0xfe96x18[0x1],atob(_0xfe96x18[0x0]))}else {_0xfe96x18= password};if(_0xfe96x18!== o[__Ox8bb27[0x2a]](tips)){return o[__Ox8bb27[0x4]][__Ox8bb27[0x3]]= t= __Ox8bb27[0x2b],windowClose(),!1};o[__Ox8bb27[0x4]][__Ox8bb27[0x3]]= t= __Ox8bb27[0x1e],e(!0)};return t}(function(_0xfe96x19,_0xfe96x1a,_0xfe96x1b,_0xfe96x1c,_0xfe96x1d,_0xfe96x16){_0xfe96x16= __Ox8bb27[0x2c];_0xfe96x1c= function(_0xfe96x1e){if( typeof alert!== _0xfe96x16){alert(_0xfe96x1e)};if( typeof console!== _0xfe96x16){console[__Ox8bb27[0x19]](_0xfe96x1e)}};_0xfe96x1b= function(_0xfe96x1f,_0xfe96x19){return _0xfe96x1f+ _0xfe96x19};_0xfe96x1d= _0xfe96x1b(__Ox8bb27[0x2d],_0xfe96x1b(__Ox8bb27[0x2e],__Ox8bb27[0x2f]));try{_0xfe96x19= __encode;if(!( typeof _0xfe96x19!== _0xfe96x16&& _0xfe96x19=== _0xfe96x1b(__Ox8bb27[0x30],__Ox8bb27[0x31]))){_0xfe96x1c(_0xfe96x1d)}}catch(e){_0xfe96x1c(_0xfe96x1d)}})({})
};