Skip to content

Commit 4da31f1

Browse files
authored
Merge pull request #240 from dmur1/change-7z-to-full-path-#229
remove the decompress command in favour of just using 7z directly
2 parents 2596807 + 2521da0 commit 4da31f1

File tree

4 files changed

+2
-192
lines changed

4 files changed

+2
-192
lines changed

README.md

Lines changed: 1 addition & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -198,7 +198,6 @@ checks for the following:
198198
3) ida
199199
4) ghidra
200200
5) gcloud
201-
6) 7z
202201

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

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

249248
---
250249

251-
### 🤏 <u>de</u>compress
252-
253-
```
254-
$ ret decompress file1 [file2 file3...]
255-
```
256-
257-
decompress one or more files with ret
258-
259-
will first check if the file has a valid extension
260-
valid extensions are `.gzip`, `.gz`, `.zip`, `.xz`, `.7z` and `.tar`
261-
262-
if the file has a valid extension decompress will then check if the file has a valid magic
263-
264-
if the file has a valid extension and magic it will be decompressed with 7z as if the following was executed:
265-
266-
`$ 7z e filename -y`
267-
268-
🔗 https://github.com/rerrorctf/ret/blob/main/commands/decompress.go
269-
270-
---
271-
272-
### 🐋 <u>do</u>cker
250+
### 🐋 <u>d</u>ocker
273251

274252
```
275253
$ ret docker [ip] [port]

commands/check.go

Lines changed: 1 addition & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -23,8 +23,7 @@ func CheckHelp() string {
2323
theme.ColorGray + "2) " + theme.ColorReset + "pwntools\n" +
2424
theme.ColorGray + "3) " + theme.ColorReset + "ida\n" +
2525
theme.ColorGray + "4) " + theme.ColorReset + "ghidra\n" +
26-
theme.ColorGray + "5) " + theme.ColorReset + "gcloud\n" +
27-
theme.ColorGray + "6) " + theme.ColorReset + "7z\n"
26+
theme.ColorGray + "5) " + theme.ColorReset + "gcloud\n"
2827
}
2928

3029
func testCommand(command string, args ...string) bool {
@@ -58,6 +57,4 @@ func Check(args []string) {
5857
if !testCommand("stat", "/opt/ida/ida64") {
5958
suggestLink("https://hex-rays.com/ida-free/")
6059
}
61-
62-
testCommand("7z", "--help")
6360
}

commands/decompress.go

Lines changed: 0 additions & 53 deletions
This file was deleted.

util/decompress.go

Lines changed: 0 additions & 112 deletions
This file was deleted.

0 commit comments

Comments
 (0)