question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Problems Reading string from memory

See original GitHub issue

Hey there, I’m having some problem while trying to read a string from another program. Somehow my output is this:{‘name’: ‘Deezer.exe’, ‘pid’: 1100, ‘handle’: 456, ‘error_code’: None} {‘Titel’: ‘’}

This is my code

from ReadWriteMemory import ReadWriteMemory

rwm = ReadWriteMemory()

process = rwm.get_process_by_name("Deezer.exe")
print(process.__dict__)

process.open()

title_pointer = process.get_pointer(0x04D21E1C, offsets=[0x10C, 0x44, 0x4, 0x30, 0x0])

titel = process.readString(title_pointer, 20)

print({'Titel': titel})

process.close()

And this is what i got with CE

image

I hope someone can help me with this.

Issue Analytics

  • State:open
  • Created 3 years ago
  • Comments:5

github_iconTop GitHub Comments

1reaction
robbyz512commented, May 17, 2022

@HyronNotEZ @Klapity 1 year late but to anyone else having this problem, to find the base address you subtract the pointer base address with it’s address in memory.

explained in this video https://youtu.be/x4WE3mSJoRA?t=36

0reactions
MeblIkeacommented, Aug 20, 2022

@HyronNotEZ @Klapity 1 year late but to anyone else having this problem, to find the base address you subtract the pointer base address with it’s address in memory. explained in this video https://youtu.be/x4WE3mSJoRA?t=36

OR:

base_address = process.get_modules()[0]

AttributeError: 'Process' object has no attribute 'get_modules' 🤔

Read more comments on GitHub >

github_iconTop Results From Across the Web

[Solved] Memory Error while reading the string - CodeProject
If a question is poorly phrased then either ask for clarification, ignore it, or edit the question and fix the problem. Insults are...
Read more >
[Coding] Read string from memory - UnKnoWnCheaTs
Hey UC community, I am having some problems with my code. Code: char string_var = *(char*) ...
Read more >
String memory issue - Programming Questions - Arduino Forum
My code picks up that something has been entered into the serial port, puts it into a String object then runs through a...
Read more >
c++ - Memory and time issue when reading/writing from a file
Problem statement: Read a natural number N and a string from a file, and output in another file the same string N number...
Read more >
Help reading string from memory process - CodeGuru Forums
But the issue with that is that you now have to manually manage the dynamic memory (somewhere, free() must be called to deallocate...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found