Hello All,
Recently been on a CCNA course and apparently I ask waaay to many questions, so I have been given a “fun task” at work. We have quite a few switches, some of them have telnet enabled and others have SSH only. I am trying to figure out, how you would do a search against an IP or a range, whether they have port number 22 and/or 23 enabled?
Been searching, as one does, and found that plink, part of putty, are able to do that via powershell. As I have no skills in powershell or programming at all, I am a little over my head here. I was wondering if any of you might have a clue OR a better idea of achieving this task?
What I am hoping for:
-
able to use an IP range(s) rather than single IP’s.
-
ask for ports. ie 22 (SSH) and 23 (telnet).
-
Return an answer if the specific port is using port 23. ie. “Port 23 is open and password is sent in plain text”.
-
Return an answer if the specific port is using port 22. ie. “Port 22 is open and I am protected, using SSH”.
4.1. If possible, if both ports are open write something like. port 22 and 23 are both open.
-
Return that answer to an output file ie. Excel or something similar.
-
Being lazy, as one is, I would like to do this with minimum effort possible.
Looking forward hearing what you have for me?
Thanks