View previous topic :: View next topic |
Author |
Message |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Mon Sep 28, 2015 7:18 pm Post subject: change register location in C++ |
|
|
hi how do you use change register location in c++
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Sep 28, 2015 9:42 pm Post subject: |
|
|
GetThreadContext / SetThreadContext, you need to suspend the thread you plan to edit before you use these API.
_________________
- Retired. |
|
Back to top |
|
 |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Sun Oct 04, 2015 12:11 pm Post subject: |
|
|
can you make me a script because i dont see any on google
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Sun Oct 04, 2015 2:27 pm Post subject: |
|
|
Why use these apis with a script when you can use CE's own function for debugging ? I am assuming by script you mean LUA.
_________________
|
|
Back to top |
|
 |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Sun Oct 04, 2015 4:27 pm Post subject: |
|
|
plz
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Sun Oct 04, 2015 9:35 pm Post subject: |
|
|
STN wrote: | Why use these apis with a script when you can use CE's own function for debugging ? I am assuming by script you mean LUA. |
His first post implied he wants it done in C++.
_________________
- Retired. |
|
Back to top |
|
 |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Mon Oct 05, 2015 12:15 am Post subject: |
|
|
O ya I forgot something I also want kernel mode debugging with it (virtualization) thingy like do you know where I can get script or can you make one for me plz and if it requires assembly I'll try to learn that
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Mon Oct 05, 2015 11:54 am Post subject: |
|
|
zakusa wrote: | O ya I forgot something I also want kernel mode debugging with it (virtualization) thingy like do you know where I can get script or can you make one for me plz and if it requires assembly I'll try to learn that |
It sounds like you are trying to run before you can walk in terms of programming. From my first suggestion you don't seem to know how to even use those two fairly simple API. I would suggest you take the time to learn what you are doing before you jump into things like this. Especially if you plan on starting to work on kernel level things.
_________________
- Retired. |
|
Back to top |
|
 |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Mon Oct 05, 2015 2:44 pm Post subject: |
|
|
plz no i want to start with kernel virtualization if you make me script i can try to study everything inside and ya then ill know everything i know how to use write processmemory and i know a bit of assembly like inc means increment and stuff liek that oh and if you go to google and type in c++ mid function hooking then like the first video is guided hacking ( fleep hacks ) is that how to use kernel in c++ because if not then i dont see a point in making a video that long to write to bytes because he used assembly and everything and all hes doing is tracing bytes i think
|
|
Back to top |
|
 |
atom0s Moderator
Reputation: 205
Joined: 25 Jan 2006 Posts: 8587 Location: 127.0.0.1
|
Posted: Tue Oct 06, 2015 1:10 pm Post subject: |
|
|
zakusa wrote: | plz no i want to start with kernel virtualization if you make me script i can try to study everything inside and ya then ill know everything i know how to use write processmemory and i know a bit of assembly like inc means increment and stuff liek that oh and if you go to google and type in c++ mid function hooking then like the first video is guided hacking ( fleep hacks ) is that how to use kernel in c++ because if not then i dont see a point in making a video that long to write to bytes because he used assembly and everything and all hes doing is tracing bytes i think |
You have no idea what you are doing, I am not going to spoon feed you and hand you things. Take the time to learn what you are doing.
_________________
- Retired. |
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Tue Oct 06, 2015 1:36 pm Post subject: |
|
|
zakusa wrote: | plz no i want to start with kernel virtualization if you make me script i can try to study everything inside and ya then ill know everything i know how to use write processmemory and i know a bit of assembly like inc means increment and stuff liek that oh and if you go to google and type in c++ mid function hooking then like the first video is guided hacking ( fleep hacks ) is that how to use kernel in c++ because if not then i dont see a point in making a video that long to write to bytes because he used assembly and everything and all hes doing is tracing bytes i think |
Fleep makes awesome videos, not his fault if you don't know what they are about.
Anyway, what you want to do is not barely about a 'script' (please stop calling c++ code a script) you have to understand how the kernel works and visualization, that is not something you just learn from looking at a piece of code with pure dedication.
You made me actually laugh about how you know about inc lol, i know more opcodes than you and i still can't write kernel virtualization code. I am not even sure why you want kernel virtualization for changing registers ?
Learn C++, it will only take you a week to get the basics down, a month and you can code something decent. Then read about the API's atomos suggested and it shouldn't be hard for you. Even if you couldn't do it then at least you will be able to post code and have people able to help you better.
Or Go with LUA and use CE's features. Someone will post a script for you as its just a few lines of code and you can probably learn it with pure dedication as well.
_________________
|
|
Back to top |
|
 |
zakusa Cheater
Reputation: 0
Joined: 09 Sep 2015 Posts: 48
|
Posted: Tue Oct 06, 2015 7:39 pm Post subject: |
|
|
but i do know c++ and ya i dont know alot about kernel but i can learn it not hard the only hack i know in c++ is writeprocessmemory liek values and bytes from addresses and i dont know pointer either i made another thread but no one is answering that and when i see words i dont know in "programming*" i use google to learn but pointer is the very hard thing ya and on google i dont see any videos on how to use change register location with kernel and i dont think its hard because all you do is use hwnd to attach process then you write the address as a dword variable and then you use mov eax, 1 something liek that or mov ecx, 1 but if someone give me script it would be easy because i dont want to spend a month learning c++ so far it has been like 2 weks and i didnt learn anything new because i dont see where to learn stuff at but since you say fleep makes good videos i may try to learn there o ya and another problem i dont think he uses kernel debugging i saw a c++ hack it had "GetLibraryA("Kernel32.dll")" and i think that what gets the kernel dll to use as debugger or something
|
|
Back to top |
|
 |
STN I post too much
Reputation: 43
Joined: 09 Nov 2005 Posts: 2676
|
Posted: Wed Oct 07, 2015 11:50 am Post subject: |
|
|
Here is the thing, you will not find videos showing you how to write kernel debugging code just like you will never find someone make a video showing how to make a memory scanner or debugger. If you need a video to make stuff like that, you need to get back to the basics.
I have a feeling there is a simpler way to do what you are trying to do, what exactly are you trying to do ? If you want to change the value of a register, code injection can do that
mov register, value
Fetch the bytes and use them in your call to WPM.
Want to read a register value ? Code injection can do that. Set up a cave (allocate memory or choose a code cave), store the register value there and read it with your trainer e.g
mov [myregistervaluevar], ebx
or you can fetch the value pointed by a memory location
push eax
mov eax, [ebx+12]
mov [myregistervaluevar], eax
pop eax
myregistervaluevar will contain the value of ebx or [ebx+12] depending on the code you choose.
No need for debugging from your trainer (i have had never to use it not even with CE lua's script in my 4 years of constant game-training).
Start by learning code injection, read all the tutorials you can find and absorb as much knowledge as you can then grab some oldskool trainer templates which show you how to implement your code injection bytes into C++ code if you don't already know that or just use CE trainer maker. Expect a lot of spoon-feeding if you go down this path so it will be easier.
If you still want to go down the path of debugging from your own trainer, get your c++ skills or whatever your choice of language is and better understand the architecture of a windows system and how inter-process communication works, the whole deal. You may even find source codes showing simple debugging (Iczellion wrote something if i remember correctly). Don't expect any spoon-feeding when you go down this path unless you show some work.
Good luck
_________________
|
|
Back to top |
|
 |
|