process获取父进程_Windows Process Explorer获取有关进程的详细信息

process获取父进程

process获取父进程

Windows provides different tools to list and get information about processes. The task manager can be used to list and manage the process. But task manager has limited capabilities. So if we are a pentester or system administrator who lives in deep water we can use process explorer for more functionality.

Windows提供了不同的工具来列出和获取有关进程的信息。 任务管理器可用于列出和管理过程。 但是任务管理器功能有限。 因此,如果我们是生活在深水中的五分之一或系统管理员,则可以使用流程资源管理器以获得更多功能。

下载Windows Process Explorer (Download Windows Process Explorer)

Process explorer is provided as Sysinternal utilities and downloaded from following link as zipped file.

Process Explorer作为Sysinternal实用程序提供,并从以下链接下载为压缩文件。

https://download.sysinternals.com/files/ProcessExplorer.zip

https://download.sysinternals.com/files/ProcessExplorer.zip

In order to run process explorer we just need to select the architecture and click executable. There is no need to install.

为了运行Process Explorer,我们只需要选择架构并单击可执行文件即可。 无需安装。

Download sysinternals
Download sysinternals
下载sysinternals

流程浏览器帮助 (Process Explorer Help)

As we can see in the previous screenshot process explorer comes with a help file in chm format. We can get detailed help about the process explorer from this help document.

正如我们在上一个屏幕截图中所看到的,资源管理器附带了一个chm格式的帮助文件。 我们可以从该帮助文档中获得有关流程浏览器的详细帮助。

使用流程浏览器列出流程 (List Processes with Process Explorer)

We can get process list and their detailed information just clicking to the process explorer file.

我们只需单击流程资源管理器文件即可获取流程列表及其详细信息。

Process List
Process List
Craft.io清单

Process are listed according to their parent and child relationship. Process listed as a sub row are child of the upper process. Following information about processes can be seen from this page.

进程是根据其父子关系列出的。 列为子行的流程是上层流程的子级。 从该页面可以看到有关流程的以下信息。

  • CPU columns shows general CPU usage percentage of this process.

    CPU列显示此过程的常规CPU使用率百分比。

  • Private Bytes columns show the size of memory only used by this process and not shared with other processes and DLL’s.

    Private Bytes列显示仅由该进程使用,而不与其他进程和DLL共享的内存大小。

  • PID column shows process identifier given by operating system and used to easily identify the process.

    PID列显示操作系统提供的进程标识符,用于轻松识别进程。

  • Description columns shows the process information.

    Description列显示过程信息。

  • Company Name columns shows the executable file and application vendor company.

    Company Name列显示可执行文件和应用程序供应商公司。

列出详细的过程信息 (List Detailed Process Information)

More detailed process information can be shown with the properties of the the selected process. Just right click on the process and select Properties . This will open a window like below.

可以显示更多详细的过程信息以及所选过程的属性。 只需右键单击该过程,然后选择“ Properties 。 这将打开如下所示的窗口。

Detailed Process Information
Detailed Process Information
详细的过程信息

We can see that there are a lot of tabs those provides related information. By default threads tab is opened and list existing threads of the current process which their Thread ID.

我们可以看到有很多提供相关信息的标签。 默认情况下,“线程”选项卡处于打开状态,并列出当前进程的现有线程及其“线程ID”。

LEARN MORE  What Is Socket In Linux?
了解更多信息Linux中的套接字是什么?

Following information can be get with other tabs.

以下信息可通过其他选项卡获得。

  • TCP/IP tab provides the network ports and remote connections about this process.

    TCP/IP选项卡提供有关此过程的网络端口和远程连接。

  • Security tab provides owner, group and other related security information

    Security选项卡提供了所有者,组和其他相关的安全性信息

  • Environment tab provides information about the process environment variables like OS, PATH, HOMEPATH etc.

    Environment选项卡提供有关过程环境变量的信息,例如OS,PATH,HOMEPATH等。

  • Strings tab provides the identified strings in this process memory area.

    Strings选项卡在此过程存储区中提供了已识别的字符串。

  • Image tab provides executable file path related information

    Image选项卡提供可执行文件路径的相关信息

  • Performance tab provides CPU, I/O, Memory related statistics and information

    Performance选项卡提供CPU,I / O,与内存相关的统计信息和信息

  • Performance Graph tab shows simple CPU, Memory and I/O graphs about process

    Performance Graph选项卡显示有关进程的简单CPU,内存和I / O图

  • Threads tab shows related threads and their thread ID’s

    Threads选项卡显示相关线程及其线程ID

