portscan
Package: WA2L/edrc 1.5.57
Section: Library Commands (3)
Updated: 23 June 2021
Index
Return to Main Contents
NAME
portscan - scan for open ports on host from min to max
SYNOPSIS
edrc/lib/portscan
[
-h
]
portscan
host
[
min
[
max
]]
AVAILABILITY
WA2L/edrc
DESCRIPTION
scan a target system for active ports.
It is possible to specify the minimum port where
the scan should start and the maximum port number
where the scan should stop.
Ports that are active are
returned to
stdout.
The port is scanned by connecting to the target system using the
given port using a timeout of 1 second.
OPTIONS
- -h
-
print usage message.
- host
-
hostname.
- min
-
minimum port number.
If the minimum port number is not given, the default of
0
is used.
- max
-
maximum port number.
If the maximum port number is not given, the default of
65000
is used.
ENVIRONMENT
-
EXIT STATUS
- 0
-
no error.
- 1
-
cannot resolve host name.
- 2
-
cannot crate socket.
- 4
-
usage message printed.
FILES
-
EXAMPLES
-
SEE ALSO
edrcintro(1),
gethostbyname(1),
ping(8)
NOTES
-
BUGS
sometimes open ports are not reported.
IPv6 is not supported yet.
AUTHOR
portscan was developed by Christian Walther. Send suggestions
and bug reports to wa2l@users.sourceforge.net .
COPYRIGHT
Copyright © 2020
Christian Walther
This is free software; see
edrc/doc/COPYING
for copying conditions. There is ABSOLUTELY NO WARRANTY; not
even for MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
This document was created by man2html
using the manual pages.
Time: 16:54:03 GMT, August 28, 2024