Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- import os
- file_list = [os.path.join('../data/pe/bad', child) for child in os.listdir('../data/pe/bad')]
- file_list += [os.path.join('../data/pe/good', child) for child in os.listdir('../data/pe/good')]
- md5_list = []
- for filename in file_list:
- with open(filename,'rb') as f:
- md5_list.append(c.store_sample(filename, f.read(), 'pe'))
- print 'Files loaded: %d' % len(md5_list)
- md5_list[:5]
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement