• Trainer
  • Forums
  • Suche
  • Members
  • Kalender
  • Hilfe
  • Extras
Forum stats
Show team
Neue Beiträge ansehen
Heutige Beiträge ansehen
Home of Gamehacking - Archiv
Login to account Create an account
Login
Benutzername:
Passwort: Passwort vergessen?
 



  Home of Gamehacking - Archiv Coding Visual Basic 6, VB.NET
1 2 3 4 Weiter »
Problem Applying Aobscan

Thema geschlossen 
Ansichts-Optionen
Problem Applying Aobscan
giassamarkos Offline
Member
***
Beiträge: 143
Themen: 34
Registriert seit: Apr 2011
Bewertung: 1
#1
23.07.2011, 22:11 (Dieser Beitrag wurde zuletzt bearbeitet: 08.02.2016, 23:04 von DNA.)
Well my original bytes are
8B 9F 98 1B 00 00 D9 E8 33 F6

from my code injection i have these bytes

C7 87 98 1B 00 00 F4 01 00 00 8B 9F 98 1B 00 00 C3

so i tried this

Visual Basic Code
1
2
3
4
5
6
7
8
9
10
11
12
13
 If GetAsyncKeyState(Keys.NumPad1) = &HFFFF8001 Then
            Dim cave As Integer = Allocmem()
            Dim firstscan As Int32

            firstscan = AOBSCAN("Brink", "brink", New Byte() {&H8B, &H9F, &H98, &H1B, &H0, &H0, &HD9, &HE8, &H33, &HF6})

            If Not firstscan = 0 Then
                WriteASM(cave, New Byte() {&HC7, &H87, &H98, &H1B, &H0, &H0, &HF4, &H1, &H0, &H0, &H8B, &H9F, &H98, &H1B, &H0, &H0, &HC3})
                WriteByte(cave + &H630, firstscan)
                AllocJump(firstscan, cave + &H9999, 1)
            End If
            sapi.speak("Activated")
        End If




To understand better here is some of the modules
For WriteAsm

Visual Basic Code
Public Sub WriteASM(ByVal address As Int32, ByVal Value As Byte()) 'Writes assembly using bytes
        For i As Integer = LBound(Value) To UBound(Value)
            WriteByte(address + i, Value(i))
        Next

   End Sub

For WriteByte

Visual Basic Code
Public Sub WriteByte(ByVal address As Integer, ByVal Value As Byte) 'Writes a single byte value
        WriteProcessMemory(pHandle, address, Value, 1, 0)
    End Sub


For Aobscan

Visual Basic Code
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
 Public Function AOBSCAN(ByVal GameName As String, ByVal ModuleName As String, ByVal Signature As Byte()) As Integer 'Searches for a byte pattern and returns the starting address of it
        'To use this, use it like this: Address = AOBSCAN("gamename", "gamename.exe", New Byte () {Bytes go here})
        Dim BaseAddress, EndAddress As Int32
        For Each PM As ProcessModule In Process.GetProcessesByName(GameName)(0).Modules
            If ModuleName = PM.ModuleName Then
                BaseAddress = PM.BaseAddress
                EndAddress = BaseAddress + PM.ModuleMemorySize
            End If
        Next
        Dim curAddr As Int32 = BaseAddress
        Do
            For i As Integer = 0 To Signature.Length - 1
                If Read_Byte(curAddr + i) = Signature(i) Then
                    If i = Signature.Length - 1 Then
                        Return curAddr
                    End If
                    Continue For
                End If
                Exit For
            Next
            curAddr += 1
        Loop While curAddr < EndAddress
        Return 0
    End Function


For AllocJump

Visual Basic Code
1
2
3
4
5
6
7
8
9
10
11
Public Function AllocJump(ByVal source As Int32, ByVal destination As Int32, Optional ByVal Nops As Integer = 0) As Boolean 'Creates a jump from the specified address to a destination address
        WriteByte(source, &HE8)
        WriteInt32(source + 1, destination - source - 5)
        If Nops = 0 Then
            Return 0
        End If
        For i As Int32 = 1 To Nops
            WriteByte(source + 4 + i, &H90)
        Next
        Return 0
    End Function

Could someone who knows how to use vb tell me please i am begging you i want to release my first trainer

Thanks
MarkG

EDIT
Please use [ code=VB] your code here [ /code]
without the spaces, it is easier to read/understand

Suchen
Share Thread:            
Thema geschlossen 


Nachrichten in diesem Thema
Problem Applying Aobscan - von giassamarkos - 23.07.2011, 22:11
RE: Problem Applying Aobscan - von DNA - 24.07.2011, 01:01
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 01:02
RE: Problem Applying Aobscan - von DNA - 24.07.2011, 01:05
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 01:07
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 01:08
RE: Problem Applying Aobscan - von DNA - 24.07.2011, 02:10
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 02:30
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 02:40
RE: Problem Applying Aobscan - von DNA - 24.07.2011, 13:20
RE: Problem Applying Aobscan - von giassamarkos - 24.07.2011, 21:02
RE: Problem Applying Aobscan - von DNA - 25.07.2011, 00:35
RE: Problem Applying Aobscan - von giassamarkos - 25.07.2011, 02:21
RE: Problem Applying Aobscan - von giassamarkos - 25.07.2011, 03:38
RE: Problem Applying Aobscan - von DNA - 25.07.2011, 19:45
RE: Problem Applying Aobscan - von giassamarkos - 26.07.2011, 00:03
RE: Problem Applying Aobscan - von Acubra - 26.07.2011, 00:19
RE: Problem Applying Aobscan - von giassamarkos - 26.07.2011, 01:45
RE: Problem Applying Aobscan - von giassamarkos - 26.07.2011, 00:26
RE: Problem Applying Aobscan - von giassamarkos - 26.07.2011, 07:18
RE: Problem Applying Aobscan - von DNA - 26.07.2011, 20:00
RE: Problem Applying Aobscan - von giassamarkos - 26.07.2011, 23:02
RE: Problem Applying Aobscan - von giassamarkos - 28.07.2011, 03:04
RE: Problem Applying Aobscan - von Serkan34D - 21.09.2015, 17:45
RE: Problem Applying Aobscan - von Acubra - 22.09.2015, 16:28

  • Druckversion anzeigen
  • Thema abonnieren


Benutzer, die gerade dieses Thema anschauen:
1 Gast/Gäste

  • Kontakt
  • Forum team
  • Forum stats
  • Nach oben
 
  • RSS-Synchronisation
  • Lite mode
  • Home of Gamehacking - Archiv
  • Help
 
Forum software by © MyBB - Theme © iAndrew 2014



Linearer Modus
Baumstrukturmodus