コード例 #1
0
    def _handle_dumpmem(self, data):
        """Dump the memory of a process as it is right now."""
        if not data.isdigit():
            log.warning("Received DUMPMEM command with an incorrect argument.")
            return

        dump_memory(int(data))
コード例 #2
0
ファイル: analyzer.py プロジェクト: consen/cuckoo
    def _handle_dumpmem(self, data):
        """Dump the memory of a process as it is right now."""
        if not data.isdigit():
            log.warning("Received DUMPMEM command with an incorrect argument.")
            return

        dump_memory(int(data))
コード例 #3
0
    def _handle_kill(self, data):
        """A process is being killed."""
        if not data.isdigit():
            log.warning("Received KILL command with an incorrect argument.")
            return

        if self.analyzer.config.options.get("procmemdump"):
            dump_memory(int(data))
コード例 #4
0
ファイル: analyzer.py プロジェクト: consen/cuckoo
    def _handle_kill(self, data):
        """A process is being killed."""
        if not data.isdigit():
            log.warning("Received KILL command with an incorrect argument.")
            return

        if self.analyzer.config.options.get("procmemdump"):
            dump_memory(int(data))
コード例 #5
0
ファイル: abstracts.py プロジェクト: CERT-Polska/cuckoo
    def finish(self):
        """Finish run.
        If specified to do so, this method dumps the memory of
        all running processes.
        """
        if self.options.get("procmemdump"):
            for pid in self.pids:
                dump_memory(pid)

        return True
コード例 #6
0
ファイル: abstracts.py プロジェクト: ohyeah521/cuckoo-1
    def finish(self):
        """Finish run.
        If specified to do so, this method dumps the memory of
        all running processes.
        """
        if self.options.get("procmemdump"):
            for pid in self.pids:
                dump_memory(pid)

        return True
コード例 #7
0
ファイル: analyzer.py プロジェクト: hatching/cuckoo-ekhunting
 def dump_memory(self, pid):
     """Dump the memory of the specified PID"""
     dump_memory(pid)
コード例 #8
0
 def dump_procmem(self):
     """Create a memory dump for each running process"""
     for pid in self.pids:
         dump_memory(pid)
     return True