If you and the attacker share the same network the attacker can get all sorts if info.
Tools like nmap show things like ip, mac, ports and os detection.
You can use macchanger to randomize your mac. I think there is a setting in networkmanager to do this. Been a while since I looked in the settings.