November 2019
Intermediate to advanced
346 pages
9h 36m
English
In this recipe, you will learn how to create adversarial malware:
import osimport pandas as pdfrom keras.models import load_modelimport MalGAN_utilsimport MalGAN_gen_adv_examples
save_path = "MalGAN_output"model_path = "MalGAN_input/malconv.h5"log_path = "MalGAN_output/adversarial_log.csv"pad_percent = 0.1threshold = 0.6step_size = 0.01limit = 0.input_samples = "MalGAN_input/samplesIn.csv"
MalGAN_utils.limit_gpu_memory(limit)
df = pd.read_csv(input_samples, ...