使用Process Explorer终止进程 (Kill Process with Process Explorer)

Another useful feature of the process explorer is killing selected process. This can be done right click to the related process and select Kill Process from the menu. We can also select process and use DELETE key to do same operation.

进程浏览器的另一个有用功能是杀死选定的进程。 可以右键单击相关过程,然后从菜单中选择Kill Process 。 我们也可以选择进程并使用DELETE键执行相同的操作。

Kill Process
Kill Process
杀死过程

使用Process Explorer杀死进程树(Kill Process Tree with Process Explorer)

In previous step we just killed a single process. We can also kill  the process tree. Process tree is the parent process and its child process. This will also kill the child processes too.

在上一步中,我们只是杀死了一个进程。 我们还可以杀死进程树。 进程树是父进程及其子进程。 这也将杀死子进程。

Kill Process Tree
Kill Process Tree
杀死进程树

检查病毒总数中的进程和可执行安全性(Check Process and Executable Security In Virus Total)

There is very useful feature which is security related. We can check the executable file and running processes against Virus Total. Virtual Total is a services provides more than 50 antivirus applications to check uploaded executable files. This virus check will made us more secure. We can apply this check to suspicious process easily like below.

有一个非常有用的功能,与安全性有关。 我们可以根据Virus Total检查可执行文件和正在运行的进程。 Virtual Total是一项提供50多种防病毒应用程序以检查上传的可执行文件的服务。 此病毒检查将使我们更加安全。 我们可以轻松地将此检查应用于可疑过程,如下所示。

Check Process and Executable In Virus Total
Check Process and Executable In Virus Total
检查过程和可执行的病毒总数

翻译自: https://www.poftut.com/windows-process-explorer-get-detailed-information-processes/

