diff --git a/Loader/Loader.go b/Loader/Loader.go index fc62ea5..903482e 100644 --- a/Loader/Loader.go +++ b/Loader/Loader.go @@ -99,7 +99,7 @@ func GenerateOptions(stage, sleeptime, jitter, useragent, uri, customuri, custom if ThreadSpoof == true { fmt.Println("[!] ThreadSpooffing in enabled") } - if syscall_method == "none" { + if syscall_method == "None" { fmt.Println("[!] No Syscall method selected") } else { fmt.Println("[!] " + syscall_method + " syscall method selected") @@ -334,11 +334,11 @@ func GeneratePE(beacon_PE string, syscall_method string) (map[string]string, map } if syscall_method != "" { - if syscall_method == "none" { + if syscall_method == "None" { Beacon_Stage_p1.Variables["syscall_method"] = "None" - } else if syscall_method == "direct" { + } else if syscall_method == "Direct" { Beacon_Stage_p1.Variables["syscall_method"] = "Direct" - } else if syscall_method == "indirect" { + } else if syscall_method == "Indirect" { Beacon_Stage_p1.Variables["syscall_method"] = "Indirect" } else { log.Fatal("Error: Please provide a valid Syscall Method") diff --git a/Utils/Utils.go b/Utils/Utils.go index 369927e..22211e5 100644 --- a/Utils/Utils.go +++ b/Utils/Utils.go @@ -91,7 +91,7 @@ func GenerateSingleValue(num int) string { n := num b := make([]byte, n) for i := range b { - b[i] = alphanum[rand.Intn(len(alpha))] + b[i] = alphanum[rand.Intn(len(alphanum))] } return string(b) }