Skip to content

remove the decompress command in favour of just using 7z directly #240

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 22, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
24 changes: 1 addition & 23 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -198,7 +198,6 @@ checks for the following:
3) ida
4) ghidra
5) gcloud
6) 7z

🔗 https://github.com/rerrorctf/ret/blob/main/commands/check.go

Expand Down Expand Up @@ -248,28 +247,7 @@ the ctftime url will be used to aid in the generation of writeups with the `writ

---

### 🤏 <u>de</u>compress

```
$ ret decompress file1 [file2 file3...]
```

decompress one or more files with ret

will first check if the file has a valid extension
valid extensions are `.gzip`, `.gz`, `.zip`, `.xz`, `.7z` and `.tar`

if the file has a valid extension decompress will then check if the file has a valid magic

if the file has a valid extension and magic it will be decompressed with 7z as if the following was executed:

`$ 7z e filename -y`

🔗 https://github.com/rerrorctf/ret/blob/main/commands/decompress.go

---

### 🐋 <u>do</u>cker
### 🐋 <u>d</u>ocker

```
$ ret docker [ip] [port]
Expand Down
5 changes: 1 addition & 4 deletions commands/check.go
Original file line number Diff line number Diff line change
Expand Up @@ -23,8 +23,7 @@ func CheckHelp() string {
theme.ColorGray + "2) " + theme.ColorReset + "pwntools\n" +
theme.ColorGray + "3) " + theme.ColorReset + "ida\n" +
theme.ColorGray + "4) " + theme.ColorReset + "ghidra\n" +
theme.ColorGray + "5) " + theme.ColorReset + "gcloud\n" +
theme.ColorGray + "6) " + theme.ColorReset + "7z\n"
theme.ColorGray + "5) " + theme.ColorReset + "gcloud\n"
}

func testCommand(command string, args ...string) bool {
Expand Down Expand Up @@ -58,6 +57,4 @@ func Check(args []string) {
if !testCommand("stat", "/opt/ida/ida64") {
suggestLink("https://hex-rays.com/ida-free/")
}

testCommand("7z", "--help")
}
53 changes: 0 additions & 53 deletions commands/decompress.go

This file was deleted.

112 changes: 0 additions & 112 deletions util/decompress.go

This file was deleted.