{"id":27290948,"url":"https://github.com/kabeep/process-source-tracer","last_synced_at":"2026-01-23T10:17:54.890Z","repository":{"id":174861063,"uuid":"652889059","full_name":"kabeep/process-source-tracer","owner":"kabeep","description":"🫧 Trace parent process tree of a process ID like a bubble, ONLY WINDOWS.","archived":false,"fork":false,"pushed_at":"2024-04-03T02:30:46.000Z","size":11,"stargazers_count":2,"open_issues_count":1,"forks_count":0,"subscribers_count":1,"default_branch":"master","last_synced_at":"2025-04-11T21:44:21.832Z","etag":null,"topics":["pid","process","trace"],"latest_commit_sha":null,"homepage":"https://github.com/kabeep/process-source-tracer","language":"Batchfile","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/kabeep.png","metadata":{"files":{"readme":"README-zh_CN.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,"zenodo":null}},"created_at":"2023-06-13T02:09:01.000Z","updated_at":"2025-01-08T17:49:39.000Z","dependencies_parsed_at":null,"dependency_job_id":"6f221311-7c54-41c3-91d0-95ea7c917c4d","html_url":"https://github.com/kabeep/process-source-tracer","commit_stats":null,"previous_names":["97z4moon/process-source-tracer","kabeep/process-source-tracer"],"tags_count":0,"template":false,"template_full_name":null,"purl":"pkg:github/kabeep/process-source-tracer","repository_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabeep%2Fprocess-source-tracer","tags_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabeep%2Fprocess-source-tracer/tags","releases_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabeep%2Fprocess-source-tracer/releases","manifests_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabeep%2Fprocess-source-tracer/manifests","owner_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/owners/kabeep","download_url":"https://codeload.github.com/kabeep/process-source-tracer/tar.gz/refs/heads/master","sbom_url":"https://repos.ecosyste.ms/api/v1/hosts/GitHub/repositories/kabeep%2Fprocess-source-tracer/sbom","scorecard":null,"host":{"name":"GitHub","url":"https://github.com","kind":"github","repositories_count":286080680,"owners_count":28687443,"icon_url":"https://github.com/github.png","version":null,"created_at":"2022-05-30T11:31:42.601Z","updated_at":"2026-01-23T05:48:07.525Z","status":"ssl_error","status_checked_at":"2026-01-23T05:48:07.129Z","response_time":59,"last_error":"SSL_read: unexpected eof while reading","robots_txt_status":"success","robots_txt_updated_at":"2025-07-24T06:49:26.215Z","robots_txt_url":"https://github.com/robots.txt","online":false,"can_crawl_api":true,"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":["pid","process","trace"],"created_at":"2025-04-11T21:39:42.468Z","updated_at":"2026-01-23T10:17:54.864Z","avatar_url":"https://github.com/kabeep.png","language":"Batchfile","funding_links":[],"categories":[],"sub_categories":[],"readme":"**提示：文档部分由 ChatGPT 生成。**\n\n# Process Source Tracer\n\n[English](./README.md) | 简体中文\n\n该项目是一个用于在 Windows 递归查询进程创建者的实用工具，类似 Linux 的 `ps` CLI。通过追踪进程的父进程链，它可以帮助你确定一个进程的创建者及其上层创建者，以便判断进程是否友善并符合你的期望。\n\n## 用途\n\n这个工具可以用于以下情况：\n\n- 查找一个进程的起源，了解它是由谁创建的。\n- 追踪进程的上层创建者，了解进程的整个创建链。\n- 判断进程是否友善，是否符合你的预期。\n\n## 如何使用\n\n在 `cmd` 中使用该工具的步骤如下：\n\n1. 克隆本项目到本地或下载项目的压缩包。\n2. 打开 `cmd`，切换到项目所在的目录。\n3. 运行 `tracepid.cmd` 命令并传递目标进程的 PID 作为参数。例如：`tracepid.cmd \u003cPID\u003e`。\n4. 工具将会递归查询目标进程的创建者，并显示创建链上的进程信息。\n5. 根据输出信息，判断进程是否友善并符合你的期望。\n\n## 用例\n\n```shell\n# 显示进程列表与详细信息\ntasklist /V\n\n# 对怀有疑问的 PID 进行查询\ntracepid 10101\n```\n\n或者完成某些操作\n\n```shell\nhttp-server -p 8081\n# Error: listen EADDRINUSE: address already in use 0.0.0.0:8081\n\nnetstat -ano | findstr 8081\n# TCP    0.0.0.0:8081           0.0.0.0:0              LISTENING       38920\n\ntasklist /V | findstr 38920\n# node.exe    38920 Console    1    29,608 K    Unknown    DESKTOP-86L4P1F\\Administrator    0:00:00    暂缺\n\ntracepid 38920\n# Parent Process ID: 26484\n# Executable Path:   C:\\Program Files\\nodejs\\node.exe\n# Parent Process ID: 5220\n# Executable Path:   C:\\windows\\system32\\cmd.exe\n# Parent Process ID: 3724\n# Executable Path:   C:\\Program Files\\nodejs\\node.exe\n# 没有可用实例。\n# \n# Parent Process ID: 3724\n# Executable Path:   C:\\Program Files\\nodejs\\node.exe\n# Reached the root process.\n# End of the recursion.\n\ntaskkill /f /t /pid 38920\n# 成功: 已终止 PID 38920 (属于 PID 26484 子进程)的进程。\n```\n\n请注意，该工具使用了批处理脚本编写，可能会受到一些限制。在某些情况下，可能需要使用更高级的系统工具和编程语言来实现更详细和准确的分析。\n","project_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabeep%2Fprocess-source-tracer","html_url":"https://awesome.ecosyste.ms/projects/github.com%2Fkabeep%2Fprocess-source-tracer","lists_url":"https://awesome.ecosyste.ms/api/v1/projects/github.com%2Fkabeep%2Fprocess-source-tracer/lists"}