Skip to content

Latest commit

 

History

History
42 lines (24 loc) · 1.12 KB

README.md

File metadata and controls

42 lines (24 loc) · 1.12 KB

process-info

processinfo is a system call for Linux kernel.

Details & Guide

  • Compiled on Linux-4.19.161.

  • processinfo.c is for Kernel Space.

  • processinfo_usr.c is for User Space.

  • Customize and use these

335 common mysyscallib __x64_sys_mysyscallib;

asmlinkage long sys_mysyscallib(char*, int, char __user *);

Usage

● without argument, it prints the right usage of this program.
● “-all”, it lists all the processes and some information about them.
● “-p processID”, it outputs the given process ID and its command line.
● “-k processID”, it kills the given process ID

The sample executing formats and its functionality shortly.
./processinfo.out >> program’s right usage
./processinfo.out -all >> all processes some information
./processinfo.out -p 1425 >> process and its cmdline
./processinfo.out -k 1425 >> kill process

Screenshots

processinfoss1

processinfoss2