Skip to content

JohnFinn/procmem

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

procmem

Process memory reader & modifier for linux

example:

pid = 2000 # process if we want to read / change memory
with ProcMem(pid) as pm: # closes /proc/pid/mem in __exit__ method
	offset = 0x7ffd025ce62c
	length = 100
	print(pm[offset, length])
	pm[offset] = b'Some other data'
	print(pm[offset, length])

pm = ProcMem(pid)
for address in pm.findAll(b'String to be found'):
	pm[address] = b'Replacer string'
pm.close()

About

Process memory reader & modifier for linux

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages