Portscan
Portscan is a simple port scanner for random IPs or specified IP ranges. Logs the open ports to a separate text file.
Language | Perl |
License | GPLv3 |
Version | 2.0 |
Release date | December 24, 2021 |
Download | zip archive |
Source code | browse |
Git repo | git clone https://sizeof.cat/git/portscan |
Usage
$ perl portscan.pl -r IPRANGE -p PORTNUMBER -h -v
-p specifies the port number to scan, for example -p 80
or -p 80,443
.
-r specifies the IP range to scan, ignore it for random IP scanning. Ranges can be specified in the 10.80.0.1-10.80.1.255
or 10.80.1.0/24
formats.
-h shows the program help
-v shows the program version
Example
$ perl portscan.pl -r 10.80.0.1-10.80.1.255 -p 80,443
License
Portscan is written by sizeof(cat) and released under GPLv3.
This program is free software: you can redistribute it and/or modify it under
the terms of the GNU General Public License as published by the Free Software
Foundation, either version 3 of the License, or (at your option) any later
version.
This program is distributed in the hope that it will be useful, but WITHOUT ANY
WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A
PARTICULAR PURPOSE. See the GNU General Public License for more details.
You should have received a copy of the GNU General Public License along with
this program. If not, see <https://www.gnu.org/licenses/>.
author
created February 28, 2016
updated July 4, 2023
words 218
tags #security, #projects, #perl, #pentesting, #tools