Help for this page

Select Code to Download


  1. or download this
    sub scan_host {
        while( my( $ip )= $hosts->dequeue() ) {
    ...
    for( 1..$NUM_THREADS ) {
        threads->create( \&scan_host );
    };
    
  2. or download this
    $hosts->end;
    
    while(my $result= $portstatus->dequeue()) {
        print Dumper $result;
    };