diff --git a/pac b/pac index 808af62..a4c8fc8 100644 --- a/pac +++ b/pac @@ -1,7 +1,7 @@ -var _0xef24=["\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x37\x38\x2E\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x34\x2E\x31\x35\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x32\x31\x2E\x31\x31\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x39\x2E\x32\x32\x38\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x33\x38\x2E\x31\x39\x37\x2E\x32\x31\x30\x2E\x31\x35\x35\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x32\x31\x37\x2E\x31\x34\x34\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x31\x32\x37\x2E\x31\x35\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x33\x34\x2E\x31\x39\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x39\x32\x2E\x31\x39\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x36\x33\x2E\x35\x30\x2E\x31\x35\x36\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x36\x33\x2E\x35\x32\x2E\x32\x32\x35\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x34\x2E\x32\x30\x37\x2E\x31\x35\x34\x2E\x32\x31\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x32\x2E\x39\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x34\x2E\x32\x33\x38\x2E\x31\x34\x38\x2E\x37\x32\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x39\x37\x2E\x31\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x34\x37\x2E\x31\x36\x38\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x32\x34\x36\x2E\x31\x34\x36\x3A\x32\x35\x3B"];var proxy=[_0xef24[0],_0xef24[1],_0xef24[2],_0xef24[3],_0xef24[4],_0xef24[5],_0xef24[6],_0xef24[7],_0xef24[8],_0xef24[9],_0xef24[10],_0xef24[11],_0xef24[12],_0xef24[13],_0xef24[14],_0xef24[15],_0xef24[16]] +var proxy = "PROXY jw06.setdns.work:80;"; var domains = { - "bannedbook.org": 1, + "bannedbook.org": 1, "github.com": 1, "bannedbook.net": 1, "huaglad.com": 1, @@ -2188,10 +2188,31 @@ var domains = { "glosbe.com": 1, "zyzc9.com": 1 }; + var direct = 'DIRECT;'; var hasOwnProperty = Object.hasOwnProperty; +var _0x385b=["\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x37\x38\x2E\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x34\x2E\x31\x35\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x32\x31\x2E\x31\x31\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x39\x2E\x32\x32\x38\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x33\x38\x2E\x31\x39\x37\x2E\x32\x31\x30\x2E\x31\x35\x35\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x32\x31\x37\x2E\x31\x34\x34\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x31\x32\x37\x2E\x31\x35\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x33\x34\x2E\x31\x39\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x39\x32\x2E\x31\x39\x33\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x36\x33\x2E\x35\x30\x2E\x31\x35\x36\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x36\x33\x2E\x35\x32\x2E\x32\x32\x35\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x34\x2E\x32\x30\x37\x2E\x31\x35\x34\x2E\x32\x31\x31\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x32\x30\x32\x2E\x39\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x34\x2E\x32\x33\x38\x2E\x31\x34\x38\x2E\x37\x32\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x37\x36\x2E\x39\x37\x2E\x31\x37\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x34\x35\x2E\x33\x32\x2E\x34\x37\x2E\x31\x36\x38\x3A\x32\x35\x3B","\x50\x52\x4F\x58\x59\x20\x31\x30\x38\x2E\x36\x31\x2E\x32\x34\x36\x2E\x31\x34\x36\x3A\x32\x35\x3B"];var servlist=[_0x385b[0],_0x385b[1],_0x385b[2],_0x385b[3],_0x385b[4],_0x385b[5],_0x385b[6],_0x385b[7],_0x385b[8],_0x385b[9],_0x385b[10],_0x385b[11],_0x385b[12],_0x385b[13],_0x385b[14],_0x385b[15],_0x385b[16]] + + +function ip2int(ip_string) { + var REG =/^(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])\.(\d{1,2}|1\d\d|2[0-4]\d|25[0-5])$/; + var result = REG.exec(ip_string); + if (result!=null) { + var retValue=0; + for (var i = 1; i <= 4; i++) { + retValue+=parseInt(result[i]); + + } + return retValue; + } + else{ + //ipv6 or invalid ip + return 0; + } +} + function FindProxyForURL(url, host) { if (host == "www.haosou.com") { return "PROXY 360.itzmx.com:80"; @@ -2205,7 +2226,16 @@ function FindProxyForURL(url, host) { if (url.indexOf('http://') == 0) return "PROXY 360.itzmx.com:80"; if (hasOwnProperty.call(domains, suffix)) { - return proxy; + var myip=myIpAddress(); + var ipint=ip2int(myip); + var ii = ipint % servlist.length; + if(ii==servlist.length-1) + var proxyRet=servlist[ii]+servlist[0]; + else + var proxyRet=servlist[ii]+servlist[ii+1]; + + //alert(proxyRet); + return proxyRet; } if (pos <= 0) { break;