diff --git a/README.md b/README.md index 01dff76..cc87a13 100644 --- a/README.md +++ b/README.md @@ -107,30 +107,6 @@ you can restore a specific version of a file by copying it from the subdirectory --- -### 😠 angr - -``` -$ ret angr -``` - -runs the angr docker with ret - -mounts the current working directory as a volume - -note that this command requires docker - -effectively runs: -```bash -$ sudo docker pull angr/angr -$ sudo docker run -it -v $PWD:/home/angr/x angr/angr -``` - -see https://docs.angr.io/en/latest/getting-started/installing.html#installing-with-docker for more information - -🔗 https://github.com/rerrorctf/ret/blob/main/commands/angr.go - ---- - ### 🏁 capture ``` diff --git a/commands/angr.go b/commands/angr.go deleted file mode 100644 index 2d5adae..0000000 --- a/commands/angr.go +++ /dev/null @@ -1,60 +0,0 @@ -package commands - -import ( - "fmt" - "log" - "os" - "os/exec" - "ret/theme" -) - -func init() { - Commands = append(Commands, Command{ - Name: "angr", - Emoji: "😠", - Func: Angr, - Help: AngrHelp, - Arguments: nil}) -} - -func AngrHelp() string { - return "runs the angr docker with ret\n\n" + - "mounts the current working directory as a volume\n\n" + - "note that this command requires docker\n\n" + - "effectively runs:\n" + - "```bash\n" + - theme.ColorGray + "$ " + theme.ColorBlue + "sudo docker pull angr/angr\n" + - theme.ColorGray + "$ " + theme.ColorBlue + "sudo docker run -it -v $PWD:/home/angr/x angr/angr\n" + theme.ColorReset + - "```\n\n" + - "see https://docs.angr.io/en/latest/getting-started/installing.html#installing-with-docker for more information\n" + theme.ColorReset -} - -func Angr(args []string) { - pull := exec.Command("sudo", "docker", "pull", "angr/angr") - - pull.Stdin = os.Stdin - pull.Stdout = os.Stdout - pull.Stderr = os.Stderr - - err := pull.Run() - if err != nil { - log.Fatalf("💥 "+theme.ColorRed+"error"+theme.ColorReset+": %v\n", err) - } - - dir, err := os.Getwd() - if err != nil { - log.Fatalf("💥 "+theme.ColorRed+"error"+theme.ColorReset+": %v\n", err) - } - - run := exec.Command("sudo", "docker", "run", "-it", "-v", fmt.Sprintf("%s:/home/angr/x", dir), "angr/angr") - - run.Stdin = os.Stdin - run.Stdout = os.Stdout - run.Stderr = os.Stderr - - err = run.Run() - - if err != nil { - log.Fatalf("💥 "+theme.ColorRed+"error"+theme.ColorReset+": %v\n", err) - } -}