Please let me know Regarding Port Scan | Unix Linux Forums | UNIX for Advanced & Expert Users

  Go Back    


UNIX for Advanced & Expert Users Expert-to-Expert. Learn advanced UNIX, UNIX commands, Linux, Operating Systems, System Administration, Programming, Shell, Shell Scripts, Solaris, Linux, HP-UX, AIX, OS X, BSD.

Please let me know Regarding Port Scan

UNIX for Advanced & Expert Users


Tags
lsof, netstat, nmap

Closed Thread    
 
Thread Tools Search this Thread Display Modes
    #1  
Old 05-06-2007
myramkumar myramkumar is offline
Registered User
 
Join Date: May 2007
Last Activity: 6 May 2007, 12:22 AM EDT
Posts: 1
Thanks: 0
Thanked 0 Times in 0 Posts
Please let me know Regarding Port Scan

Can any one please let me know below ones

1) How to Perform the Port Scan in Solaris Environment and how to block the unwanted Ports.

2) How to know whether particular Port is listning the requests or not?

Thanks
Ramkumar.B
Sponsored Links
    #2  
Old 05-07-2007
sumitpandya sumitpandya is offline
Registered User
 
Join Date: Mar 2006
Last Activity: 10 April 2014, 6:20 AM EDT
Location: Ahmedabad
Posts: 137
Thanks: 0
Thanked 0 Times in 0 Posts
nmap and ipf

Try "nmap" to scan for open port. You can use nmap to verify about your firewall policy as well

The ancient and widely ported tool for configuring local-host firewall is "ipf". Solaris 10 System Administrator Collection ->> System Administration Guide: IP Services ; provide good write-up to achieve that. Go to URL http://docs.sun.com/app/docs/doc/816-4554/6maoq023u

You may look into a tool "armor" URL http://www.spitzner.net/armoring.html
Sponsored Links
    #3  
Old 05-07-2007
grial's Avatar
grial grial is offline Forum Advisor  
El UNIX es como un toro
 
Join Date: Jun 2006
Last Activity: 1 December 2008, 8:39 AM EST
Location: Madrid (Spain)
Posts: 531
Thanks: 0
Thanked 1 Time in 1 Post
Quote:
Originally Posted by myramkumar
2) How to know whether particular Port is listning the requests or not?
I use "lsof" for that. Though, you may use "netstat" also.

Regards.
    #4  
Old 05-07-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
I've used it few times on a BSD server, the command was :
nmap -v -A -P0 10.10.1.1 (replaced by your actual IP) and it gives pretty good output like :
Quote:
Host my.host.tld (IP goes here) appears to be up ... good.
Interesting ports on my.host.tld (IP goes here):
Not shown: 1670 closed ports
PORT STATE SERVICE VERSION
21/tcp open ftp ProFTPD 1.2.10
22/tcp open ssh OpenSSH 4.2p1 (FreeBSD 20050903; protocol 1.99)
25/tcp open smtp qmail smtpd
53/tcp open domain
80/tcp open http Apache httpd 2.0.54
106/tcp open pop3pw poppassd
443/tcp open ssl/http Apache httpd 2.0.54
465/tcp open ssl/ssl OpenSSL
3306/tcp open mysql MySQL (unauthorized)
8443/tcp open http Apache httpd 1.3.33 ((FreeBSD) mod_ssl/2.8.22 OpenSSL/0.9.7e PHP/5.0.5)
No exact OS matches for host (If you know what OS is running on it, see http://www.insecure.org/cgi-bin/nmap-submit.cgi).
TCP/IP fingerprint:
+ much more....
Sponsored Links
    #5  
Old 05-08-2007
ranj@chn ranj@chn is offline Forum Advisor  
Registered User
 
Join Date: Oct 2005
Last Activity: 25 August 2011, 2:35 AM EDT
Location: Chennai
Posts: 370
Thanks: 0
Thanked 5 Times in 4 Posts
for aix?

What command similar to nmap for AIX 5.3? Our box didnt have nmap.
Sponsored Links
    #6  
Old 05-17-2007
bishweshwar bishweshwar is offline
Registered User
 
Join Date: Sep 2006
Last Activity: 4 April 2009, 9:46 AM EDT
Posts: 56
Thanks: 0
Thanked 0 Times in 0 Posts
In my machine when i run nmap...it says command not found.

Is there any other way to the get the job done.
Sponsored Links
    #7  
Old 05-17-2007
sysgate's Avatar
sysgate sysgate is offline Forum Advisor  
Unix based
 
Join Date: Nov 2006
Last Activity: 20 November 2013, 8:29 AM EST
Location: Bulgaria
Posts: 1,419
Thanks: 0
Thanked 6 Times in 6 Posts
http://aixpdslib.seas.ucla.edu/packages/nmap.html
Sponsored Links
Closed Thread

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

More UNIX and Linux Forum Topics You Might Find Helpful
Thread Thread Starter Forum Replies Last Post
Formatting port scan output lewk Shell Programming and Scripting 4 03-18-2011 09:40 AM
port scan shell script nrbhole Shell Programming and Scripting 3 01-31-2008 10:28 AM
unix program that can port scan a c block of ips for proxies user UNIX for Dummies Questions & Answers 1 07-11-2005 02:01 PM



All times are GMT -4. The time now is 06:17 AM.