Advertisement
opexxx

pemd5.py

Jul 14th, 2014
287
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
Python 0.39 KB | None | 0 0
  1. import os
  2. file_list = [os.path.join('../data/pe/bad', child) for child in os.listdir('../data/pe/bad')]
  3. file_list += [os.path.join('../data/pe/good', child) for child in os.listdir('../data/pe/good')]
  4. md5_list = []
  5. for filename in file_list:
  6.     with open(filename,'rb') as f:
  7.         md5_list.append(c.store_sample(filename, f.read(), 'pe'))
  8. print 'Files loaded: %d' % len(md5_list)
  9. md5_list[:5]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement