[sleuthkit-users] Autopsy Python module - read file header
Brought to you by:
carrier
|
From: Justin G. <jus...@gm...> - 2015-05-18 21:41:41
|
Autopsy devs--
I've got a python File Ingest Module. Let's say I need to read the first
byte from each file to determine its header value. What's the best way to
do this in Python/Autopsy?
I've got the following function within my module, but it doesn't work.
Jython doesn't seem to handle the callback to fill the buffer.
def process(self, abstractFile):
buf = []
tmp = abstractFile.read(buf, 0, 1)
-Justin
|