File tree Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Expand file tree Collapse file tree 3 files changed +49
-0
lines changed Original file line number Diff line number Diff line change @@ -235,6 +235,16 @@ This command optionally makes use of a discord webhook which you can specify in
235
235
236
236
https://github.com/rerrorctf/rctf/blob/main/commands/monitor.go
237
237
238
+ ### cheatsheet
239
+
240
+ ```
241
+ usage: rctf cheatsheet
242
+ ```
243
+
244
+ Prints a list of cheatsheets for quick reference.
245
+
246
+ https://github.com/rerrorctf/rctf/blob/main/commands/monitor.go
247
+
238
248
## The .rctf Directory Structure
239
249
240
250
Certain commands, such as ` init ` , ` add ` and ` status ` will use a hidden directory structure.
Original file line number Diff line number Diff line change
1
+ package commands
2
+
3
+ import (
4
+ "fmt"
5
+ "os"
6
+ "rctf/theme"
7
+ )
8
+
9
+ func Cheatsheet (args []string ) {
10
+ if len (args ) > 0 {
11
+ switch args [0 ] {
12
+ case "help" :
13
+ fmt .Fprintf (os .Stderr , theme .ColorGreen + "usage" + theme .ColorReset + ": rctf " + theme .ColorBlue + "cheatsheet" + theme .ColorReset + "\n " )
14
+ fmt .Fprintf (os .Stderr , " π prints a list of cheatsheet links with rctf\n " )
15
+ os .Exit (0 )
16
+ }
17
+ }
18
+
19
+ fmt .Println (theme .ColorCyan + "pwndbg" + theme .ColorReset )
20
+ fmt .Println (theme .ColorGray + "π https://cdn.discordapp.com/attachments/1141077572587892857/1174249242882220114/CheatSheet.pdf" + theme .ColorReset )
21
+
22
+ fmt .Println (theme .ColorCyan + "ghidra" + theme .ColorReset )
23
+ fmt .Println (theme .ColorGray + "π https://ghidra-sre.org/CheatSheet.html" + theme .ColorReset )
24
+
25
+ fmt .Println (theme .ColorCyan + "linux syscalls" + theme .ColorReset )
26
+ fmt .Println (theme .ColorGray + "π https://chromium.googlesource.com/chromiumos/docs/+/master/constants/syscalls.md" + theme .ColorReset )
27
+
28
+ fmt .Println (theme .ColorCyan + "intel sdm" + theme .ColorReset )
29
+ fmt .Println (theme .ColorGray + "π https://www.intel.com/content/www/us/en/developer/articles/technical/intel-sdm.html" + theme .ColorReset )
30
+
31
+ fmt .Println (theme .ColorCyan + "payloads" + theme .ColorReset )
32
+ fmt .Println (theme .ColorGray + "π https://github.com/swisskyrepo/PayloadsAllTheThings" + theme .ColorReset )
33
+
34
+ fmt .Println (theme .ColorCyan + "reverse shells" + theme .ColorReset )
35
+ fmt .Println (theme .ColorGray + "π https://swisskyrepo.github.io/InternalAllTheThings/cheatsheets/shell-reverse-cheatsheet/" + theme .ColorReset )
36
+ }
Original file line number Diff line number Diff line change @@ -98,6 +98,7 @@ func main() {
98
98
fmt .Fprintf (os .Stderr , " β
" + theme .ColorBlue + "check" + theme .ColorReset + "\n " )
99
99
fmt .Fprintf (os .Stderr , " π " + theme .ColorBlue + "syscall" + theme .ColorReset + "\n " )
100
100
fmt .Fprintf (os .Stderr , " π " + theme .ColorBlue + "writeup" + theme .ColorReset + "\n " )
101
+ fmt .Fprintf (os .Stderr , " π " + theme .ColorBlue + "cheatsheet" + theme .ColorReset + "\n " )
101
102
fmt .Fprintf (os .Stderr , "\n π© https://github.com/rerrorctf/rctf π©\n " )
102
103
}
103
104
@@ -135,6 +136,8 @@ func main() {
135
136
commands .Syscall (flag .Args ()[1 :])
136
137
case "writeup" :
137
138
commands .Writeup (flag .Args ()[1 :])
139
+ case "cheatsheet" :
140
+ commands .Cheatsheet (flag .Args ()[1 :])
138
141
default :
139
142
flag .Usage ()
140
143
os .Exit (1 )
You canβt perform that action at this time.
0 commit comments