process获取父进程

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
在这个系列课程中,来自微软的权威技术专家将向您解释Windows操作系统的内部工作原理,从系统架构的大局观出发,逐步展示进程、线程、安全机制、内存管理和存储管理等子系统的工作方式。通过对底层原理的揭示,使您更进一步的理解Windows上各类程序的工作方式和如何进行错误诊断及性能优化。 本次课程的内容编排得到了国内知名技术作家,《Windows Internals》一书的中文译者,潘爱民先生的大力支持,同时TechNet也邀请到了众多微软一线技术专家进行讲解。这是一个为IT专业人员量身定做的Windows内部知识课程,在介绍原理的同时,也紧密地围绕实际案例和常见的故障进行分析点评。这是一个系统的学习Windows底层工作机制的好机会,课程内容深入浅出,精彩纷呈,绝对不容错过。 深入研究Windows内部原理系列之一:Windows的昨天、今天和明天 讲师信息:潘爱民 2007年01月25日 14:00-15:30 Level: 300 著名技术作家、微软亚洲研究院研究员潘爱民老师将在这次课程中跟听众分享Windows的发展历程和技术精萃,描绘操作系统的体系架构、Vista的内核变更以及今后版本Windows的发展趋势。 深入研究Windows内部原理系列之二:Windows体系结构-从操作系统的角度 讲师信息:张银奎 2007年01月26日 14:00-15:30 Level: 400 操作系统是计算机系统的灵魂和管理中心,也是软件系统中最复杂的部分。本讲座将以生动的讲解和丰富的演示带您领略Windows操作系统的核心架构和主要组件,包括HAL、内核、执行体、系统进程(IDLE、SMSS.EXE、WinLogon.EXE)和Windows子系统(CSRSS.EXE、WIN32K.SYS以及子系统DLL)等。并讨论中断管理、对象管理、和异常分发等系统机制和实现这些机制的基本数据结构。 深入研究Windows内部原理系列之三:Windows体系结构-从应用程序的角度 讲师信息:曾震宇 2007年01月29日 14:00-15:30 Level: 400 从服务器软件到Office办公应用,从联网游戏到即时消息,不管这些应用的复杂程度如何,他们都是一个个在操作系统控制和管理之下的可执行程序。本次课程邀请微软全球技术中心专家级工程师,为各位讲解一个程序是如何经历从启动、分配资源、运行、结束这一连串的过程,并且介绍其中的重要概念和排错诊断技巧。 深入研究Windows内部原理系列之四:Windows操作系统中的重要基本概念 讲师信息:高宇 2007年01月30日 14:00-15:30 Level: 400 进程、线程、资源分配、内存管理、Win32 API、服务、安全,这些是工作中常常提及但是又无法深入理解的神秘概念。在这次课程中,讲师将介绍Windows中最常见与最重要的一些基本概念. 使大家能够顺利地参与到本系列之后的讨论中去。 深入研究Windows内部原理系列之五:Windows Sysinternals工具集介绍 讲师信息:彭爱华 2007年01月31日 14:00-15:30 Level: 400 Sysinternals Suite(Windows Sysinternals工具集)包含一系列免费的系统工具,其中有大名鼎鼎的Process Explorer、FileMon、RegMon等(在Windows Vista下,FileMon和RegMon则被Process Monitor所代替),如果把系统管理员比喻成战士的话,那么Sysinternals Suite就是我们手中的良兵利器。熟悉和掌握这些工具,并且对Windows的体系有一定的了解,将大幅度的提高日常的诊断和排错能力。本课程将以任务驱动的模式,介绍几个经典的应用案例,来介绍Sysinternals Suite的强大功能。 深入研究Windows内部原理系列之六:Vista新特性底层揭秘 讲师信息:彭爱华 2007年02月01日 14:00-15:30 Level: 400 Windows Vista绝非仅仅是具有诸如3D切换、毛玻璃等炫目的界面效果,花钱购买了Windows Vista,而仅仅为了使用其界面效果,难免有点“买椟还珠”的感觉。实际上Windows Vista值得称道的是它具有很多全新的安全特性,例如用户帐户控制、IE保护模式、服务隔离和Windows资源保护等等。有了这些全新的安全特性,我们就可以在相当的程度上摆脱恶意软件的滋扰。WindowsJim Allchin曾经说过不要满足于只知道How-to、小技巧之类的知识,而是应该深入底层了解其内部原理。只有了解了这些安全特性的内在原理,才
在这个系列课程中,来自微软的权威技术专家将向您解释Windows操作系统的内部工作原理,从系统架构的大局观出发,逐步展示进程、线程、安全机制、内存管理和存储管理等子系统的工作方式。通过对底层原理的揭示,使您更进一步的理解Windows上各类程序的工作方式和如何进行错误诊断及性能优化。 本次课程的内容编排得到了国内知名技术作家,《Windows Internals》一书的中文译者,潘爱民先生的大力支持,同时TechNet也邀请到了众多微软一线技术专家进行讲解。这是一个为IT专业人员量身定做的Windows内部知识课程,在介绍原理的同时,也紧密地围绕实际案例和常见的故障进行分析点评。这是一个系统的学习Windows底层工作机制的好机会,课程内容深入浅出,精彩纷呈,绝对不容错过。 深入研究Windows内部原理系列之一:Windows的昨天、今天和明天 讲师信息:潘爱民 2007年01月25日 14:00-15:30 Level: 300 著名技术作家、微软亚洲研究院研究员潘爱民老师将在这次课程中跟听众分享Windows的发展历程和技术精萃,描绘操作系统的体系架构、Vista的内核变更以及今后版本Windows的发展趋势。 深入研究Windows内部原理系列之二:Windows体系结构-从操作系统的角度 讲师信息:张银奎 2007年01月26日 14:00-15:30 Level: 400 操作系统是计算机系统的灵魂和管理中心,也是软件系统中最复杂的部分。本讲座将以生动的讲解和丰富的演示带您领略Windows操作系统的核心架构和主要组件,包括HAL、内核、执行体、系统进程(IDLE、SMSS.EXE、WinLogon.EXE)和Windows子系统(CSRSS.EXE、WIN32K.SYS以及子系统DLL)等。并讨论中断管理、对象管理、和异常分发等系统机制和实现这些机制的基本数据结构。 深入研究Windows内部原理系列之三:Windows体系结构-从应用程序的角度 讲师信息:曾震宇 2007年01月29日 14:00-15:30 Level: 400 从服务器软件到Office办公应用,从联网游戏到即时消息,不管这些应用的复杂程度如何,他们都是一个个在操作系统控制和管理之下的可执行程序。本次课程邀请微软全球技术中心专家级工程师,为各位讲解一个程序是如何经历从启动、分配资源、运行、结束这一连串的过程,并且介绍其中的重要概念和排错诊断技巧。 深入研究Windows内部原理系列之四:Windows操作系统中的重要基本概念 讲师信息:高宇 2007年01月30日 14:00-15:30 Level: 400 进程、线程、资源分配、内存管理、Win32 API、服务、安全,这些是工作中常常提及但是又无法深入理解的神秘概念。在这次课程中,讲师将介绍Windows中最常见与最重要的一些基本概念. 使大家能够顺利地参与到本系列之后的讨论中去。 深入研究Windows内部原理系列之五:Windows Sysinternals工具集介绍 讲师信息:彭爱华 2007年01月31日 14:00-15:30 Level: 400 Sysinternals Suite(Windows Sysinternals工具集)包含一系列免费的系统工具,其中有大名鼎鼎的Process Explorer、FileMon、RegMon等(在Windows Vista下,FileMon和RegMon则被Process Monitor所代替),如果把系统管理员比喻成战士的话,那么Sysinternals Suite就是我们手中的良兵利器。熟悉和掌握这些工具,并且对Windows的体系有一定的了解,将大幅度的提高日常的诊断和排错能力。本课程将以任务驱动的模式,介绍几个经典的应用案例,来介绍Sysinternals Suite的强大功能。 深入研究Windows内部原理系列之六:Vista新特性底层揭秘 讲师信息:彭爱华 2007年02月01日 14:00-15:30 Level: 400 Windows Vista绝非仅仅是具有诸如3D切换、毛玻璃等炫目的界面效果,花钱购买了Windows Vista,而仅仅为了使用其界面效果,难免有点“买椟还珠”的感觉。实际上Windows Vista值得称道的是它具有很多全新的安全特性,例如用户帐户控制、IE保护模式、服务隔离和Windows资源保护等等。有了这些全新的安全特性,我们就可以在相当的程度上摆脱恶意软件的滋扰。WindowsJim Allchin曾经说过不要满足于只知道How-to、小技巧之类的知识,而是应该深入底层了解其内部原理。只有了解了这些安全特性的内在原理,才
在Python的`multiprocessing`模块中,有多种方法可以实现进程实时获取子进程的数据,以下是两种常用的方法: 1. 使用`multiprocessing.Pipe`进行进程间通信。在子进程中,你可以将数据写入管道中;在进程中,你可以实时读取管道中的数据。以下是一个示例代码: ```python from multiprocessing import Process, Pipe def child_process(conn): for i in range(10): conn.send(f"Message {i} from child process") conn.close() if __name__ == "__main__": parent_conn, child_conn = Pipe() p = Process(target=child_process, args=(child_conn,)) p.start() while True: if parent_conn.poll(): # 检查管道是否有数据 message = parent_conn.recv() # 读取管道中的数据 print(f"Received message in parent process: {message}") if not p.is_alive(): # 如果子进程已经结束,退出循环 break p.join() ``` 2. 使用`multiprocessing.Queue`进行进程间通信。在子进程中,你可以将数据加入队列中;在进程中,你可以实时从队列中读取数据。以下是一个示例代码: ```python from multiprocessing import Process, Queue def child_process(q): for i in range(10): q.put(f"Message {i} from child process") if __name__ == "__main__": q = Queue() p = Process(target=child_process, args=(q,)) p.start() while True: if not q.empty(): # 检查队列是否有数据 message = q.get() # 从队列中读取数据 print(f"Received message in parent process: {message}") if not p.is_alive(): # 如果子进程已经结束,退出循环 break p.join() ``` 需要注意的是,以上两种方法都需要在进程中使用循环实时获取子进程的数据,并且在进程中需要判断子进程是否已经结束。

“相关推荐”对你有帮助么?

  • 非常没帮助
  • 没帮助
  • 一般
  • 有帮助
  • 非常有帮助
提交
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值