Skip to content

Instantly share code, notes, and snippets.

@edlvj
Created October 3, 2017 08:32
Show Gist options
  • Save edlvj/fd875b5b98f09c4defa4e0119000f9aa to your computer and use it in GitHub Desktop.
Save edlvj/fd875b5b98f09c4defa4e0119000f9aa to your computer and use it in GitHub Desktop.
#!/bin/bash
echo "Computers in domain:"
smbtree -N
echo "----IP Address:"
hostname --ip-address
echo "----MAC Address:"
cat /sys/class/net/enp1s0/address
echo "----Dns"
nslookup 127.0.0.1
echo "----Routes"
netstat -r
echo "----Packages and Protocols"
netstat --inet
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment