File tree Expand file tree Collapse file tree 12 files changed +25
-29
lines changed Expand file tree Collapse file tree 12 files changed +25
-29
lines changed Original file line number Diff line number Diff line change @@ -26,7 +26,7 @@ func init() {
26
26
}
27
27
28
28
func CryptoHelp () string {
29
- return fmt . Sprintf ( "search for crypto constants using yara rules with ret\n " )
29
+ return "search for crypto constants using yara rules with ret\n "
30
30
}
31
31
32
32
func Crypto (args []string ) {
Original file line number Diff line number Diff line change @@ -29,7 +29,7 @@ func init() {
29
29
}
30
30
31
31
func DockerHelp () string {
32
- return fmt . Sprintf ( "create a dockerfile from a template with ret\n " )
32
+ return "create a dockerfile from a template with ret\n "
33
33
}
34
34
35
35
func makeDockerFile (port int ) {
Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ func init() {
27
27
}
28
28
29
29
func GhidraHelp () string {
30
- return fmt . Sprintf ( "ingests all added files then opens ghidra with ret\n " )
30
+ return "ingests all added files then opens ghidra with ret\n "
31
31
}
32
32
33
33
func ghidraSpinner () {
Original file line number Diff line number Diff line change @@ -28,8 +28,8 @@ func init() {
28
28
}
29
29
30
30
func GistHelp () string {
31
- return fmt . Sprintf ( "make private gists with ret\n " ) +
32
- fmt . Sprintf ( theme .ColorGray + "specify the path of one or more files to upload" + theme .ColorReset + "\n " )
31
+ return "make private gists with ret\n " +
32
+ theme .ColorGray + "specify the path of one or more files to upload" + theme .ColorReset + "\n "
33
33
}
34
34
35
35
func Gist (args []string ) {
Original file line number Diff line number Diff line change @@ -23,7 +23,7 @@ func init() {
23
23
}
24
24
25
25
func IdaHelp () string {
26
- return fmt . Sprintf ( "opens all added files then opens ida with ret\n " )
26
+ return "opens all added files then opens ida with ret\n "
27
27
}
28
28
29
29
func idaSpinner () {
Original file line number Diff line number Diff line change @@ -25,10 +25,10 @@ func init() {
25
25
}
26
26
27
27
func LibcHelp () string {
28
- return fmt . Sprintf ( "get a version of libc by copying it from a docker container with ret\n " ) +
29
- fmt . Sprintf ( theme .ColorGray + "specify an image tag like \" ubuntu:24.04\" to get a specific version" + theme .ColorReset + "\n " ) +
30
- fmt . Sprintf ( theme .ColorGray + "without args this command will use the tag \" ubuntu:latest\" " + theme .ColorReset + "\n " ) +
31
- fmt . Sprintf ( theme .ColorGray + "the file will be copied to the cwd and added with ret" + theme .ColorReset + "\n " )
28
+ return "get a version of libc by copying it from a docker container with ret\n " +
29
+ theme .ColorGray + "specify an image tag like \" ubuntu:24.04\" to get a specific version" + theme .ColorReset + "\n " +
30
+ theme .ColorGray + "without args this command will use the tag \" ubuntu:latest\" " + theme .ColorReset + "\n " +
31
+ theme .ColorGray + "the file will be copied to the cwd and added with ret" + theme .ColorReset + "\n "
32
32
}
33
33
34
34
func libcSpinner (stop chan bool ) {
Original file line number Diff line number Diff line change @@ -36,8 +36,8 @@ func init() {
36
36
}
37
37
38
38
func NotesHelp () string {
39
- return fmt . Sprintf ( "take notes with ret\n " ) +
40
- fmt . Sprintf ( theme .ColorGray + "use - to read from stdin" + theme .ColorReset + "\n " )
39
+ return "take notes with ret\n " +
40
+ theme .ColorGray + "use - to read from stdin" + theme .ColorReset + "\n "
41
41
}
42
42
43
43
func displayNotes () {
Original file line number Diff line number Diff line change @@ -28,7 +28,7 @@ func init() {
28
28
}
29
29
30
30
func ProxyHelp () string {
31
- return fmt . Sprintf ( "manage proxies with ret\n " )
31
+ return "manage proxies with ret\n "
32
32
}
33
33
34
34
func proxyList () {
Original file line number Diff line number Diff line change 1
1
package commands
2
2
3
3
import (
4
- "fmt"
5
4
"log"
6
5
"os"
7
6
"os/exec"
@@ -18,7 +17,7 @@ func init() {
18
17
}
19
18
20
19
func SageHelp () string {
21
- return fmt . Sprintf ( "open sage with ret\n " )
20
+ return "open sage with ret\n "
22
21
}
23
22
24
23
func Sage (args []string ) {
Original file line number Diff line number Diff line change @@ -21,7 +21,7 @@ func init() {
21
21
}
22
22
23
23
func StatusHelp () string {
24
- return fmt . Sprintf ( "displays the status for the current task with ret\n " )
24
+ return "displays the status for the current task with ret\n "
25
25
}
26
26
27
27
func Status (args []string ) {
You can’t perform that action at this time.
0 commit comments