Skip to content

Commit

Permalink
perf(capabilities): red color for add caps
Browse files Browse the repository at this point in the history
  • Loading branch information
neargle committed Sep 18, 2022
1 parent cace22d commit 8b6caef
Showing 1 changed file with 5 additions and 1 deletion.
6 changes: 5 additions & 1 deletion pkg/evaluate/available_linux_capabilities.go
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,11 @@ func GetProcCapabilities() bool {
caps, err := capability.CapHexParser(capStr)

fmt.Printf("\tCap decode: 0x%s = %s\n", capStr, capability.CapListToString(caps))
fmt.Printf("\tAdd capability list: %s\n", capability.CapListToString(getAddCaps(caps)))

addCaps := getAddCaps(caps)
if len(addCaps) > 0 {
util.RedBold.Printf("\tAdded capability list: %s\n", capability.CapListToString(addCaps))
}

if err != nil {
log.Printf("[-] capability.CapHexParser: %v\n", err)
Expand Down

0 comments on commit 8b6caef

Please sign in to comment.