Created
April 12, 2025 06:55
-
-
Save yagop/6a0270da29e39d6333e7bbe420bb94a6 to your computer and use it in GitHub Desktop.
Test max connections
This file contains hidden or 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
#!/bin/bash | |
for port in `seq 50000 60000`; | |
do | |
nc -vw3 192.168.0.1 $port & | |
done | |
wait |
This file contains hidden or 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
#!/bin/bash | |
for port in `seq 50000 60000`; | |
do | |
netcat -v -l -p $port & | |
done | |
echo "Waiting for clients" | |
wait |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment