agnhost/netexec: log hostname
Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
@@ -727,6 +727,7 @@ func startSCTPServer(sctpPort int) {
|
|||||||
|
|
||||||
func getHostName() string {
|
func getHostName() string {
|
||||||
hostName, err := os.Hostname()
|
hostName, err := os.Hostname()
|
||||||
|
log.Printf("hostname: %s", hostName)
|
||||||
assertNoError(err, "failed to get hostname")
|
assertNoError(err, "failed to get hostname")
|
||||||
return hostName
|
return hostName
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user