diff --git a/gh-recon/email.go b/gh-recon/email.go index f83e953..cf4c7cb 100644 --- a/gh-recon/email.go +++ b/gh-recon/email.go @@ -92,5 +92,7 @@ func (r Recon) Email(email string) (response []EmailResult) { if len(results) == 0 { r.PrintInfo("INFO", "No commits found") } + + r.PrintNewline() return } diff --git a/gh-recon/keys.go b/gh-recon/keys.go index ea23e9a..48a74cf 100644 --- a/gh-recon/keys.go +++ b/gh-recon/keys.go @@ -48,7 +48,9 @@ func (r Recon) SshKeys(username string) (response []SSHKeyResult) { r.PrintInfo("Verified", k.Verified) r.PrintInfo("Last Used", k.LastUsed) r.PrintInfo("Added By", k.AddedBy) - r.PrintNewline() + if i != len(sshKeys)-1 { + r.PrintNewline() + } } } r.PrintNewline() @@ -122,6 +124,9 @@ func (r Recon) GpgKeys(username string) (response []GPGKeyResult) { r.PrintInfo(" Email n°", fmt.Sprintf("%d", j)) r.PrintInfo(" Email", email.Email) r.PrintInfo(" Verified", email.Verified) + if j != len(k.Emails)-1 { + r.PrintNewline() + } } r.PrintInfo("Subkeys", fmt.Sprintf("%d", len(k.Subkeys))) for j, subkey := range k.Subkeys { @@ -131,9 +136,13 @@ func (r Recon) GpgKeys(username string) (response []GPGKeyResult) { r.PrintInfo(" Subkey Created At", subkey.CreatedAt) r.PrintInfo(" Subkey Primary Key ID", subkey.PrimaryKeyID) r.PrintInfo(" Subkey Raw Key", subkey.RawKey) + if j != len(k.Subkeys)-1 { + r.PrintNewline() + } + } + if i != len(gpgKeys)-1 { + r.PrintNewline() } - - r.PrintNewline() } } r.PrintNewline() @@ -173,7 +182,9 @@ func (r Recon) SshSigningKeys(username string) (response []SSHSigningKeyResult) r.PrintInfo("Title", k.Title) r.PrintInfo("Created At", k.CreatedAt) r.PrintInfo("Key", k.Key) - r.PrintNewline() + if i != len(signingKeys)-1 { + r.PrintNewline() + } response = append(response, k) } } diff --git a/gh-recon/orgs.go b/gh-recon/orgs.go index bf7e583..b39a91f 100644 --- a/gh-recon/orgs.go +++ b/gh-recon/orgs.go @@ -32,7 +32,9 @@ func (r Recon) Orgs(username string) (response []OrgResult) { r.PrintInfo("ID", o.ID) r.PrintInfo("URL", o.URL) r.PrintInfo("Description", o.Description) - r.PrintNewline() + if i != len(orgs)-1 { + r.PrintNewline() + } response = append(response, o) } }