Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added command for reading value from memory #346

Open
wants to merge 1 commit into
base: main
Choose a base branch
from

Conversation

mjdr
Copy link

@mjdr mjdr commented Aug 8, 2019

read < type > < addr >

@sriemer
Copy link
Member

sriemer commented Aug 8, 2019

If you know address and type already, for what do you need scanmem then?
There is the dump command. Also ugtrain can watch a configured variable in memory before starting to modify it.

@@ -330,6 +330,21 @@ bool handler__dump(globals_t *vars, char **argv, unsigned argc);

bool handler__write(globals_t *vars, char **argv, unsigned argc);

#define READ_COMPLETE VALUE_TYPES
#define READ_SHRTDOC "read value of a specific memory location"
#define READ_LONGDOC "usage: write <value_type> <address>\n" \
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

write is a copy and paste mistake here.

@12345ieee
Copy link
Member

12345ieee commented Aug 8, 2019

I'm not convinced this should be separate from the dump <addr> <len> command, but if we want it just to give a nice presentation of the read data we should refactor it and dump so that they share most of the code, not repeating it in both places.

@sriemer
Copy link
Member

sriemer commented Aug 8, 2019

How would you handle ASLR/PIC/PIE or dynamic memory with this?

@superprogram
Copy link

hello all, i am beginer on linux

i have run scanmem,
but im stuck now here.

Enter the pid of the process to search using the "pid" command.

PID PROCESS, example i have browser Chromium and there inside like to use SCANMEM!

any can help?

@12345ieee
Copy link
Member

@superprogram This is not the right place for such requests, this is for code discussion.
If you are a newbie, use gameconqueror, that has a user friendly interface.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

4 participants