MCPcopy Create free account
hub / github.com/Enginex0/zeromount / overwrite_cmdline

Function overwrite_cmdline

src/utils/process.rs:36–61  ·  view source on GitHub ↗

Overwrite /proc/self/cmdline via /proc/self/mem. /proc/self/cmdline is backed by the kernel's view of the argv region in process memory. We locate it via /proc/self/stat (fields 48+49: arg_start and arg_end), then overwrite through /proc/self/mem.

(name: &str)

Source from the content-addressed store, hash-verified

source not stored for this graph (policy: none)

Callers 1

camouflageFunction · 0.85

Calls 2

read_arg_regionFunction · 0.85
openMethod · 0.80

Tested by

no test coverage detected