TB0ne |
06-29-2016 09:09 AM |
Quote:
Originally Posted by P.G.Krish
(Post 5567894)
Code:
nc: connect to 192.168.1.1 port 1 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 2 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 3 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 4 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 5 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 6 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 7 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 8 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 9 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 10 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 11 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 12 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 13 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 14 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 15 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 16 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 17 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 18 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 19 (tcp) failed: Connection refused
nc: connect to 192.168.1.1 port 20 (tcp) failed: Connection refused
Connection to 192.168.1.1 21 port [tcp/ftp] succeeded!
nc: connect to 192.168.1.1 port 22 (tcp) failed: Connection refused
|
Great...so you were asked for: - What you SEE
- What you WANT to see
...and posted that, and don't post what you WANT to see. Again, you're not posting what you're after, but based on your question, did you read the man pages on the nc command? nc outputs logs to stderr, so you need to redirect before grep'ing:
Code:
nc -zv <address> 1-100 2>&1 | grep succeeded
When people ask you to clarify things, and you don't, it's frustrating, and makes people NOT want to help you.
|