Changeset 1146

Show
Ignore:
Timestamp:
06/28/08 11:42:27 (5 months ago)
Author:
mbr
Message:

added --Test-mode exit for port knock sequences so that they are not sent if --Test-mode is used (this assists the test suite)

Files:

Legend:

Unmodified
Added
Removed
Modified
Copied
Moved
  • fwknop/trunk/fwknop

    r1135 r1146  
    973973sub knock_ports() { 
    974974    my $ports_aref = shift; 
     975 
     976    if ($test_mode) { 
     977        print "[+] --Test-mode enabled, not sending sequence.\n"; 
     978        exit 0; 
     979    } 
    975980 
    976981    print "[+] Sending port knocking sequence to knock server: $knock_dst\n"