Skip to content

Commit

Permalink
Fix Obfuscation
Browse files Browse the repository at this point in the history
  • Loading branch information
nickvourd committed Mar 31, 2024
1 parent 3790da8 commit 0e39d0e
Showing 1 changed file with 4 additions and 4 deletions.
8 changes: 4 additions & 4 deletions Packages/Obfuscators/Obfuscators.go
Original file line number Diff line number Diff line change
Expand Up @@ -330,7 +330,7 @@ func DetectObfuscation(obfuscation string, shellcode []string) string {

// Declare variables
var obfuscatedShellcodeString string
var pronousChar string = "character"
var pronousChar string = "byte"
var pronous string = "it"

switch obfuscation {
Expand Down Expand Up @@ -384,7 +384,7 @@ func DetectObfuscation(obfuscation string, shellcode []string) string {
if randomHexCount > 0 {
// if count more than one
if randomHexCount > 1 {
pronousChar = "characters"
pronousChar = "bytes"
pronous = "them"
}

Expand All @@ -404,7 +404,7 @@ func DetectObfuscation(obfuscation string, shellcode []string) string {
if randomHexCount > 0 {
// if count more than one
if randomHexCount > 1 {
pronousChar = "characters"
pronousChar = "bytes"
pronous = "them"
}

Expand All @@ -425,7 +425,7 @@ func CustomPayloadMessage(obfuscation string, randomHexCount int, randomHexValue
var hexString string

if obfuscation != "ipv6" {
fmt.Printf("[+] Configure payload length evenly for %s obfuscation by adding %d random hex %s:\n\n", obfuscation, randomHexCount, pronousChar)
fmt.Printf("[+] Configure payload length evenly for %s obfuscation by adding %d random %s:\n\n", obfuscation, randomHexCount, pronousChar)
} else {
fmt.Printf("[+] Configure payload length evenly for %s obfuscation by adding %d random %s:\n\n", obfuscation, randomHexCount, pronousChar)
}
Expand Down

0 comments on commit 0e39d0e

Please sign in to comment.