Package modules :: Package packages :: Module bin
[hide private]
[frames] | no frames]

Source Code for Module modules.packages.bin

 1  # Copyright (C) 2010-2014 Cuckoo Foundation. 
 2  # This file is part of Cuckoo Sandbox - http://www.cuckoosandbox.org 
 3  # See the file 'docs/LICENSE' for copying permission. 
 4   
 5  from lib.common.abstracts import Package 
 6  from lib.api.process import Process 
 7   
8 -class Shellcode(Package):
9 """Shellcode (any x86 executable code) analysis package.""" 10
11 - def start(self, path):
12 p = Process() 13 dll = self.options.get("dll") 14 p.execute(path="bin/execsc.exe", args=path, suspended=True) 15 p.inject(dll) 16 p.resume() 17 18 return p.pid
19
20 - def check(self):
21 return True
22
23 - def finish(self):
24 if self.options.get("procmemdump", False): 25 for pid in self.pids: 26 p = Process(pid=pid) 27 p.dump_memory() 28 29 return True
30