67,550
社区成员




public static void main(String[] args) throws ClientProtocolException, IOException {
String url="http://www.cnvd.org.cn";
CloseableHttpClient client = HttpClients.createDefault();
HttpHost proxy = new HttpHost("192.167.5.13", 808, "http");
RequestConfig config = RequestConfig.custom().setProxy(proxy).build();
HttpGet get=new HttpGet(url);
get.setConfig(config);
get.setHeader("Accept", "Accept text/html,application/xhtml+xml,application/xml;q=0.9,*/*;q=0.8");
get.setHeader("Accept-Charset", "GB2312,utf-8;q=0.7,*;q=0.7");
get.setHeader("Accept-Encoding", "gzip, deflate");
get.setHeader("Accept-Language", "zh-cn,zh;q=0.5");
get.setHeader("Connection", "keep-alive");
get.setHeader("Host", "www.cnvd.org.cn");
get.setHeader("referer", "http://www.cnvd.org.cn/");
get.setHeader("User-Agent", "Mozilla/5.0 (Windows NT 6.1; rv:6.0.2) Gecko/20100101 Firefox/6.0.2");
CloseableHttpResponse response = client.execute(get);
HttpEntity entity = response.getEntity();
String html=EntityUtils.toString(entity,"utf-8");
System.out.println(html);
String html1=html.replace("<script>", "").replace("</script>", "").replace("eval(y.replace(/\\b\\w+\\b/g, function(y){return x[f(y,z)-1]}))","y.replace(/\\b\\w+\\b/g, function(y){return x[f(y,z)-1]})");
System.out.println(html1);
V8 runtime = V8.createV8Runtime();
String html2="var x=\"attachEvent@i@__jsl_clearance@for@captcha@dc@Hw@catch@href@while@addEventListener@@onreadystatechange@__phantomas@TxHw@var@20@setTimeout@charAt@@_phantom@2@GMT@challenge@D@false@window@location@cd@orders@replace@Tue@17@else@if@@07@pgM@8@join@@length@DvkZ@try@7@return@l@function@@Array@1497939752@0@Path@1500@32@cookie@e@DOMContentLoaded@Expires@933@document@3@22@Jun\".replace(/@*$/,\"\").split(\"@\"),y=\"g 1h=1i(){a(r.l||r.e){};g t,6='3=1l.20|1m|';g 10=[[-~[]+[~~{}]-(-~[])],[(+!+[])+(+!+[])+(+!+[])+(+!+[])],[((+!+[])<<(+!+[]))+(+!+[])+(+!+[])+(+!+[])],(m+[[], []][(+[])]),(22+[]+[[]][~~!{}]),(19+[]),(~~[]+[]+[]),[(+!+[])+([((+!+[])<<(+!+[]))]+~~[]>>((+!+[])<<(+!+[])))],(((+!+[])+[-~((+!+[])+(+!+[])+(+!+[]))]>>(+!+[]))+[]),[-~[]]];t=1k(10.1c);4(g 2=1m;2<10.1c;2++){t[10[2]]=['p',[!-[]+[]+[]][1m].j(-~!{})+[(+!+[])+(+!+[])+(+!+[])+(+!+[])]+[-~[]]+[((+!+[])<<(+!+[]))+(+!+[])+(+!+[])+(+!+[])]+[+[-~{}, -~{}]+[]+[]][1m].j((+!+[])+(+!+[]))+(19+[])+[{}+[[]+[[]][~~!{}], []][-~{}]][1m].j(-~[1f])+([(+!+[])+(+!+[])]/(+[])+[[]][~~!{}]).j(((+!+[])<<(+!+[]))+(+!+[])+(+!+[])+(+!+[]))+({}+[[], []][(+[])]).j((-~-~{}^-~{}))+[{}+[[]+[[]][~~!{}], []][-~{}]][1m].j(-~~~!{}+22)+({}+[[], []][(+[])]).j((-~-~{}^-~{})),'1d',(m+[[], []][(+[])]),'f',(22+[]+[[]][~~!{}]),[-~[]],[-~~~!{}/(+[])+[]+[[]][~~!{}]][1m].j(-~[(-~[]+[((+!+[])<<(+!+[]))])/[((+!+[])<<(+!+[]))]]),'7%','18'][2]};t=t.1a('');6+=t;i('s.9=s.9.11(/[\\?|&]5-o/,\\'\\')',1o);21.1q=(6+';1t=12, h-24-13 17:23:1p n;1n=/;');};15((1i(){1e{1g !!r.b;}8(1r){1g q;}})()){21.b('1s',1h,q);}14{21.1('d',1h);}\",z=0,f=function(x,y){var a=0,b=0,c=0;x=x.split(\"\");y=y||99;while((a=x.shift())&&(b=a.charCodeAt(0)-77.5))c=(Math.abs(b)<13?(b+48.5):parseInt(a,36))+y*c;return c},g=y.match(/\\b\\w+\\b/g).sort(function(x,y){return f(x)-f(y)}).pop();while(f(g,++z)-x.length){};y.replace(/\\b\\w+\\b/g, function(y){return x[f(y,z)-1]});";
System.out.println(html2);
System.out.println(html1.equals(html2));
String result=runtime.executeStringScript(html1);
//String result=runtime.
System.out.println(result);
runtime.release();
}