Results 1 to 8 of 8
  1. #1
    uhZylon's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    192.168.1.1
    Posts
    809
    Reputation
    39
    Thanks
    364
    My Mood
    Amused

    RPM/WPM Tutorial?

    Hey,
    So, i have been searching around the internet for a tutorial about rpm/wpm in c# and couldn't find anything that helps, most if people Asking about c++.
    so i was just asking if anyone knows of any tutorials i can read on how to rpm/wpm that can be transferable over to cod.

  2. #2
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    First of all you would need to "import" the functions from an external class. (API)
    Code:
    [DllImport("kernel32.dll")]
    static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UIntPtr nSize, out IntPtr lpNumberOfBytesWritten);
    [DllImport("Kernel32.dll")]
    static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UInt32 nSize, ref UInt32 lpNumberOfBytesRead);
    And if you would look at WRITE.
    Code:
    static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UIntPtr nSize, out IntPtr lpNumberOfBytesWritten);
    hProcess The process handle value
    lpBaseAddress The location within the memory to access
    lpBuffer The byte array we're writing to the process memory
    nSize The size/length of the data we're writing (ipBuffer.Length)
    lpNumberOfBytesWritten Informs about how many bytes that got written to the memory


    How to get the process handle:
    By using a code like this: ( [0] = The first value in the array returned)
    Code:
    Process.GetProcessesByName("process name")[0].Handle
    //WARNING: The code provided isn't the "secure" way to do this. (You have to check if it exists and so)

    Then to demonstrate how it can look like:
    Code:
    Write(uint address, byte[] bytes, uint length)
    {
    IntPtr bytesWritten;
    WriteProcessMemory(Process.GetProcessesByName("process name")[0].Handle, new IntPtr(address), bytes, length, out bytesWritten);
    }


    BUT: You could always look in the coding section here: C# Programming - MPGH - MultiPlayer Game Hacking & Cheats - Hacks, Cheats, Downloads, Trainers, Games

    If you would like to study a simple class: http://www.mpgh.net/forum/604-call-d...n-jorndel.html

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  3. The Following 3 Users Say Thank You to Jorndel For This Useful Post:

    Lovroman (11-12-2013),uhZylon (11-12-2013),vmu123 (11-12-2013)

  4. #3
    uhZylon's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    192.168.1.1
    Posts
    809
    Reputation
    39
    Thanks
    364
    My Mood
    Amused
    Quote Originally Posted by Jorndel View Post
    First of all you would need to "import" the functions from an external class. (API)
    Code:
    [DllImport("kernel32.dll")]
    static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UIntPtr nSize, out IntPtr lpNumberOfBytesWritten);
    [DllImport("Kernel32.dll")]
    static extern bool ReadProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UInt32 nSize, ref UInt32 lpNumberOfBytesRead);
    And if you would look at WRITE.
    Code:
    static extern bool WriteProcessMemory(IntPtr hProcess, IntPtr lpBaseAddress, byte[] lpBuffer, UIntPtr nSize, out IntPtr lpNumberOfBytesWritten);
    hProcess The process handle value
    lpBaseAddress The location within the memory to access
    lpBuffer The byte array we're writing to the process memory
    nSize The size/length of the data we're writing (ipBuffer.Length)
    lpNumberOfBytesWritten Informs about how many bytes that got written to the memory


    How to get the process handle:
    By using a code like this: ( [0] = The first value in the array returned)
    Code:
    Process.GetProcessesByName("process name")[0].Handle
    //WARNING: The code provided isn't the "secure" way to do this. (You have to check if it exists and so)

    Then to demonstrate how it can look like:
    Code:
    Write(uint address, byte[] bytes, uint length)
    {
    IntPtr bytesWritten;
    WriteProcessMemory(Process.GetProcessesByName("process name")[0].Handle, new IntPtr(address), bytes, length, out bytesWritten);
    }


    BUT: You could always look in the coding section here: C# Programming - MPGH - MultiPlayer Game Hacking & Cheats - Hacks, Cheats, Downloads, Trainers, Games

    If you would like to study a simple class: http://www.mpgh.net/forum/604-call-d...n-jorndel.html
    Thanks a lot. Il take a look at the class.
    Also, where it says processname am i typing "iw6mp64_ship.exe"?

  5. #4
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    Quote Originally Posted by uhZylon View Post

    Thanks a lot. Il take a look at the class.
    Also, where it says processname am i typing "iw6mp64_ship.exe"?
    You're not supposed to include the extension. As it's not a part of the name, it just tells us what sort of "format" it is

    EDIT:
    I'm currently working on a new Memory class for this game.
    Where I'll document it so it's easier for those who would like to learn.
    -As not everyone likes to watch tutorials. (I've made some on YouTube: Link Here
    Last edited by Jorndel; 11-12-2013 at 11:35 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  6. #5
    uhZylon's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    192.168.1.1
    Posts
    809
    Reputation
    39
    Thanks
    364
    My Mood
    Amused
    Quote Originally Posted by Jorndel View Post


    You're not supposed to include the extension. As it's not a part of the name, it just tells us what sort of "format" it is
    so no _ship?

  7. #6
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    Quote Originally Posted by uhZylon View Post

    so no _ship?
    The format/extension would be: .exe
    "Everything" behind the . after a file name tells the format

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

  8. #7
    uhZylon's Avatar
    Join Date
    Aug 2012
    Gender
    male
    Location
    192.168.1.1
    Posts
    809
    Reputation
    39
    Thanks
    364
    My Mood
    Amused
    Quote Originally Posted by Jorndel View Post


    The format/extension would be: .exe
    "Everything" behind the . after a file name tells the format
    Ok, thanks again

  9. #8
    Jorndel's Avatar
    Join Date
    Jul 2010
    Gender
    male
    Location
    Norway
    Posts
    8,674
    Reputation
    905
    Thanks
    18,540
    My Mood
    Angelic
    Quote Originally Posted by uhZylon View Post


    Ok, thanks again
    Your welcome, if you got any other questions you would like me feel free to add me on Skype: jorndel@outlook.com. Or Facebook: facebook.com/TheJorndel
    -As I'm not an active member on this site anymore

    Will only drop by to give people a chance to hack the game and have fun with learning
    Last edited by Jorndel; 11-12-2013 at 11:40 AM.

     
    Contributor 01.27.2012 - N/A
    Donator 07-17-2012 - Current
    Editor/Manager 12-16-12 - N/A
    Minion 01-10-2013 - 07.17.13
    Former Staff 09-20-2012 - 01-10-2013 / 07-17-2013 - Current
    Cocksucker 20-04-2013 - N/A

Similar Threads

  1. [Preview] External GPS via RPM With Basic WPM Features
    By chickeninabiskit in forum DayZ Discussion
    Replies: 9
    Last Post: 10-12-2013, 11:09 AM
  2. [Tutorial] How to make a DayZ RPM/WPM Radar [LEECHED]
    By RE4CTIVE in forum DayZ Mod & Standalone Hacks & Cheats
    Replies: 101
    Last Post: 08-04-2013, 07:54 AM
  3. [Help Request] Making WPM/RPM Radar
    By PhoenixOwner in forum DayZ Help & Requests
    Replies: 7
    Last Post: 07-21-2013, 05:17 PM
  4. Warrock Hack - Tutorial
    By Dave84311 in forum WarRock - International Hacks
    Replies: 667
    Last Post: 10-09-2007, 11:10 AM
  5. Photoshop Tutorials
    By Dave84311 in forum Art & Graphic Design
    Replies: 3
    Last Post: 12-31-2005, 08:21 AM