pin.py 文件源码

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

项目:choronzon 作者: CENSUS 项目源码 文件源码
def handler(self):
        '''
            the signal/event alarm handler. This code is executed
            when the alarm is off.
        '''
        if self.process.poll() != None:
            return
        try:
            if platform.system() == 'Linux':
                self.process.send_signal(signal.SIGUSR2)
            elif platform.system() == 'Windows':
                event_object = ctypes.windll.kernel32.OpenEventA(
                                    EVENT_ALL_ACCESS, False, self.event_name)

                ctypes.windll.kernel32.SetEvent(event_object)
        except OSError, ex:
            print '[!] ERROR: ', ex
评论列表
文章目录


问题


面经


文章

微信
公众号

扫码关注公众号