Chat state PTR

Joined
Dec 31, 2015
Messages
712
Reaction score
27
^ this
So basically I'm asking how do I find a pointer for a .dll, and this is samp.dll
I need a pointer to chat state (opened\slosed), I've found this address, it's 2 bytes, but I can't really figure out how do I get static pointer for it
Tried like 15 times to get it via cheat engine, so could guru of reverse engineering help me this time? :O
@0x688, @springfield, @Opcode.eXe
Thanks in advice guys

Would be great if you try to explain how did you find it, but just a pointer would be good too
 

Momo92

Active member
Joined
Aug 21, 2013
Messages
42
Reaction score
0
There are several possible addresses, I use: DWORD(samp.dll+0x12E350) + 0x4 as a Byte, 1 for open, 0 for closed chat. I found this address in IDA. But I think it exists in some source code already, you may want to have a look at the mod_s0beit source.
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
They're already in mod_sa source(link), but do you mean the chat(lines of text) or the input(where you type stuff).
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Momo92 said:
There are several possible addresses, I use: DWORD(samp.dll+0x12E350) + 0x4 as a Byte, 1 for open, 0 for closed chat. I found this address in IDA. But I think it exists in some source code already, you may want to have a look at the mod_s0beit source.

Yea, thanks! I'll try to look inside some sources next time, but I barely understand C++ and all these pointers like par1>par2>par3  etc, because I didn't work with structs yet. But if I couldn't understand it after all try hards, I'll ask it here  :surprised:

Btw I've seen this scatchy address in cheat engine asm debugger, I also have tried to find a pointer for this one, so I can simply add 0x4 after pointer, but it went bad :O

springfield said:
They're already in mod_sa source(link), but do you mean the chat(lines of text) or the input(where you type stuff).
Yea, I've meant input chat bar state

Now I have to figure out how do I get the .dll pointers so I'll not ask those stupid questions here
You could not answer me if you want, thanks any way :p
 
Joined
Feb 18, 2005
Messages
2,963
Reaction score
267
supahdupahnubah said:
Now I have to figure out how do I get the .dll pointers so I'll not ask those stupid questions here
You could not answer me if you want, thanks any way :p

I don't really understand what you mean/want. You could use the pointer given by Momo92.
 

Momo92

Active member
Joined
Aug 21, 2013
Messages
42
Reaction score
0
springfield said:
supahdupahnubah said:
Now I have to figure out how do I get the .dll pointers so I'll not ask those stupid questions here
You could not answer me if you want, thanks any way :p

I don't really understand what you mean/want. You could use the pointer given by Momo92.

Maybe he means how to get the base address of the samp.dll. That depends on if your hack is internal or external. If you inject into the process use GetModuleHandle. If your hack is external you can use EnumProcessModules to retrieve a list of the modules and GetModuleBaseName to compare that to "samp.dll". You may want to read up on the Process Status API.
 
Joined
Dec 31, 2015
Messages
712
Reaction score
27
Momo92 said:
springfield said:
supahdupahnubah said:
Now I have to figure out how do I get the .dll pointers so I'll not ask those stupid questions here
You could not answer me if you want, thanks any way :p

I don't really understand what you mean/want. You could use the pointer given by Momo92.

Maybe he means how to get the base address of the samp.dll. That depends on if your hack is internal or external. If you inject into the process use GetModuleHandle. If your hack is external you can use EnumProcessModules to retrieve a list of the modules and GetModuleBaseName to compare that to "samp.dll". You may want to read up on the Process Status API.

Nope, I know how to get base address, that's pretty simple, I meant, how do I find pointers related on .dll address, like samp.dll+0x2132\any address
 

Momo92

Active member
Joined
Aug 21, 2013
Messages
42
Reaction score
0
As mentioned mod_s0beit_sa contains a lot of information already. For other addresses use CE, IDA, Olly, ReClass or whatever. The process of finding addresses is no different here.
 
Top