Code
Hub
Workspaces
Following
Trending
Connect
MCP
copy
Create free account
hub
/
github.com/Sndav/CVE-2026-31431-Advanced-Exploit
/ functions
Functions
13 in github.com/Sndav/CVE-2026-31431-Advanced-Exploit
⨍
Functions
13
◇
Types & classes
1
↓ 3 callers
Function
usage
()
exploit.py:333
↓ 2 callers
Function
_write_4bytes
Write exactly 4 bytes (`value`) at `file_offset` in target_fd's page cache. Mechanism: 1. sendmsg provides AAD: bytes 0-
exploit.py:94
↓ 2 callers
Function
cmd_write
()
exploit.py:350
↓ 2 callers
Method
write
Write `data` at `offset` in the target file's page cache. Args: offset: Byte offset within the file (0-indexed).
exploit.py:184
↓ 1 callers
Function
_build_cmsg
AF_ALG ancillary data for AEAD decrypt: - ALG_SET_OP = 0 (decrypt) - ALG_SET_IV = 16 zero bytes - ALG_SET_AEAD_ASSOCLEN = 8
exploit.py:75
↓ 1 callers
Function
cmd_escalate
()
exploit.py:393
↓ 1 callers
Function
escalate_passwd
把 root:x: 改成 root:: (无密码),comment 字段补空格保持行长度不变。 任何用户 su root 不需要密码。
exploit.py:235
↓ 1 callers
Function
main
()
exploit.py:311
↓ 1 callers
Method
read_cached
Read back from the file (will hit page cache, showing our writes). Useful for verification.
exploit.py:226
Method
__enter__
(self)
exploit.py:174
Method
__exit__
(self, *_)
exploit.py:179
Method
__init__
(self, path: str)
exploit.py:170
Function
_splice
(fd_in, fd_out, count, offset_src=None, offset_dst=None)
exploit.py:21