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

chore: merge upstream #1

Open
wants to merge 246 commits into
base: dev
Choose a base branch
from
Open

chore: merge upstream #1

wants to merge 246 commits into from

Conversation

GZTimeWalker
Copy link
Member

No description provided.

@GZTimeWalker
Copy link
Member Author

cc @KpwnZ

bata24 and others added 10 commits February 12, 2025 10:58
After changing the Linux kernel security parameters on my system,
this tool has broken.

For example:
```
gef> ksymaddr-remote -r
[+] Wait for memory scan
[*] Make sure you are in ring0 (=kernel mode)
[+] Try to re-parse (ignore cached config)
[+] Failed to parse
```

It took me some time to debug this and find out the real reason:
setting sysctl `kernel.yama.ptrace_scope` to non-zero value breaks
the `pagewalk` command that depends on reading `/proc/pid/mem`.

Let's improve the debug output. This would allow to detect the problem
immediately:
```
gef> ksymaddr-remote -r
[+] Wait for memory scan

------------------------------- Exception raised -------------------------------
PermissionError: [Errno 13] Отказано в доступе: '/proc/24150/mem'
----------------------------- Detailed stacktrace ------------------------------
...
--------------------------------------------------------------------------------

[*] Make sure you are in ring0 (=kernel mode)
[+] Try to re-parse (ignore cached config)
[+] Failed to parse
```
@bata24 bata24 force-pushed the dev branch 4 times, most recently from 74ba9a5 to daef6a0 Compare February 13, 2025 06:16
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.

4 participants