Skip to content

How to scan for basic int value #15

Closed Answered by fuqiuluo
ascorbic-acid asked this question in Q&A
Discussion options

You must be logged in to vote
std::ifstream maps(std::string("/proc/") + std::to_string(pid) + "/maps");
if (!maps.is_open()) {
    throw hak::file_not_found();
}

Before starting the search, Hak needs to obtain the content of the process maps. If the object cannot be found (the process does not exist) or the permissions are insufficient, it will prompt that it cannot be opened.

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Answer selected by ascorbic-acid
Comment options

You must be logged in to vote
0 replies
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
2 participants