Created
December 27, 2018 15:23
-
-
Save saurabheights/02fbf3da82e5d93c17d8eac5f858bded to your computer and use it in GitHub Desktop.
Check Open Port on external system
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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