-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathmain.go
27 lines (24 loc) · 942 Bytes
/
main.go
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
package main
import (
"github.com/andoniaf/malicious-onbuild-demo/pkg"
. "github.com/saschagrunert/demo"
"github.com/urfave/cli/v2"
)
func main() {
d := New()
d.Name = "Malicious ONBUILD demo"
d.HideVersion = true
d.Usage = "Malicious ONBUILD instruction demo"
d.Authors = []*cli.Author{{
Name: "Andoni Alonso", Email: "andonialonsof@gmail.com",
}}
d.Setup(pkg.Setup)
d.Cleanup(pkg.Cleanup)
d.Add(pkg.OnbuildBasic(), "onbuild_basic", "Explain what is ONBUILD instruction")
d.Add(pkg.OnbuildShowEvil(), "show_malicious", "Show onbuild_malicious container")
d.Add(pkg.OnbuildUseEvil(), "use_malicious_1", "Use onbuild_malicious container I")
d.Add(pkg.OnbuildWhatHappened(), "what_happened", "What happened using onbuild_malicious container")
d.Add(pkg.OnbuildUseEvil_2(), "use_malicious_2", "Use onbuild_malicious container II")
d.Add(pkg.Conclusions(), "conclusions", "Conclusions about ONBUILD instruction")
d.Run()
}