Page 1 of 2 12 LastLast
Results 1 to 15 of 17
  1. #1
    pyton789's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    793
    Reputation
    38
    Thanks
    2,610
    My Mood
    Sneaky

    Write protected memory.

    I have found some addresses in CoD Black Ops that I would like to use in my trainer.
    The problem is that they are write protected. That means that cheat engine can change them, but I can't find a way to do it with VB.net
    Where I found the address

    FLD DWORD PTR DS:[9E1E18]

    I can easily write to a normal address so the only problem is that it is write protected.
    Cheat engine has no problem with doing this and it is open source. But CE was written in Delphi so I can't understand any of it.

    I hope someone who knows more about this is able to help me.

    M-efti's Unlocker for alterIWnet . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-efti's MW2 SP Trainer 1.2
    M-efti's Superior alterIWnet Hack . . . . . . . . . . .. . . . . . . . . . . . . . . ..M-efti's MW2 SP Trainer 1.7
    M-efti's BO SP Trainer 4.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..M-efti's Dead Pixels Trainer

  2. #2
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Maybe @Hell_Demon might be able to helps.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  3. #3
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    VirtualProtectEx Function (Windows)

    Don't know how to use it from VB though
    Ah we-a blaze the fyah, make it bun dem!

  4. #4
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    C++ Example of usage.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  5. #5
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    @Hell_Demon
    Code:
    Public Declare Function VirtualProtectEx Lib "kernel32" (ByVal hProcess As IntPtr, ByVal lpAddress As Integer, ByVal dwSize As Integer, ByVal flNewProtect As Integer, <Out>ByRef lpflOldProtect As Integer) As Boolean
    See?

    EDIT: Import System****ntime.InteropServices, (idk if i spelled good )
    Last edited by ♪~ ᕕ(ᐛ)ᕗ; 04-24-2011 at 05:18 AM.

  6. #6
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    I didn't mean that. -.-

    [highlight=vb.net]<DllImport("kernel32.dll", CharSet:=CharSet.Auto, SetLastError:=True)> _
    Public Shared Function VirtualProtectEx(ByVal hProcess As IntPtr, ByVal lpAddress As IntPtr, ByVal dwSize As IntPtr, ByVal flNewProtect As UInteger, ByRef lpflOldProtect As UInteger) As Boolean
    End Function

    <DllImport("kernel32.dll")> _
    Private Shared Function OpenProcess(ByVal dwDesiredAccess As Integer, <MarshalAs(UnmanagedType.Bool)> ByVal bInheritHandle As Boolean, ByVal dwProcessId As Integer) As IntPtr
    End Function

    Private Const PROCESS_ALL_ACCESS As Integer = &H1F0FFF
    Private Const PAGE_EXECUTE_READWRITE As UInteger = &H40
    Private Sub doShit()
    Dim processName As String = "BlackOps"
    Dim address As String = "&H1BADDSA"
    Dim processHandle As IntPtr = OpenProcess(PROCESS_ALL_ACCESS, False, Process.GetProcessesByName(processName)(0).Id)
    If processHandle = IntPtr.Zero Then
    MsgBox("Access is denied!", MsgBoxStyle.Critical)
    Exit Sub
    End If
    Dim oldProtect As UInteger
    Dim vpEx As Boolean = VirtualProtectEx(processHandle, New IntPtr(CInt(address)), New IntPtr(4), PAGE_EXECUTE_READWRITE, oldProtect) 'Remove write-protect attributes
    If vpEx = False Then
    MsgBox("An error has occured! Error Code: " & Err.LastDllError, MsgBoxStyle.Critical)
    Exit Sub
    End If
    'Change the address value here, add the code in yourself
    VirtualProtectEx(processHandle, New IntPtr(CInt(address)), New IntPtr(4), oldProtect, 0) 'Restore write-protect attributes
    End Sub[/highlight]

    Written from the top of my head, haven't tested it. Thanks to HD for helping meh a lil.
    Last edited by master131; 04-24-2011 at 05:46 AM. Reason: Fixed a typo.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  7. The Following User Says Thank You to master131 For This Useful Post:

    Hell_Demon (04-24-2011)

  8. #7
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by master131 View Post
    I didn't mean that. -.-

    [highlight=vb.net]<DllImport("kernel32", CharSet:=CharSet.Auto, SetLastError:=True)> _
    Public Shared Function VirtualProtectEx(ByVal hProcess As IntPtr, ByVal lpAddress As IntPtr, ByVal dwSize As IntPtr, ByVal flNewProtect As UInteger, ByRef lpflOldProtect As UInteger) As Boolean
    End Function

    <DllImport("kernel32.dll")> _
    Private Shared Function OpenProcess(ByVal dwDesiredAccess As Integer, <MarshalAs(UnmanagedType.Bool)> ByVal bInheritHandle As Boolean, ByVal dwProcessId As Integer) As IntPtr
    End Function

    Private Const PROCESS_ALL_ACCESS As Integer = &H1F0FFF
    Private Const PAGE_EXECUTE_READWRITE As UInteger = &H40
    Private Sub doShit()
    Dim processName As String = "BlackOps"
    Dim address As String = "&H1BADDSA"
    Dim processHandle As IntPtr = OpenProcess(PROCESS_ALL_ACCESS, False, Process.GetProcessesByName(processName)(0).Id)
    If processHandle = IntPtr.Zero Then
    MsgBox("Access is denied!", MsgBoxStyle.Critical)
    Exit Sub
    End If
    Dim oldProtect As UInteger
    Dim vpEx As IntPtr = VirtualProtectEx(processHandle, New IntPtr(CInt(address)), New IntPtr(4), PAGE_EXECUTE_READWRITE, oldProtect) 'Remove write-protect attributes
    If vpEx = IntPtr.Zero Then
    MsgBox("An error has occured! Error Code: " & Err.LastDllError, MsgBoxStyle.Critical)
    Exit Sub
    End If
    'Change the address value here
    VirtualProtectEx(processHandle, New IntPtr(CInt(address)), New IntPtr(4), oldProtect, 0) 'Restore write-protect attributes
    End Sub[/highlight]

    Written from the top of my head, haven't tested it. Thanks to HD for helping meh a lil.
    Was talking to pyton. Also u shud assign a value to oldProtect otherwise it will show u a error. Make it zero. The rest seems to have sense, but I think pyton can do it by himself he isn't a noob ;D

  9. #8
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    It's used in a ByRef Parameter, who cares. -.- If it fails it will just be assigned 0.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  10. #9
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by master131 View Post
    It's used in a ByRef Parameter, who cares. -.- If it fails it will just be assigned 0.
    too bad when I do et, it shows me error. And it's same for ReadProcessMemory(). aww

  11. #10
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    Oh craps, found a mistake in my code. (You can't convert a boolean to a pointer *cough* fail)

    /fixed

    What do you mean error?
    Last edited by master131; 04-24-2011 at 05:47 AM.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  12. #11
    ♪~ ᕕ(ᐛ)ᕗ's Avatar
    Join Date
    Jun 2010
    Gender
    male
    Location
    Uterus
    Posts
    9,119
    Reputation
    1096
    Thanks
    1,970
    My Mood
    Doh
    Quote Originally Posted by master131 View Post
    Oh craps, found a mistake in my code. (You can't convert a boolean to a pointer *cough* fail)

    /fixed

    What do you mean error?
    Error: XXX is used before it's assigned a value.

  13. #12
    master131's Avatar
    Join Date
    Apr 2010
    Gender
    male
    Location
    Melbourne, Australia
    Posts
    8,858
    Reputation
    3438
    Thanks
    101,668
    My Mood
    Breezy
    LOL, I didn't get that error. You must assign all datatypes a value before you use them unless you definately know that it will always be assigned a value no matter what.
    Donate:
    BTC: 1GEny3y5tsYfw8E8A45upK6PKVAEcUDNv9


    Handy Tools/Hacks:
    Extreme Injector v3.7.3
    A powerful and advanced injector in a simple GUI.
    Can scramble DLLs on injection making them harder to detect and even make detected hacks work again!

    Minion Since: 13th January 2011
    Moderator Since: 6th May 2011
    Global Moderator Since: 29th April 2012
    Super User/Unknown Since: 23rd July 2013
    'Game Hacking' Team Since: 30th July 2013

    --My Art--
    [Roxas - Pixel Art, WIP]
    [Natsu - Drawn]
    [Natsu - Coloured]


    All drawings are coloured using Photoshop.

    --Gifts--
    [Kyle]

  14. #13
    wtfiwantthatname's Avatar
    Join Date
    Oct 2008
    Gender
    male
    Posts
    260
    Reputation
    10
    Thanks
    39
    My Mood
    Bored
    Did you debug the code in Visual Studio to test it?
    "I don't believe in an afterlife, so I don't have to spend my whole life fearing hell, or fearing heaven even more. For whatever the tortures of hell, I think the boredom of heaven would be even worse." - Isaac Asimov

  15. #14
    Hell_Demon's Avatar
    Join Date
    Mar 2008
    Gender
    male
    Location
    I love causing havoc
    Posts
    3,976
    Reputation
    343
    Thanks
    4,320
    My Mood
    Cheeky
    Quote Originally Posted by wtfiwantthatname View Post
    Did you debug the code in Visual Studio to test it?
    Why the fuck would you want to debug it >.<
    Ah we-a blaze the fyah, make it bun dem!

  16. #15
    pyton789's Avatar
    Join Date
    Feb 2010
    Gender
    male
    Posts
    793
    Reputation
    38
    Thanks
    2,610
    My Mood
    Sneaky
    Looks good.
    I didn't expect that much response so fast.

    I will try it out later.

    M-efti's Unlocker for alterIWnet . . . . . . . . . . . . . . . . . . . . . . . . . . . .M-efti's MW2 SP Trainer 1.2
    M-efti's Superior alterIWnet Hack . . . . . . . . . . .. . . . . . . . . . . . . . . ..M-efti's MW2 SP Trainer 1.7
    M-efti's BO SP Trainer 4.12 . . . . . . . . . . . . . . . . . . . . . . . . . . . . . . ..M-efti's Dead Pixels Trainer

Page 1 of 2 12 LastLast