Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- Imports System.Management
- Imports System.IO
- Imports System.Byte
- Public Class Form1
- Private TargetProcessHandle As Integer
- Private pfnStartAddr As Integer
- Private pszLibFileRemote As String
- Private TargetBufferSize As Integer
- Public Const PROCESS_VM_READ = &H10
- Public Const TH32CS_SNAPPROCESS = &H2
- Public Const MEM_COMMIT = 4096
- Public Const PAGE_READWRITE = 4
- Public Const PROCESS_CREATE_THREAD = (&H2)
- Public Const PROCESS_VM_OPERATION = (&H8)
- Public Const PROCESS_VM_WRITE = (&H20)
- Dim DLLFileName As String
- Public Declare Function ReadProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer As String, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
- Public Declare Function LoadLibrary Lib "kernel32" Alias "LoadLibraryA" (ByVal lpLibFileName As String) As Integer
- Public Declare Function VirtualAllocEx Lib "kernel32" (ByVal hProcess As Integer, ByVal lpAddress As Integer, ByVal dwSize As Integer, ByVal flAllocationType As Integer, ByVal flProtect As Integer) As Integer
- Public Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer As String, ByVal nSize As Integer, ByRef lpNumberOfBytesWritten As Integer) As Integer
- Public Declare Function GetProcAddress Lib "kernel32" (ByVal hModule As Integer, ByVal lpProcName As String) As Integer
- Private Declare Function GetModuleHandle Lib "Kernel32" Alias "GetModuleHandleA" (ByVal lpModuleName As String) As Integer
- Public Declare Function CreateRemoteThread Lib "kernel32" (ByVal hProcess As Integer, ByVal lpThreadAttributes As Integer, ByVal dwStackSize As Integer, ByVal lpStartAddress As Integer, ByVal lpParameter As Integer, ByVal dwCreationFlags As Integer, ByRef lpThreadId As Integer) As Integer
- Public Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
- Private Declare Function FindWindow Lib "user32" Alias "FindWindowA" (ByVal lpClassName As String, ByVal lpWindowName As String) As Integer
- Private Declare Function CloseHandle Lib "kernel32" Alias "CloseHandleA" (ByVal hObject As Integer) As Integer
- Dim ExeName As String = IO.Path.GetFileNameWithoutExtension(Application.ExecutablePath)
- Private Sub Inject()
- Dim TargetProcess As Process() = Process.GetProcessesByName("csgo.exe")
- Dim LocalAppData As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
- TargetProcessHandle = OpenProcess(PROCESS_CREATE_THREAD Or PROCESS_VM_OPERATION Or PROCESS_VM_WRITE, False, TargetProcess(0).Id)
- pszLibFileRemote = LocalAppData + "\oaghjghjo3241\odfgdfgf9sd9\sdfonjdfgdfg24234\FutteWare.dll"
- pfnStartAddr = GetProcAddress(GetModuleHandle("Kernel32"), "LoadLibraryA")
- TargetBufferSize = 1 + Len(pszLibFileRemote)
- Dim Rtn As Integer
- Dim LoadLibParamAdr As Integer
- LoadLibParamAdr = VirtualAllocEx(TargetProcessHandle, 0, TargetBufferSize, MEM_COMMIT, PAGE_READWRITE)
- Rtn = WriteProcessMemory(TargetProcessHandle, LoadLibParamAdr, pszLibFileRemote, TargetBufferSize, 0)
- CreateRemoteThread(TargetProcessHandle, 0, 0, pfnStartAddr, LoadLibParamAdr, 0, 0)
- CloseHandle(TargetProcessHandle)
- MsgBox("Error. FutteWare did not inject into" & " " & "csgo.exe" & " " & "FutteWare Injector Restarts...", MsgBoxStyle.OkOnly, "Error")
- Application.Restart()
- End Sub
- Private Sub Form1_FormClosing(sender As Object, e As System.Windows.Forms.FormClosingEventArgs) Handles Me.FormClosing
- Dim hackpath As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\oaghjghjo3241"
- System.IO.Directory.Delete(hackpath, True)
- End Sub
- Private Sub Form1_Load(sender As Object, e As EventArgs) Handles MyBase.Load
- Dim hackfile As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData) & "\oaghjghjo3241\odfgdfgf9sd9\sdfonjdfgdfg24234\FutteWare.dll"
- If System.IO.File.Exists(hackfile) Then
- System.IO.File.Delete(hackfile)
- End If
- Dim hw As New clsComputerInfo
- Dim hdd As String
- Dim cpu As String
- Dim mb As String
- Dim mac As String
- Dim hwid As String
- cpu = hw.GetProcessorId()
- hdd = hw.GetVolumeSerial("C")
- mb = hw.GetMotherBoardID()
- mac = hw.GetMACAddress()
- hwid = cpu + hdd + mb + mac
- Dim hwidEncrypted As String = Strings.UCase(hw.getMD5Hash(cpu & hdd & mb & mac))
- txtHWID.Text = hwidEncrypted
- End Sub
- Public Class clsComputerInfo
- Friend Function GetProcessorId() As String
- Dim strProcessorId As String = String.Empty
- Dim query As New SelectQuery("Win32_processor")
- Dim search As New ManagementObjectSearcher(query)
- Dim info As ManagementObject
- For Each info In search.Get()
- strProcessorId = info("processorId").ToString()
- Next
- Return strProcessorId
- End Function
- Friend Function GetMACAddress() As String
- Dim mc As ManagementClass = New ManagementClass("Win32_NetworkAdapterConfiguration")
- Dim moc As ManagementObjectCollection = mc.GetInstances()
- Dim MACAddress As String = String.Empty
- For Each mo As ManagementObject In moc
- If (MACAddress.Equals(String.Empty)) Then
- If CBool(mo("IPEnabled")) Then MACAddress = mo("MacAddress").ToString()
- mo.Dispose()
- End If
- MACAddress = MACAddress.Replace(":", String.Empty)
- Next
- Return MACAddress
- End Function
- Friend Function GetVolumeSerial(Optional ByVal strDriveLetter As String = "C") As String
- Dim disk As ManagementObject = New ManagementObject(String.Format("win32_logicaldisk.deviceid=""{0}:""", strDriveLetter))
- disk.Get()
- Return disk("VolumeSerialNumber").ToString()
- End Function
- Friend Function GetMotherBoardID() As String
- Dim strMotherBoardID As String = String.Empty
- Dim query As New SelectQuery("Win32_BaseBoard")
- Dim search As New ManagementObjectSearcher(query)
- Dim info As ManagementObject
- For Each info In search.Get()
- strMotherBoardID = info("product").ToString()
- Next
- Return strMotherBoardID
- End Function
- Friend Function getMD5Hash(ByVal strToHash As String) As String
- Dim md5Obj As New Security.Cryptography.MD5CryptoServiceProvider
- Dim bytesToHash() As Byte = System.Text.Encoding.ASCII.GetBytes(strToHash)
- bytesToHash = md5Obj.ComputeHash(bytesToHash)
- Dim strResult As String = ""
- For Each b As Byte In bytesToHash
- strResult += b.ToString("x2")
- Next
- Return strResult
- End Function
- End Class
- Private Sub btnUnlock_Click(sender As Object, e As EventArgs) Handles btnUnlock.Click
- Dim WC As New System.Net.WebClient
- Dim http3 As String = "5E2B562ED6ADA3278AB180B7C7049564" 'WC.DownloadString("https://sjovcraftserver.weebly.com/uploads/1/5/6/1/15611474/hwid.txt")
- If http3.Contains(txtHWID.Text) Then
- Dim LocalAppData As String = Environment.GetFolderPath(Environment.SpecialFolder.LocalApplicationData)
- My.Computer.FileSystem.CreateDirectory(LocalAppData + "\oaghjghjo3241\odfgdfgf9sd9\sdfonjdfgdfg24234\")
- My.Computer.Network.DownloadFile("https://sjovcraftserver.weebly.com/uploads/1/5/6/1/15611474/futteware.dll", LocalAppData + "\oaghjghjo3241\odfgdfgf9sd9\sdfonjdfgdfg24234\FutteWare.dll")
- Dim TargetProcess As Process() = Process.GetProcessesByName("csgo.exe")
- Call Inject()
- MsgBox("Successfully Launched FutteWare!")
- Else
- MsgBox("You do not have access to FutteWare")
- End If
- End Sub
- End Class
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement