| View previous topic :: View next topic |
| Author |
Message |
danrevella Master Cheater
Reputation: 2
Joined: 11 Jun 2008 Posts: 292
|
Posted: Sat Feb 08, 2020 2:57 pm Post subject: converting and děsplaying a physical address |
|
|
HI!
I need to know the physical address of a virtual address
Somethingh like this:
| Code: |
local address=getAddress('game.exe+123456')
local PA=dbk_getPhysicalAddress(address)
print (PA)
|
My code does not work: no error but the value of PA is not displayed.
May you help please?
Many thanks.
Danrevella |
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25857 Location: The netherlands
|
Posted: Sat Feb 08, 2020 3:40 pm Post subject: |
|
|
Run this code once:
| Code: |
dbk_initialize()
dbk_useKernelmodeOpenProcess()
OpenProcess(getOpenedProcessID())
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
danrevella Master Cheater
Reputation: 2
Joined: 11 Jun 2008 Posts: 292
|
Posted: Sat Feb 08, 2020 4:42 pm Post subject: |
|
|
Many thanks!!
SOLVED!!!!
this code give me fake results
| Code: | dbk_initialize()
dbk_useKernelmodeOpenProcess()
OpenProcess(getOpenedProcessID())
VBA=getAddress('ttester.exe+3017')
PBA=dbk_getPhysicalAddress(VBA)
print (VBA)
print (PBA)
|
this code does work
| Code: |
dbk_initialize()
dbk_useKernelmodeOpenProcess()
OpenProcess(getOpenedProcessID())
VBA=getAddress('ttester.exe+3017')
PBA=dbk_getPhysicalAddress(VBA)
hPBA = string.format("%x", PBA)
hVBA = string.format("%x", VBA)
print("VirtualBaseAddres:", hVBA)
print("PhysicalBaseAddres:", hPBA)
|
|
|
| Back to top |
|
 |
Dark Byte Site Admin
Reputation: 471
Joined: 09 May 2003 Posts: 25857 Location: The netherlands
|
Posted: Sat Feb 08, 2020 4:47 pm Post subject: |
|
|
Not fake, just real integers.
but you can also do:
| Code: |
print(string.format("VirtualBaseAddres: %x", VBA))
print(string.format("PhysicalBaseAddres: %x", PBA))
|
_________________
Do not ask me about online cheats. I don't know any and wont help finding them.
Like my help? Join me on Patreon so i can keep helping |
|
| Back to top |
|
 |
|