Skip to content
MPGHThe Dark Arts
/
RegisterLog in
Forum
Community
What's NewLatest posts across the boardTrendingHottest threads right nowSubscribedThreads you follow
Discussion
GeneralIntroductionsEntertainmentDebate FortFlaming & Rage
Board
News & AnnouncementsMPGH TimesSuggestions & HelpGiveaways
More Sections
Art & Graphic DesignProgrammingHackingCryptocurrency
Hacks & Cheats
Games
ValorantCS2 / CS:GOCall of Duty / WarzoneFortniteApex LegendsEscape From Tarkov
+14 moreLeague of LegendsGTA VMinecraftRustROTMGBattlefieldTroveBattleOnCombat ArmsCrossFireBlackshotRuneScapeDayZDead by Daylight
Resources
Game Hacking TutorialsReverse EngineeringGeneral Game HackingAnti-CheatConsole Game Hacking
Tools
Game Hacking ToolsTrainers & CheatsHack/Release NewsNew
Submit a release →Share your cheat, tool, or config with the community.
AINEW
AI Tools
General & DiscussionPrompt EngineeringLLM JailbreaksHotAI Agents & AutomationLocal / Open Models
AI × Gaming
AI Aimbots & VisionML Anti-CheatGame Bots & Automation
Create
AI Coding / Vibe CodingAI Art & MediaAI Voice & TTS
The AI frontier →Where game hacking meets modern machine learning. Jump in.
Marketplace
Buy & Sell
SellingBuyingTradingUser Services
Trust & Safety
Middleman LoungeMarketplace TalkVouch Copy Profiles
Money
Cryptocurrency TalkCurrency ExchangeWork & Job Offers
Start selling →List accounts, services, and goods. Use the middleman to trade safe.
MPGH The Dark Arts

A community for offensive security research, reverse engineering, and AI.

Community

ForumMarketplaceSearch

Account

RegisterLog in

Legal

Privacy PolicyForum RulesHelp & FAQ
© 2026 MPGH · All rights reserved.Built by the community, for the community. For educational purposes onlyContent is shared for security research and education — we don't condone illegal use. You're responsible for complying with applicable laws. Use at your own risk.
Home › Forum › Programming › C# Programming › c# memory class

c# memory class

Posts 1–9 of 9 · Page 1 of 1
XX
xXFleshpoundXx
c# memory class
As the title says I am searching for a simple c# class.

As I know it from Visual Basic one can add a module and "call" the methods in the main form. So i am searching for an easy working c# class which can read and write memory adresses.

Sure, I already searched 4 times in this forum and uncountable times in google for a memory class and I already found results, but not the resulst I want. The classes/codes I found were just too complex for me, because I want to start with c# and already have one year experiences in Java and computer science. According to memory hacking I want to go step by step and so I am searching for the easiest memory class. Here are some cutouts from the class I used in Visual Basic before. Only that you know: this module is not written by me, I just used it to make little Trainers for games like Modern Warfare 2 and I am not that much familiar with coding to write a c# class on my own.


Code:
#Region "Write"
'Writes 1 Byte
    Public Sub Write_Byte(ByVal address As Int32, ByVal value As Byte)
        Dim process_handle As Int32
        process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
        If process_handle <> 0 Then
            WPM(process_handle, address, value, 1, 0)
        End If
        CloseHandle(process_handle)
    End Sub
#End Region

#Region "Read"
'Reads 1 Byte
    Public Function Read_Byte(ByVal address As Int32) As Byte
        Dim process_handle As Int32, value As Byte
        process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
        If process_handle <> 0 Then
            RPM(process_handle, address, value, 1, 0)
        End If
        CloseHandle(process_handle)
        Return value
    End Function
#End Region

'to write an adress:
Write_Byte(&H12345, 120)  'adress and value, just do this methodcall with a timer
Thanks a lot for your attention.
#1 · 13y ago
univex
univex
Quote Originally Posted by xXFleshpoundXx View Post
As the title says I am searching for a simple c# class.

As I know it from Visual Basic one can add a module and "call" the methods in the main form. So i am searching for an easy working c# class which can read and write memory adresses.

Sure, I already searched 4 times in this forum and uncountable times in google for a memory class and I already found results, but not the resulst I want. The classes/codes I found were just too complex for me, because I want to start with c# and already have one year experiences in Java and computer science. According to memory hacking I want to go step by step and so I am searching for the easiest memory class. Here are some cutouts from the class I used in Visual Basic before. Only that you know: this module is not written by me, I just used it to make little Trainers for games like Modern Warfare 2 and I am not that much familiar with coding to write a c# class on my own.


