欧美大屁股bbbbxxxx,狼人大香伊蕉国产www亚洲,男ji大巴进入女人的视频小说,男人把ji大巴放进女人免费视频,免费情侣作爱视频

歡迎來(lái)到入門(mén)教程網(wǎng)!

vb

當(dāng)前位置:主頁(yè) > 軟件編程 > vb >

把任意文件轉(zhuǎn)成vbs文件的file2vbs的vbs代碼

來(lái)源:本站原創(chuàng)|時(shí)間:2020-01-10|欄目:vb|點(diǎn)擊: 次


Tr4c3:為了方便在dos下使用,我把inputbox改成了args。

復(fù)制代碼 代碼如下:

'Program By xiaolu 
'name:file2vbs.vbs 
On error resume next 
Set Args = Wscript.Arguments 
If Args.length<>2 Then 
Wscript.Echo "Usage:" & Wscript.ScriptName & " c:\muma.exe c:\muma.vbs" 
Wscript.Quit 
End If 

do while 1 
fname = Args(0) 
Set Ado = CreateObject("adodb.stream") 
With Ado 
.Type = 1 
.open 
.loadfromfile fname 
ss = .read 
End With 
exit do 
Loop 

fname = Args(1) 
Set Fso=CreateObject("Scripting.FileSystemObject") 
Set File=fso.OpenTextFile(fname,2, True) 
lens=lenB(ss) mod 500 
For j=0 to int(lenB(ss)/500)-1 
if j=0 then 
File.writeline "ss="""&Bin2Str(midb(ss,500*j+1,500))&"""_" 
else 
File.writeline "+"""&Bin2Str(midb(ss,500*j+1,500))&"""_" 
end if 
next 
if lens>0 then 
File.writeline "+"""&Bin2Str(rightb(ss,lens))&"""" 
else 
File.writeline "+"&chr(34)&chr(34) 
end if 
File.writeline "" 
File.writeline "Set RS=CreateObject(""ADODB.Recordset""):L=Len(ss)/2:RS.Fields.Append ""m"",205,L:RS.Open:RS.AddNew:RS 
(""m"")=ss&ChrB(0):RS.Update:ss=RS(""m"").GetChunk(L)" 
File.writeline "Set s=CreateObject(""ADODB.Stream""):with s:.Mode = 3:.Type = 1:.Open():.Write ss:.SaveToFile  
wscript.arguments(0),2:end with" 
File.close 
Set fso=nothing 
Ado.close 
set Abo=nothing 
Function Bin2Str(Re) 
For i = 1 To lenB(Re) 
bt = AscB(MidB(Re, i, 1)) 
if bt < 16 Then Bin2Str=Bin2Str&"0" 
Bin2Str=Bin2Str & Hex(bt) 
Next 
End Function 

重新生成文件的辦法

cscript xx.vbs x:\xxxx.exe

上一篇:用vbs實(shí)現(xiàn)zip功能的腳本

欄    目:vb

下一篇:alpha2 shellcode解密的vbs腳本

本文標(biāo)題:把任意文件轉(zhuǎn)成vbs文件的file2vbs的vbs代碼

本文地址:http://mengdiqiu.com.cn/a1/vb/7771.html

網(wǎng)頁(yè)制作CMS教程網(wǎng)絡(luò)編程軟件編程腳本語(yǔ)言數(shù)據(jù)庫(kù)服務(wù)器

如果侵犯了您的權(quán)利,請(qǐng)與我們聯(lián)系,我們將在24小時(shí)內(nèi)進(jìn)行處理、任何非本站因素導(dǎo)致的法律后果,本站均不負(fù)任何責(zé)任。

聯(lián)系QQ:835971066 | 郵箱:835971066#qq.com(#換成@)

Copyright © 2002-2020 腳本教程網(wǎng) 版權(quán)所有