VB.NET | Loader Yapımı

Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Onaylı Üye
Katılım
5 Eki 2018
Mesajlar
53
Tepki puanı
6
Ödüller
6
7 HİZMET YILI
1:yeni bir proje açın
2:bir tane timer ekleyin
3:formun üzerine çift tıklayarak kod kısmına gidin
4:ctrl+a yapıp ordaki her şeyi silin
5:aşağıdaki kodu yapıştırın

Kod:
Imports System.IO
Public Class Form1

    Dim dlls As New Dictionary(Of String, String)
    Private Declare Function OpenProcess Lib "kernel32" (ByVal dwDesiredAccess As Integer, ByVal bInheritHandle As Integer, ByVal dwProcessId As Integer) As Integer
    Private 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
    Private Declare Function WriteProcessMemory Lib "kernel32" (ByVal hProcess As Integer, ByVal lpBaseAddress As Integer, ByVal lpBuffer() As Byte, ByVal nSize As Integer, ByVal lpNumberOfBytesWritten As UInteger) As Boolean
    Private 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
    Private 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, ByVal lpThreadId As Integer) As Integer
    Private Declare Function WaitForSingleObject Lib "kernel32" (ByVal hHandle As Integer, ByVal dwMilliseconds As Integer) As Integer
    Private Declare Function CloseHandle Lib "kernel32" (ByVal hObject As Integer) As Integer

    Private Function Inject(ByVal pID As Integer, ByVal dllLocation As String) As Boolean
        Dim hProcess As Integer = OpenProcess(&H1F0FFF, 1, pID)
        If hProcess = 0 Then Return False
        Dim dllBytes As Byte() = System.Text.Encoding.ASCII.GetBytes(dllLocation)
        Dim allocAddress As Integer = VirtualAllocEx(hProcess, 0, dllBytes.Length, &H1000, &H4)
        If allocAddress = Nothing Then Return False
        Dim kernelMod As Integer = GetModuleHandle("kernel32.dll")
        Dim loadLibAddr = GetProcAddress(kernelMod, "LoadLibraryA")
        If kernelMod = 0 OrElse loadLibAddr = 0 Then Return False
        WriteProcessMemory(hProcess, allocAddress, dllBytes, dllBytes.Length, 0)
        Dim libThread As Integer = CreateRemoteThread(hProcess, 0, 0, loadLibAddr, allocAddress, 0, 0)

        If libThread = 0 Then
            Return False
        Else
            WaitForSingleObject(libThread, 5000)
            CloseHandle(libThread)
        End If

        CloseHandle(hProcess)

        Return True
    End Function

    Private Sub Timer1_Tick(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles Timer1.Tick
        Dim TempFile As String = My.Computer.FileSystem.GetTempFileName
        IO.File.WriteAllBytes(TempFile, My.Resources.dllnizinadi) ' Resources kısmına bir dll ekleyin ondan sonra .dll olmadan dosyanızın adını yazın yoksa hata verir açılmaz
        Dim TargetProcess As Process() = Process.GetProcessesByName("crossfire")
        If TargetProcess.Length = 0 Then

        Else
            Dim ProcID As Integer = Process.GetProcessesByName("crossfire")(0).Id ' crossfire kısmına oyununuzun process adınızı yazın mesela zulu wolftü için yapacaksanızda wolftü yazın
            Timer1.Stop()
            Inject(ProcID, TempFile)
            Me.Close()
        End If
    End Sub

    Private Sub Form1_Load(ByVal sender As System.Object, ByVal e As System.EventArgs) Handles MyBase.Load
        Timer1.Start()
    End Sub
End Class
 
Tutti mi chiedono perché ho imparato questa lingua
Süper Üye
Katılım
17 Mar 2016
Mesajlar
634
Çözümler
5
Tepki puanı
112
Ödüller
11
10 HİZMET YILI
Dll 'yi resource ye atıyorsun ama o dll 'yi program nerdeyse oraya çıkartıp kullanıyor o ara dll'yi çalabilirler bence resourcesden aldırma dllyi yada başka yere çıkartıp kullandir
 
RAS
Seçkin Üye
Katılım
2 Ara 2018
Mesajlar
457
Çözümler
3
Tepki puanı
93
Ödüller
7
7 HİZMET YILI
işime yarayabilir aldım arşive.
 
Uzman Üye
Katılım
30 Ara 2016
Mesajlar
298
Tepki puanı
19
Ödüller
8
Yaş
25
9 HİZMET YILI
Teşekkürler kardeşim işe yara konu.Arşive ekledim
 
who knows when you will be gone
Seçkin Üye
Katılım
31 Mar 2018
Mesajlar
334
Tepki puanı
105
Ödüller
9
Yaş
25
8 HİZMET YILI
Teşekkürler işe yara konu.
 
Durum
Üzgünüz bu konu cevaplar için kapatılmıştır...
Üst