agnhost/netexec: log hostname

Signed-off-by: Daman Arora <aroradaman@gmail.com>
This commit is contained in:
Daman Arora 2024-04-28 16:27:02 +05:30
parent 62ced20cdc
commit 90561cb9d9

View File

@ -727,6 +727,7 @@ func startSCTPServer(sctpPort int) {
func getHostName() string {
hostName, err := os.Hostname()
log.Printf("hostname: %s", hostName)
assertNoError(err, "failed to get hostname")
return hostName
}