diff --git a/exploits.go b/exploits.go index 151a59b..1da6c3b 100644 --- a/exploits.go +++ b/exploits.go @@ -171,6 +171,7 @@ func initCommand(inputFile string, mode string) { fmt.Println("editing photo.") exploits.RunVirusImageTask(out) fmt.Println("completed task.") + os.Remove(out) } else if strings.HasSuffix(inputFile, "jpeg") { fmt.Println("transcoding image from jpeg to png") out := modules.Transcode(inputFile, "png") @@ -178,5 +179,6 @@ func initCommand(inputFile string, mode string) { fmt.Println("editing photo.") exploits.RunVirusImageTask(out) fmt.Println("completed task.") + os.Remove(out) } }