Security Basics mailing list archives

RE: nc question


From: "Rockson Li (zhengyli)" <zhengyli () cisco com>
Date: Sat, 26 Aug 2006 10:03:47 +0800

Do not use ',' as delimiter for arguments, use space instead.

And put double "-v" for nc

Like
# nc -z -v -v target ssh ftp telnet sftp rpc
target [22.22.44.11] 22 (ssh) open
target [22.22.44.11] 21 (ftp) : Connection refused
target [22.22.44.11] 23 (telnet) : Connection refused
target [22.22.44.11] 115 (sftp) : Connection refused
target [22.22.44.11] 530 (courier) : Connection refused  

-Rockson

-----Original Message-----
From: vijay shetti [mailto:vijay.shetti () gmail com] 
Sent: Friday, August 25, 2006 2:36 PM
To: security-basics () securityfocus com
Subject: nc question

hello friends!!

I have a query regarding netcat's usage for port scanning.

I am scanning a windows machine which has 2 ports open 80 and 3389.

c:>nc -z -v target 80,3389

It shows only port 80 open,it does not consider 3389 port as an
argument...

My question is if I want to scan only known ports like 21,23,80,3389
using netcat,then how can i specify them as argument?

regards,
Vijay.

------------------------------------------------------------------------
---
This list is sponsored by: Norwich University

EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE The NSA has
designated Norwich University a center of Academic Excellence in
Information Security. Our program offers unparalleled Infosec management
education and the case study affords you unmatched consulting
experience. 
Using interactive e-Learning technology, you can earn this esteemed
degree, without disrupting your career or home life.

http://www.msia.norwich.edu/secfocus
------------------------------------------------------------------------
---

---------------------------------------------------------------------------
This list is sponsored by: Norwich University

EARN A MASTER OF SCIENCE IN INFORMATION ASSURANCE - ONLINE
The NSA has designated Norwich University a center of Academic Excellence
in Information Security. Our program offers unparalleled Infosec management
education and the case study affords you unmatched consulting experience.
Using interactive e-Learning technology, you can earn this esteemed degree,
without disrupting your career or home life.

http://www.msia.norwich.edu/secfocus
---------------------------------------------------------------------------


Current thread: