Skip to content

Commit

Permalink
Update Supernova.go
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvourd authored Feb 6, 2024
1 parent 3641262 commit 1f21e06
Showing 1 changed file with 8 additions and 6 deletions.
14 changes: 8 additions & 6 deletions Supernova.go
Original file line number Diff line number Diff line change
Expand Up @@ -104,16 +104,18 @@ func main() {
foundLanguage := Arguments.ValidateArgument("lang", options.language, []string{"Nim", "Rust", "C", "CSharp", "Go", "Python"})

// Check if the encryption or obfuscation option is not used
if options.encryption == "" && options.obfuscation == "" {
if options.encryption == "" {
// && options.obfuscation == ""
logger := log.New(os.Stderr, "[!] ", 0)
logger.Fatal("Please choose either the encryption option or the obfuscation option to proceed!\n")
logger.Fatal("Please choose the encryption option to proceed!\n")
// logger.Fatal("Please choose either the encryption option or the obfuscation option to proceed!\n")
}

// Check if encryption and obfuscation are used together
if options.encryption != "" && options.obfuscation != "" {
logger := log.New(os.Stderr, "[!] ", 0)
logger.Fatal("You cannot choose both the encryption and obfuscation options; please select only one!\n")
}
// if options.encryption != "" && options.obfuscation != "" {
// logger := log.New(os.Stderr, "[!] ", 0)
// logger.Fatal("You cannot choose both the encryption and obfuscation options; please select only one!\n")
//}

// Call function named ConvertShellcode2Hex
convertedShellcode, payloadLength := Converters.ConvertShellcode2Hex(rawShellcode, foundLanguage)
Expand Down

0 comments on commit 1f21e06

Please sign in to comment.