Description
1 attachmentsSlide 1 of 1attachment_1attachment_1
Unformatted Attachment Preview
Please write the below code as scientific paper code (pseudo code)
like this:
Code1
import os
import glob
list_of_files = glob.glob(‘./*/*.*’)
list_of_yara = glob.glob(‘./*.yara’)
[ تعليق عليهSaGA1]: Insert it as a scientific paper (code)
for yara in list_of_yara:
print(‘n’)
print(‘n’)
print(‘## checking with ‘ + str(yara))
for file_name in list_of_files:
print(‘——————————————–‘)
print(‘Checking file ‘ + str(file_name) + ” with ” + str(yara))
os.system(“sudo yara “+str(yara)+” ” +file_name)
code 2
[ تعليق عليهSaGA2]: The same format here
import os
import glob
list_of_files = glob.glob(‘./*/*.*’)
for file_name in list_of_files:
print(‘——————————————–‘)
print(‘Checking file ‘ + str(file_name))
os.system(“sudo yara Rghad_Rules.yara “+file_name)
print(‘——————————————–‘)
Purchase answer to see full
attachment
Tags:
programming
code
Input Files
Import directoryoffilestorun
User generated content is uploaded by users for the purposes of learning and should be used following Studypool’s honor code & terms of service.