Skip to content

Commit

Permalink
fixed: evilginx aborting when config directory doesn't exist
Browse files Browse the repository at this point in the history
  • Loading branch information
kgretzky committed Feb 17, 2020
1 parent 2ea156b commit fa65529
Showing 1 changed file with 2 additions and 5 deletions.
7 changes: 2 additions & 5 deletions main.go
Original file line number Diff line number Diff line change
Expand Up @@ -64,12 +64,9 @@ func main() {
}
*cfg_dir = filepath.Join(usr.HomeDir, ".evilginx")
}
if _, err := os.Stat(*cfg_dir); os.IsNotExist(err) {
log.Fatal("provided configuration directory path does not exist: %s", *cfg_dir)
return
}

config_path := *cfg_dir
log.Info("loading configuration from: %s", config_path)
log.Info("loading configuration from: %s", config_path)

err := os.MkdirAll(*cfg_dir, os.FileMode(0700))
if err != nil {
Expand Down

0 comments on commit fa65529

Please sign in to comment.