Code:
#Region "Write"
'Writes 1 Byte
    Public Sub Write_Byte(ByVal address As Int32, ByVal value As Byte)
        Dim process_handle As Int32
        process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
        If process_handle <> 0 Then
            WPM(process_handle, address, value, 1, 0)
        End If
        CloseHandle(process_handle)
    End Sub
#End Region

#Region "Read"
'Reads 1 Byte
    Public Function Read_Byte(ByVal address As Int32) As Byte
        Dim process_handle As Int32, value As Byte
        process_handle = OpenProcess(ACCESS_RIGHTS_ALL, False, process_id)
        If process_handle <> 0 Then
            RPM(process_handle, address, value, 1, 0)
        End If
        CloseHandle(process_handle)
        Return value
    End Function
#End Region

'to write an adress:
Write_Byte(&H12345, 120)  'adress and value, just do this methodcall with a timer
Thanks a lot for your attention.
I can send you one class, if you want.. add me on skype: martis011
#2 · 13y ago
abuckau907
abuckau907
if you need help with the general concept of memory reading, I can help explain it if you want?
I only have crossfire, pm me if you want to im.

the functions you posted looked fine..OpenProcess() and ReadProcessMemory() look right. So you just need help with the concepts?
#3 · edited 13y ago · 13y ago
XX
xXFleshpoundXx
When you define concepts with basics then you are right. I want to leant memoryediting or however one want to say it The point is, that i sure coukd take a book istea, but I think the best way to learn is learning by doing and for that one need materials, like tutorials, classes or something else. I asked for a class because a tutorial would be useless for me because i have one year experiences in Java and Java and c# are not that much different.
In the module the method's name is GetProcessId() but generally it has the main function like openprocess()
I will write you a privafe message.I never played crossfire before, but i think it will do the job as well as cod 4 (the game i have hacked before)
#4 · 13y ago
abuckau907
abuckau907
nono, crossfire is a...chatting program? instant messaging. I don't care for it especially, but I do use it.
I also have skype now. same thing, I don't prefer it, but I have it now.

Sorry, because you posted code, I thought you already had a class. What IM do you use? if you have skype add me, name is the same as my username here. I can *try* to explain it / answer as many questions as possible.


for clarification: you know java, but are trying to learn/do this in c#? I'm a vb coder, but I have ported some of my stuff to c#, and the MemoryManager class happens to be one of the things I've ported, so I could upload it somewhere for you, then explain it a little. ???
Also: you are semi-firmiliar with general programming concepts?
The difference between a function and a void function?
variable scoping - public, private, const, etc?
If, switch, loops ?
Classes vs Objects?
??
#5 · edited 13y ago · 13y ago
XX
xXFleshpoundXx
I thought you mean Crossfire the game I am from Germany and i have not heard from Crossfire, a chat programm, before
Sorry, but I do not know what IM means :/ And I added you in Skype.

It would be nice if you could upload it on the internet and then send me.

The topics you named are nothing new for me, I did all this in Java. So I can write If, switch, loops, deal with variables and types, with methods, heredity, abstract classes, arrays and some other stuff, I do not know what I have already learned The problem is, that although I know this basics, I cannot use this in memoryediting, because I do not have the basics in memoryhacking, for example I dont know how to declare the adresses in bytes or let my programm read the process I want to change.
#6 · 13y ago
♪~ ᕕ(ᐛ)ᕗ
♪~ ᕕ(ᐛ)ᕗ
Convert VB.NET to C# - A free code conversion tool - developer Fusion
Use this to convert the code...
#7 · 13y ago
Jorndel
Jorndel
Well, you could use one of my newer release:
http://www.mpgh.net/forum/675-call-d...ryclass-c.html

Or you got 1 in the MW3 Section, used by tons of people.
http://www.mpgh.net/forum/604-call-d...n-jorndel.html
#8 · 13y ago
XX
xXFleshpoundXx
I finally made a working trainer in c#. I really thought that it would be difficult, but it was really easy

I would close this topic by myself, but i think normal users cannot do this. (reported)
#9 · 13y ago
Posts 1–9 of 9 · Page 1 of 1

Post a Reply

Similar Threads

  • C# Memory Class (Writen by Jorndel)By Jorndel in Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    12Last post 7y ago
  • VB.Net Memory Class (Writen by Jorndel)By Jorndel in Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    25Last post 8y ago
  • C# Compact & usefull memory accessing classBy sorpz in Call of Duty Modern Warfare 3 Coding, Programming & Source Code
    12Last post 13y ago
  • Memory Hack base Using Classes Help I Don't Get ItBy kmanev073 in CrossFire Hack Coding / Programming / Source Code
    10Last post 14y ago
  • Direct Memory Access (DMA) to Static Memory AddressesBy Dave84311 in Game Hacking Tutorials
    0Last post 20y ago

Tags for this Thread

None