for root,dirs,files in os.walk(payloadPath):
for tempFile in files:
path = os.path.join(root,tempFile)
# print "文件路径 =" +path
with open(path,"rb") as file:
for line in file:
if (line.find("xxxx")>0):
print "******存在******"
#写日志
filePath = path+"\n"
fileList.append(filePath)
break
网友评论