Skip to content

Commit 929e67e

Browse files
committed
Always show hostname when displaying the list of beacons
1 parent b7ba23c commit 929e67e

File tree

1 file changed

+2
-0
lines changed

1 file changed

+2
-0
lines changed

client/command/beacons/beacons.go

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -129,6 +129,7 @@ func renderBeacons(beacons []*clientpb.Beacon, filter string, filterRegex *regex
129129
"ID",
130130
"Name",
131131
"Transport",
132+
"Hostname",
132133
"Username",
133134
"Operating System",
134135
"Last Check-in",
@@ -165,6 +166,7 @@ func renderBeacons(beacons []*clientpb.Beacon, filter string, filterRegex *regex
165166
fmt.Sprintf(color+"%s"+console.Normal, strings.Split(beacon.ID, "-")[0]),
166167
fmt.Sprintf(color+"%s"+console.Normal, beacon.Name),
167168
fmt.Sprintf(color+"%s"+console.Normal, beacon.Transport),
169+
fmt.Sprintf(color+"%s"+console.Normal, beacon.Hostname),
168170
fmt.Sprintf(color+"%s"+console.Normal, strings.TrimPrefix(beacon.Username, beacon.Hostname+"\\")),
169171
fmt.Sprintf(color+"%s/%s"+console.Normal, beacon.OS, beacon.Arch),
170172
con.FormatDateDelta(time.Unix(beacon.LastCheckin, 0), wideTermWidth, false),

0 commit comments

Comments
 (0)