trolldbois / python-haystack

Process heap analysis framework - Windows/Linux - record type inference and forensics
http://trolldbois.blogspot.com/search?q=python-haystack
GNU General Public License v3.0
94 stars 33 forks source link

Windows - resource module not available #13

Closed trolldbois closed 8 years ago

trolldbois commented 8 years ago

I’m attempting to use Haystack on Windows, where the ‘resource’ module is not available. It seems that Haystack only needs it in init.py, where it tries to remove file limits:

augment our file limit capacity to max

maxnofile = resource.getrlimit(resource.RLIMIT_NOFILE)

print 'maxnofile', maxnofile

resource.setrlimit( resource.RLIMIT_NOFILE, (maxnofile[1], maxnofile[1]))

Is it possible to update Haystack to not use this code on Windows?