Skip to content

handy-sun/intcpt

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

12 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

intcpt

intercept a run process and read/write memory


1. Requirements

In order to build this project, The commands autoconf and automake need to be installed in your system, for example

1.1 Debian/Ubuntu

sudo apt install autoconf automake

1.2 Centos/Fedora

sudo yum install autoconf automake

1.2 ArchLinux/Manjaro

sudo pacman -S autoconf automake

2. Build

Go the root of project:

./autogen.sh
./configure
make

And your project should compile. Now you are all set with a lean template to build upon.

Your binary should be available at src/intcpt.

NOTE: autogen.sh and configure only run for the first time or makefile.am, configure.ac modified.

3. Usage

NOTE: This program(intcpt) must be run with root privileges!

sudo /path/to/intcpt [PID] [VARIABLE_NAME]
  • PID: the running process pid(you can use pgrep/pidof to get pid from program name)
  • VARIABLE_NAME: the global/static variable you want to search

4. Bugs, Requests and Support

For bug reports, feature requests and general questions, please open issues.

About

tracing another process by using ptrace

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published