9 More Discussions You Might Find Interesting
1. IP Networking
Hi,
I have read some forum theads about the open and close ports. some points are clear and it is not working on my machine or something am i missing?
I have commented out a port /etc/services, one application uses
then when i use the telnet <hostname> <port_blocked> it shows connected..... (1 Reply)
Discussion started by: balamv
1 Replies
2. UNIX for Dummies Questions & Answers
just a quick question:
a. whats the simplest command to check open port and the corresponding services?
example:
bash-2.05# netstat -an | grep LISTEN
*.199 *.* 0 0 49152 0 LISTEN
*.8989 *.* 0 0 49152 ... (1 Reply)
Discussion started by: lhareigh890
1 Replies
3. Solaris
hi guys,
may i know the exact steps to open a port in solaris.i have some rough idea - which is adding the port number in /etc/services.
but i am not sure the correct conventions, steps or any other steps.
kindly advise.thanks guys ! (1 Reply)
Discussion started by: cromohawk
1 Replies
4. Solaris
Hello,
I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1013-1023 (which are reserved ports according to the IANA. Lsof does not identify these. I rebooted the server and they went off, but this morning I saw they were all back on again. Any... (1 Reply)
Discussion started by: csgonan
1 Replies
5. UNIX for Dummies Questions & Answers
Hello,
I have a number of Solaris 8 Sun servers that have open ports that I cannot identify. I see some with 1012-1020 (which are reserved ports according to the IANA. Lsof does not identify these. One server has all these on and one server just has 1017.
*.1023 ... (3 Replies)
Discussion started by: csross
3 Replies
6. AIX
Hi Every body,
What is the command on AIX 5.2 that can be used to get all open ports? (2 Replies)
Discussion started by: aldowsary
2 Replies
7. Shell Programming and Scripting
Hello, i need a script (bash type maybe?..), which would check open ports on 127.0.0.1 and then compare open ports with "registered/allowed" port list and try to kill the program who uses unregistered ports. It would be great that script would be started lets say every 5 or 10 minutes.
You see i... (2 Replies)
Discussion started by: MorchiuS
2 Replies
8. UNIX for Advanced & Expert Users
hi all
1) how to determine available ports in a box (solaris)
do i have to go for a netstat on all the ports?
2) how to block a particular port for a particular type of connection.
Any help would be greatly appreciated
Thanks (7 Replies)
Discussion started by: matrixmadhan
7 Replies
9. Cybersecurity
/* Linux Slackware */
Nmap shows the following ports open on the gateway.
21/tcp ftp
22/tcp ssh
23/tcp telnet
25/tcp smtp
37/tcp time
80/tcp http
113/tcp auth
515/tcp printer
587/tcp submission
1024/tcp kdm
6000/tcp x11
-------------------------------
i would like to close as... (10 Replies)
Discussion started by: LowOrderBit
10 Replies
scanssh(1) BSD General Commands Manual scanssh(1)
NAME
scanssh -- scans the Internet for open proxies and SSH servers
SYNOPSIS
scanssh [-VIERph] [-s scanners,...] [-n ports,...] [-e excludefile] addresses...
DESCRIPTION
ScanSSH scans the given addresses and networks for running services. It mainly allows the detection of open proxies and Internet services.
For known services, ScanSSH will query their version number and displays the results in a list.
The adresses can be either specified as an IPv4 address or an CIDR like IP prefix, ipaddress/masklength. Ports can be appended by adding a
colon at the end of address specification.
Additionally, the following two commands can be prefixed to the address:
random(n[,seed])/ The random command selects random address from the address range specified. The arguments are as follows: n is the number
of address to randomly create in the given network and seed is a seed for the pseudo random number generator.
split(s,e)/ The split command is used to split the address range in several unique components. This can be use to scan from serveral
hosts in parallel. The arguments are as follows: e specifies the number of hosts scanning in parallel and s is the number
of the host this particular scan runs on.
The options are as follows:
-V Causes scanssh to print its version number.
-I Does not send a SSH identification string.
-E Exit the program, if the file containing the addresses for exclusion can not be found.
-R If addresses are generated at random, this flag causes the program to ignore excluded addresses from the exclude file. The
default behaviour is to always exclude addresses.
-p Specifies that ScanSSH should operate as a proxy detector. This flag sets the default modes and default scanners to detect
open proxies.
-h Displays the usage of the program.
-n ports,... Specifies the port numbers to scan. Ports are separated by commas. Each specified scanner is run for each port in this
list. The default is 22.
-s scanners Specifies a number of scanners should be executed for each open port. Multiple scanners are separated by commas. The fol-
lowing scanners are currently supported:
ssh Finds versions for SSH, Web and SMTP servers.
socks5 Detects if a SOCKS V5 proxy is running on the port.
socks4 Detects if a SOCKS V4 proxy is running on the port.
http-proxy Detects a HTTP get proxy.
http-connect Detects a HTTP connect proxy.
telnet-proxy Detects telnet based proxy servers.
-e excludefile Specifies the file that contains the addresses to be excluded from the scan. The syntax is the same as for the addresses on
the command line.
The output from scanssh contains only IP addresses. However, the IP addresses can be converted to names with the logresolve(8) tool included
in the Apache webserver.
EXAMPLES
The following command scans the class C network 10.0.0.0 - 10.0.0.255 for open proxies:
scanssh -p 10.0.0.0/24
The next command scans for ssh servers on port 22 only:
scanssh -n 22 -s ssh 192.168.0.0/16
The following command can be used in a parallel scan. Two hosts scan the specified networks randomly, where this is the first host:
scanssh 'random(0,rsd)/split(1,2)/(192.168.0.0/16 10.1.0.0/24):22,80'
BUGS
At the moment, scanssh leaves a one line entry in the log file of the ssh server. It is probably not possible to avoid that.
BSD
July 17, 2000 BSD