{"id":1863,"date":"2022-07-22T22:49:28","date_gmt":"2022-07-23T03:49:28","guid":{"rendered":"http:\/\/zitstif.no-ip.org\/?p=1863"},"modified":"2022-07-22T22:51:10","modified_gmt":"2022-07-23T03:51:10","slug":"ssh-client-as-a-quick-and-dirty-port-scanner","status":"publish","type":"post","link":"http:\/\/zitstif.no-ip.org\/?p=1863","title":{"rendered":"SSH Client as a Quick and Dirty Port Scanner"},"content":{"rendered":"<p>Since the ssh client is pretty ubiquitous and has been included with Windows 10 installations for the past couple years, I&#8217;ve discovered it can be a useful tcp port scanner if you use the verbose flag:<\/p>\n<p>For Windows:<\/p>\n<p>ssh -p 80 google.com -v 2&gt;&amp;1 | findstr Connect<\/p>\n<p>ssh -p 80 -o ConnectTimeout=1 www.google.com -v 2&gt;&amp;1 | findstr Connect<br \/>\ndebug1: Connecting to www.google.com [142.250.191.228] port 80.<br \/>\ndebug1: Connection established.<br \/>\nkex_exchange_identification: Connection closed by remote host<\/p>\n<p>As for your *nix systems, just use grep instead of findstr. I hope someone else finds this useful!<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Since the ssh client is pretty ubiquitous and has been included with Windows 10 installations for the past couple years, I&#8217;ve discovered it can be a useful tcp port scanner if you use the verbose flag: For Windows: ssh -p 80 google.com -v 2&gt;&amp;1 | findstr Connect ssh -p 80 -o ConnectTimeout=1 www.google.com -v 2&gt;&amp;1 &hellip; <a href=\"http:\/\/zitstif.no-ip.org\/?p=1863\" class=\"more-link\">Continue reading <span class=\"screen-reader-text\">SSH Client as a Quick and Dirty Port Scanner<\/span> <span class=\"meta-nav\">&rarr;<\/span><\/a><\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[3],"tags":[1104,1102,1103,1101,49,1105,1106,1099,1100],"class_list":["post-1863","post","type-post","status-publish","format-standard","hentry","category-posts","tag-debug","tag-findstr","tag-open","tag-portscanner","tag-ssh","tag-ssh-as-a-port-scanner","tag-ssh-as-a-portscanner","tag-ssh-client","tag-ssh-port-scanner"],"_links":{"self":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1863","targetHints":{"allow":["GET"]}}],"collection":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=1863"}],"version-history":[{"count":2,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1863\/revisions"}],"predecessor-version":[{"id":1865,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=\/wp\/v2\/posts\/1863\/revisions\/1865"}],"wp:attachment":[{"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=1863"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=1863"},{"taxonomy":"post_tag","embeddable":true,"href":"http:\/\/zitstif.no-ip.org\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=1863"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}