Skip to content

Instantly share code, notes, and snippets.

@saurabheights
Created December 27, 2018 15:23
Show Gist options
  • Save saurabheights/02fbf3da82e5d93c17d8eac5f858bded to your computer and use it in GitHub Desktop.
Save saurabheights/02fbf3da82e5d93c17d8eac5f858bded to your computer and use it in GitHub Desktop.
Check Open Port on external system
sudo apt-get install arp-scan
ifconfig # To find the interface
sudo arp-scan --interface=enp2s0 --localnet # Change enp2s0 to proper interface
# Check each port on the external system ip
for f in {1..50000}; do echo ${f} && telnet ip ${f}; done
# press Ctrl+] and quit to exit each output
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment