winutil.py 文件源码

python
阅读 26 收藏 0 点赞 0 评论 0

项目:flare-fakenet-ng 作者: fireeye 项目源码 文件源码
def get_pid_port_udp(self, port):

        for item in self.get_extended_udp_table():

            lPort = socket.ntohs(item.dwLocalPort)
            lAddr = socket.inet_ntoa(struct.pack('L', item.dwLocalAddr))
            pid   = item.dwOwningPid

            if lPort == port:
                return pid
        else:
            return None

    ###############################################################################
    # Retrieves the name of the executable file for the specified process.
    #
    # DWORD WINAPI GetProcessImageFileName(
    #   _In_  HANDLE hProcess,
    #   _Out_ LPTSTR lpImageFileName,
    #   _In_  DWORD  nSize
    # );
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号