{"id":22513290,"url":"https://github.com/0xamined/process-hunter","last_synced_at":"2025-10-10T16:26:39.793Z","repository":{"id":265297877,"uuid":"895721365","full_name":"0xAminED/Process-Hunter","owner":"0xAminED","description":"A C program that retrieves detailed information about a running process in the operating system using the Process ID (PID)","archived":false,"fork":false,"pushed_at":"2024-11-28T20:21:05.000Z","size":7,"stargazers_count":1,"open_issues_count":0,"forks_count":0,"subscribers_count":1,"default_branch":"main","last_synced_at":"2025-02-02T03:18:41.262Z","etag":null,"topics":["c","forensics","malware-analysis","process-monitor"],"latest_commit_sha":null,"homepage":"","language":"C","has_issues":true,"has_wiki":null,"has_pages":null,"mirror_url":null,"source_name":null,"license":"mit","status":null,"scm":"git","pull_requests_enabled":true,"icon_url":"https://github.com/0xAminED.png","metadata":{"files":{"readme":"README.md","changelog":null,"contributing":null,"funding":null,"license":"LICENSE","code_of_conduct":null,"threat_model":null,"audit":null,"citation":null,"codeowners":null,"security":null,"support":null,"governance":null,"roadmap":null,"authors":null,"dei":null,"publiccode":null,"codemeta":null}},"created_at":"2024-11-28T18:54:35.000Z","updated_at":"2024-11-28T20:28:42.000Z","dependencies_parsed_at":"2024-11-28T20:18:40.530Z","dependency_job_id":"10f31772-4ed4-4721-9197-02fbcddc4d8a","html_url":"https://github.com/0xAminED/Process-Hunter","commit_stats":null,"previous_names":["0xamined/process-hunter"],"tags_count":0,"template":false,"template_full_name":null,"repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAminED%2FProcess-Hunter","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAminED%2FProcess-Hunter/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAminED%2FProcess-Hunter/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/0xAminED%2FProcess-Hunter/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/0xAminED","download_url":"https://codeload.github.com/0xAminED/Process-Hunter/tar.gz/refs/heads/main","host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":245950549,"owners_count":20699090,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2022-07-04T15:15:14.044Z","host_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub","repositories_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories","repository_names_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repository_names","owners_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners"}},"keywords":["c","forensics","malware-analysis","process-monitor"],"created_at":"2024-12-07T03:11:03.182Z","updated_at":"2025-10-10T16:26:34.746Z","avatar_url":"https://github.com/0xAminED.png","language":"C","funding_links":[],"categories":[],"sub_categories":[],"readme":"# Process-Hunter\n\nA C program that retrieves detailed information about a running process in the operating system using the **Process ID (PID)**. This program utilizes the Linux `/proc` filesystem to extract useful details such as process name, command-line arguments, state, parent process ID, memory usage, and executable path.\n\n## Features\n\n- **Process Name**: Fetches the name of the process.\n- **Command-line Arguments**: Retrieves the command-line arguments used to launch the process.\n- **Process State**: Displays the current state of the process (e.g., running, sleeping).\n- **Parent Process ID (PPID)**: Fetches the parent process ID.\n- **Memory Usage**: Displays the virtual memory size of the process.\n- **Number of Threads**: Shows the number of threads used by the process.\n- **Executable Path**: Gets the path to the executable of the running process.\n- **Error Handling**: Gracefully handles errors such as invalid PID or file access issues.\n\n## Requirements\n\n- **C Compiler**: `gcc` or compatible C compiler.\n- **Linux Operating System**: This program is designed to work on Linux-based systems as it uses the `/proc` filesystem.\n\n## Installation\n\nTo build and run the project on a Linux-based system:\n\n1. **Clone the repository**:\n```bash\ngit clone https://github.com/0xAminED/Process-Hunter.git\ncd Process-Hunter\n```\n\n2. **Compile the code**:\n```bash\ngcc -o Process_Hunter Process_Hunter.c\n```\n3. **Run the process scanner**:\n```bash\n./Process_Hunter\n```\n\n## Usage\n\nThe program requires the **Process ID (PID)** of the process whose details you want to retrieve.\n\n\n### Example\n\n```bash\nEnter Process ID (PID): 1234\nFetching information for PID: 1234\nProcess Name: bash\nCommand-line: /bin/bash -c sleep 100\n=== Status ===\nState: S (sleeping)\nPPid: 1000\nThreads: 1\nVmSize: 12456 kB\nExecutable Path: /usr/bin/bash\n```\n\n\n## Explanation of Output\n\n- **Process Name**: Displays the name of the process.\n- **Command-line**: Shows the full command line used to start the process.\n- **State**: The current state of the process (e.g., sleeping, running).\n- **Parent Process ID (PPid)**: The PID of the parent process that spawned the current process.\n- **Threads**: Displays The number of threads associated with the process.\n- **VmSize**: The virtual memory size allocated to the process.\n- **Executable Path**: The full path to the executable file running the process.\n\n\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE](LICENSE) file for details.\n\n## Acknowledgments\n\n- Thanks to the contributors for their valuable feedback and improvements.\n\n\n\n\n\n\n\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xamined%2Fprocess-hunter","html_url":"https://awesome.ecosyste.ms/projects/github.com%2F0xamined%2Fprocess-hunter","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2F0xamined%2Fprocess-hunter/lists"}