From 6d8315ab0b51531544b16fd377bb96979995c436 Mon Sep 17 00:00:00 2001 From: dmur1 <93072266+dmur1@users.noreply.github.com> Date: Thu, 14 Nov 2024 16:52:54 +0000 Subject: [PATCH] use a better emoji for warnings the previous one wasn't rendering correctly on all platforms fixes: https://github.com/rerrorctf/ret/issues/221 --- commands/capture.go | 2 +- commands/decompress.go | 2 +- commands/inscount.go | 4 ++-- commands/pwn.go | 4 ++-- 4 files changed, 6 insertions(+), 6 deletions(-) diff --git a/commands/capture.go b/commands/capture.go index b9f42ee..a02fda6 100644 --- a/commands/capture.go +++ b/commands/capture.go @@ -37,7 +37,7 @@ func CaptureHelp() string { func displayCurrentFlag() { flag, err := util.GetCurrentFlag() if err != nil { - fmt.Printf("⚠️ "+theme.ColorYellow+" warning"+theme.ColorReset+": flag file \"%s\" doesn't exist\n", config.FlagFileName) + fmt.Printf("😰"+theme.ColorYellow+" warning"+theme.ColorReset+": flag file \"%s\" doesn't exist\n", config.FlagFileName) return } diff --git a/commands/decompress.go b/commands/decompress.go index bdd724b..37287d3 100644 --- a/commands/decompress.go +++ b/commands/decompress.go @@ -47,7 +47,7 @@ func Decompress(args []string) { if decompressed { fmt.Printf("🤏 "+theme.ColorGreen+"decompressed"+theme.ColorReset+":\"%s\"\n", file) } else { - fmt.Printf("⚠️ "+theme.ColorYellow+"unable to decompress"+theme.ColorReset+":\"%s\"\n", file) + fmt.Printf("😰 "+theme.ColorYellow+"unable to decompress"+theme.ColorReset+":\"%s\"\n", file) } } } diff --git a/commands/inscount.go b/commands/inscount.go index f0cc7ec..d4b4005 100644 --- a/commands/inscount.go +++ b/commands/inscount.go @@ -53,7 +53,7 @@ func Inscount(args []string) { binaries := util.GuessBinary() if len(binaries) > 1 { - fmt.Printf("⚠️ multiple candidate binaries found\n") + fmt.Printf("😰multiple candidate binaries found\n") for _, binary := range binaries { fmt.Printf("%s\n", binary) } @@ -63,7 +63,7 @@ func Inscount(args []string) { if strings.Compare(binary, config.DefaultBinaryName) != 0 { if !util.BinaryIsExecutable(binary) { - fmt.Printf("⚠️ "+theme.ColorGray+" \""+theme.ColorReset+"%v"+theme.ColorGray+"\""+theme.ColorRed+" is not executable"+theme.ColorReset+"\n", binary) + fmt.Printf("😰"+theme.ColorGray+" \""+theme.ColorReset+"%v"+theme.ColorGray+"\""+theme.ColorRed+" is not executable"+theme.ColorReset+"\n", binary) } } diff --git a/commands/pwn.go b/commands/pwn.go index 747d8e9..a3a8d83 100644 --- a/commands/pwn.go +++ b/commands/pwn.go @@ -60,7 +60,7 @@ func makePwnScript(ip string, port int) { binaries := util.GuessBinary() if len(binaries) > 1 { - fmt.Printf("⚠️ multiple candidate binaries found\n") + fmt.Printf("😰multiple candidate binaries found\n") for _, binary := range binaries { fmt.Printf("%s\n", binary) } @@ -70,7 +70,7 @@ func makePwnScript(ip string, port int) { if strings.Compare(binary, config.DefaultBinaryName) != 0 { if !util.BinaryIsExecutable(binary) { - fmt.Printf("⚠️ "+theme.ColorGray+" \""+theme.ColorReset+"%v"+theme.ColorGray+"\""+theme.ColorRed+" is not executable"+theme.ColorReset+"\n", binary) + fmt.Printf("😰"+theme.ColorGray+" \""+theme.ColorReset+"%v"+theme.ColorGray+"\""+theme.ColorRed+" is not executable"+theme.ColorReset+"\n", binary) } }