{"id":548,"date":"2011-01-28T00:30:38","date_gmt":"2011-12-21T13:51:50","guid":{"rendered":"http:\/\/kraftek.com\/blog\/a-very-poor-mans-nmap\/"},"modified":"2011-01-28T00:30:38","modified_gmt":"2011-12-21T13:51:50","slug":"a-very-poor-mans-nmap","status":"publish","type":"post","link":"\/blog\/index.php\/a-very-poor-mans-nmap\/","title":{"rendered":"A (very) poor man&#8217;s nmap"},"content":{"rendered":"<pre>I cannot install packages in a machine, so i wrote this very basic substitute to nmap called nmap.ksh\n \n\n#!\/bin\/ksh\n H=$1\n X=0\n L=600\n while [ $X -lt $L ];do\n O=`echo \"~.\" | telnet -r $H $X 2&gt;&amp;1| grep -i connected | wc -l | sed 's\/ \/\/g'`\n if [ $O -eq 1 ];then\n echo \"port $X open \"\n fi\n X=`echo \"$X + 1\" | bc`\n done<\/pre>\n","protected":false},"excerpt":{"rendered":"<p>I cannot install packages in a machine, so i wrote this very basic substitute to nmap called nmap.ksh #!\/bin\/ksh H=$1 X=0 L=600 while [ $X -lt $L ];do O=`echo &#8220;~.&#8221; | telnet -r $H $X 2&gt;&amp;1| grep -i connected | wc -l | sed &#8216;s\/ \/\/g&#8217;` if [ $O -eq 1 ];then echo &#8220;port $X [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"open","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[],"class_list":["post-548","post","type-post","status-publish","format-standard","hentry","category-uncategorized"],"_links":{"self":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/548","targetHints":{"allow":["GET"]}}],"collection":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/comments?post=548"}],"version-history":[{"count":0,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/posts\/548\/revisions"}],"wp:attachment":[{"href":"\/blog\/index.php\/wp-json\/wp\/v2\/media?parent=548"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/categories?post=548"},{"taxonomy":"post_tag","embeddable":true,"href":"\/blog\/index.php\/wp-json\/wp\/v2\/tags?post=548"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}