| #!/usr/bin/env python3 | |
| import subprocess | |
| import os | |
| f = open("Addresses.txt", "r").read().split('\n') | |
| rootdir = './' | |
| file_name=[] | |
| sub_dir=[] | |
| for subdir, dirs, files in os.walk(rootdir): | |
| for file in files: | |
| file_name.append(file) | |
| sub_dir.append(subdir) | |
| z=0 | |
| # print(f) | |
| file_name=['1.elf'] | |
| for i in f: | |
| p=subprocess.run('echo "db('+i+',length=256)" | vol.py -f ' + sub_dir[0] + '/' + file_name[0] + ' --profile=Win10x64_18362 volshell > ./Dump_Addresses/' + i+'.txt' ,shell=True) | |
| # for i in range(0, len(f)): | |
| # f.write(malware_sample_list[i]+'\n') | |
| # for j in range(0, len(unique_processes[i])): | |
| # name_pid=str(unique_processes[i][j][0])+ ':'+ str(unique_processes[i][j][1]+'\n') | |
| # f.write(name_pid) | |
| # | |
| # f.close() | |