Portscan is a simple port scanner for random IPs or specified IP ranges. Logs the open ports to a separate text file.

Release dateDecember 24, 2021
Downloadzip archive
Source codebrowse
Git repogit clone https://sizeof.cat/git/portscan


$ 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 or formats.

-h shows the program help

-v shows the program version


$ perl portscan.pl -r -p 80,443


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

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/>.