Skip to content

Commit

Permalink
continued to iterate short menu
Browse files Browse the repository at this point in the history
  • Loading branch information
JayBeale committed Nov 11, 2023
1 parent ae02ea6 commit 4bed990
Showing 1 changed file with 13 additions and 9 deletions.
22 changes: 13 additions & 9 deletions peirates.go
Original file line number Diff line number Diff line change
Expand Up @@ -274,7 +274,8 @@ func banner(connectionString ServerInfo, detectCloud string, eth0IP string, awsC
panic(err)
}

printBanner(interactive)
// Experiment with removing the banner except when program first started.
// printBanner(interactive)

if connectionString.Token != "" {

Expand All @@ -283,14 +284,17 @@ func banner(connectionString ServerInfo, detectCloud string, eth0IP string, awsC
if connectionString.ClientCertData != "" {
fmt.Println("[+] Client Certificate/Key Pair Loaded:", connectionString.ClientCertName)
}
var haveCa bool = false
if connectionString.CAPath != "" {
haveCa = true
}
fmt.Printf("[+] Certificate Authority Certificate : %t\n", haveCa)
if len(connectionString.APIServer) > 0 {
fmt.Println("[+] Kubernetes API Server :", connectionString.APIServer)
}
// Experiment with removing some status lines...

// var haveCa bool = false
// if connectionString.CAPath != "" {
// haveCa = true
// }
// fmt.Printf("[+] Certificate Authority Certificate : %t\n", haveCa)

// if len(connectionString.APIServer) > 0 {
// fmt.Println("[+] Kubernetes API Server :", connectionString.APIServer)
// }
if len(connectionString.Namespace) > 0 {
fmt.Println("[+] Current hostname/pod name :", name)
fmt.Println("[+] Current namespace :", connectionString.Namespace)
Expand Down

0 comments on commit 4bed990

Please sign in to comment.