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

Does Sark cover accessing strings or other constant symbols? #98

Open
NSExceptional opened this issue May 27, 2021 · 2 comments
Open

Does Sark cover accessing strings or other constant symbols? #98

NSExceptional opened this issue May 27, 2021 · 2 comments

Comments

@NSExceptional
Copy link

NSExceptional commented May 27, 2021

I don't see any APIs for accessing strings and things like that. IDA's API for strings seems pretty straightforward I guess, so is that why you didn't include your own wrapper?

Edit: I lied it is NOT straightforward

@tmr232
Copy link
Owner

tmr232 commented May 28, 2021

If you're asking about accessing strings from the strings window, and getting constant values - then no, There is no support for that currently.

I did not use those APIs enough while developing Sark, so I never considered developing wrappers for them.
I'll welcome a PR if you're willing to write one.

As for string APIs - we do have sark.data.get_string(ea) and some similar APIs, if that is relevant to you.

@NSExceptional
Copy link
Author

NSExceptional commented May 28, 2021

Gotcha. I do a lot of Objective-C reverse engineering so the strings window is useful for finding specific method calls via xrefs to strings.

I will leave this open for now because I will probably have more questions soon, now that you've helped me figure out how to get a segment by name. My current strategy is to enumerate the lines of the text segment to see if that will do for my needs.

I'm making a VS Code extension to interact with the most commonly used parts of IDA, so I need to be able to replicate the information provided by the strings window, such as searching for strings and viewing xrefs.

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

No branches or pull requests

2 participants