Compare commits
3 commits
Author | SHA1 | Date | |
---|---|---|---|
1b16f4aa5b | |||
|
013815db5c | ||
|
1ea8dfbc9a |
4 changed files with 54 additions and 56 deletions
|
@ -32,11 +32,11 @@ run:
|
||||||
$(GOBUILD) -o $(BINARY_NAME) -v
|
$(GOBUILD) -o $(BINARY_NAME) -v
|
||||||
./$(BINARY_NAME)
|
./$(BINARY_NAME)
|
||||||
deps:
|
deps:
|
||||||
$(GOGET) github.com/fatih/color
|
$(GOGET) github.com/fatih/color@v1.12.0
|
||||||
$(GOGET) github.com/akamensky/argparse
|
$(GOGET) github.com/akamensky/argparse@v1.3.2
|
||||||
$(GOGET) github.com/awalterschulze/gographviz
|
$(GOGET) github.com/awalterschulze/gographviz
|
||||||
$(GOGET) github.com/sergi/go-diff/...
|
$(GOGET) github.com/sergi/go-diff/...
|
||||||
$(GOGET) github.com/AlecAivazis/survey
|
$(GOGET) github.com/AlecAivazis/survey@v2.3.2
|
||||||
# Cross compilation
|
# Cross compilation
|
||||||
build-linux:
|
build-linux:
|
||||||
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -v
|
CGO_ENABLED=0 GOOS=linux GOARCH=amd64 $(GOBUILD) -o $(BINARY_UNIX) -v
|
||||||
|
|
|
@ -179,7 +179,7 @@ func executeDependAptCache(programName string, data *u.StaticData,
|
||||||
//
|
//
|
||||||
func staticAnalyser(args u.Arguments, data *u.Data, programPath string) {
|
func staticAnalyser(args u.Arguments, data *u.Data, programPath string) {
|
||||||
|
|
||||||
programName := *args.StringArg[programArg]
|
//programName := *args.StringArg[programArg]
|
||||||
fullDeps := *args.BoolArg[fullDepsArg]
|
fullDeps := *args.BoolArg[fullDepsArg]
|
||||||
|
|
||||||
staticData := &data.StaticData
|
staticData := &data.StaticData
|
||||||
|
@ -222,11 +222,11 @@ func staticAnalyser(args u.Arguments, data *u.Data, programPath string) {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
if strings.ToLower(runtime.GOOS) == "linux" {
|
/*if strings.ToLower(runtime.GOOS) == "linux" {
|
||||||
// Gather Data from apt-cache
|
// Gather Data from apt-cache
|
||||||
u.PrintHeader2("(*) Gathering dependencies from apt-cache depends")
|
u.PrintHeader2("(*) Gathering dependencies from apt-cache depends")
|
||||||
if err := gatherDependencies(programName, staticData, fullDeps); err != nil {
|
if err := gatherDependencies(programName, staticData, fullDeps); err != nil {
|
||||||
u.PrintWarning(err)
|
u.PrintWarning(err)
|
||||||
}
|
}
|
||||||
}
|
}*/
|
||||||
}
|
}
|
||||||
|
|
|
@ -3,31 +3,31 @@
|
||||||
"timeMsCommand": 2000,
|
"timeMsCommand": 2000,
|
||||||
"listCommands": [
|
"listCommands": [
|
||||||
"dig unicore-project.eu +nssearch",
|
"dig unicore-project.eu +nssearch",
|
||||||
"sudo rndc dumpdb -cache",
|
"rndc dumpdb -cache",
|
||||||
"sudo rndc flush",
|
"rndc flush",
|
||||||
"sudo rndc status",
|
"rndc status",
|
||||||
"sudo rndc reload",
|
"rndc reload",
|
||||||
"sudo rndc zonestatus unicore-project.eu",
|
"rndc zonestatus unicore-project.eu",
|
||||||
"sudo rndc reload unicore-project.eu",
|
"rndc reload unicore-project.eu",
|
||||||
"sudo rndc refresh zone unicore-project.eu",
|
"rndc refresh zone unicore-project.eu",
|
||||||
"sudo rndc refresh unicore-project.eu",
|
"rndc refresh unicore-project.eu",
|
||||||
"sudo rndc status",
|
"rndc status",
|
||||||
"sudo rndc thaw unicore-project.eu",
|
"rndc thaw unicore-project.eu",
|
||||||
"sudo rndc thaw ",
|
"rndc thaw ",
|
||||||
"sudo rndc notify",
|
"rndc notify",
|
||||||
"sudo rndc dumpdb -all",
|
"rndc dumpdb -all",
|
||||||
"sudo rndc sign unicore-project.eu",
|
"rndc sign unicore-project.eu",
|
||||||
"sudo rndc secroots",
|
"rndc secroots",
|
||||||
"sudo rndc trace",
|
"rndc trace",
|
||||||
"sudo rndc recursing",
|
"rndc recursing",
|
||||||
"sudo rndc freeze",
|
"rndc freeze",
|
||||||
"sudo rndc freeze unicore-project.eu",
|
"rndc freeze unicore-project.eu",
|
||||||
"sudo rndc notify unicore-project.eu",
|
"rndc notify unicore-project.eu",
|
||||||
"nslookup unicore-project.eu",
|
"nslookup unicore-project.eu",
|
||||||
"nslookup 141.85.241.196",
|
"nslookup 141.85.241.196",
|
||||||
"dig unicore-project.eu +nssearch",
|
"dig unicore-project.eu +nssearch",
|
||||||
"sudo rndc notrace",
|
"rndc notrace",
|
||||||
"sudo rndc restart",
|
"rndc restart",
|
||||||
"sudo rndc stop"
|
"rndc stop"
|
||||||
]
|
]
|
||||||
}
|
}
|
|
@ -2,32 +2,30 @@
|
||||||
"typeTest": "exec",
|
"typeTest": "exec",
|
||||||
"timeMsCommand": 2000,
|
"timeMsCommand": 2000,
|
||||||
"listCommands": [
|
"listCommands": [
|
||||||
"sudo exiwhat",
|
"exiwhat",
|
||||||
"sudo exim -bP",
|
"exim -bP",
|
||||||
"sudo mailq",
|
"mailq",
|
||||||
"sudo exim -bpc",
|
"exim -bpc",
|
||||||
"sudo exim -bp | exiqsumm",
|
"exim -bp | exiqsumm",
|
||||||
"sudo exim -bt monmail@domaine.fr",
|
"exim -bt monmail@domaine.fr",
|
||||||
"sudo exiqgrep -f [user]@domaine",
|
"exiqgrep -f [user]@domaine",
|
||||||
"sudo exiqgrep -r [user]@domaine",
|
"exiqgrep -r [user]@domaine",
|
||||||
"sudo exiqgrep -o 120",
|
"exiqgrep -o 120",
|
||||||
"sudo exiqgrep -y 120",
|
"exiqgrep -y 120",
|
||||||
"sudo exim -Mf message-id",
|
"exim -Mf message-id",
|
||||||
"sudo exim -Mt message-id",
|
"exim -Mt message-id",
|
||||||
"sudo exim -M message-id",
|
"exim -M message-id",
|
||||||
"sudo exim -Mvl message-id",
|
"exim -Mvl message-id",
|
||||||
"sudo exim -Mvh message-id",
|
"exim -Mvh message-id",
|
||||||
"sudo exim -Mvb message-id",
|
"exim -Mvb message-id",
|
||||||
"sudo exim -Mrm message-id",
|
"exim -Mrm message-id",
|
||||||
"sudo exim -qf",
|
"exim -qf",
|
||||||
"sudo exim -qff",
|
"exim -qff",
|
||||||
"sudo exim -Mes message-id address",
|
"exim -Mes message-id address",
|
||||||
"sudo exim -bpr | grep -Eo \"<[^ ]*@[^ ]*>\", | sort | uniq -c",
|
"exim -bpr | grep -Eo \"<[^ ]*@[^ ]*>\", | sort | uniq -c",
|
||||||
"sudo exim -bpr | grep -Eo \"^\s*[^ ]*@[^ ]*$\", | sort | uniq -c",
|
"exiqgrep -o 43000 -i | xargs exim -Mrm",
|
||||||
"sudo exiqgrep -o 43000 -i | xargs exim -Mrm",
|
"exiqgrep -z -i | xargs exim -Mrm",
|
||||||
"sudo exiqgrep -z -i | xargs exim -Mrm",
|
"exiqgrep -i -f [user]@domaine | xargs exim -Mrm",
|
||||||
"sudo exiqgrep -i -f [user]@domaine | xargs exim -Mrm",
|
"exiqgrep -o 43000 -i -f [user]@domaine | xargs exim -Mrm",
|
||||||
"sudo exiqgrep -o 43000 -i -f [user]@domaine | xargs exim -Mrm",
|
|
||||||
"sudo grep -lr 'bla bla bla' /var/spool/exim/input/ | sed -e 's/^.*\/\([a-zA-Z0-9-]*\)-[DH]$/\1/g' | xargs exim -Mrm"
|
|
||||||
]
|
]
|
||||||
}
|
}
|
Loading…
Add table
Reference in a new issue