| 1 | ########Search open doors in a target######## | ||
| 2 | use P50Tools; | ||
| 3 | |||
| 4 | my $p = P50Tools::RandonDoors->new(); | ||
| 5 | $p->target('my.target.lan'); | ||
| 6 | $p->ini(78); | ||
| 7 | $p->end(82); | ||
| 8 | # To use defaults doors don't declare 'ini' and 'end' methods, will be search all doors | ||
| 9 | # $p->timeout(20); this method can be used optionally | ||
| 10 | $p->scan; |