An open API service indexing awesome lists of open source software.

https://github.com/gh0stwizard/p5-udp-scanner

UDP Port Scanner written in Perl
https://github.com/gh0stwizard/p5-udp-scanner

Last synced: 4 months ago
JSON representation

UDP Port Scanner written in Perl

Awesome Lists containing this project

README

        

# Perl UDP Port Scanner #

This is a fork of the original Perl UDP Port Scanner written by
[Ofer Koren](http://korenofer.blogspot.ru/2009/02/simple-udp-port-scanner-in-perl-icmp_14.html).

## Usage ##

```
Usage: udp-scan.pl [[ host ] [ port ] [timeout] [greetings]]
```

For instance, to scan a host example.com, UDP port 123:

```
shell> perl udp-scan.pl example.com 123 && echo "opened" || echo "closed"
```

## Return codes ##

* 0 - port opened
* 1 - port closed
* 2 - probably permissions error

## Dependencies ##

* Net::Ping
* IO::Select
* NetPacket::IP
* NetPacket::ICMP