This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# format tab-delimited lines to table with borders | |
# compute width of each column | |
column_width=() | |
text='' | |
while read -r line | |
do | |
text=$text${text:+$'\n'}$line |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env perl | |
use Number::Range::Regex; | |
Number::Range::Regex->init({'comment'=>0, 'no_leading_zeroes'=>1, 'no_sign'=>1}); | |
$rr0_255 = range(0, 255); | |
$rr0_32 = range(0, 32); | |
$union_range = range(-1, -1); |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/perl | |
# | |
# Rouge DHCP traffic detection. | |
# | |
$0 = "RougeDetect"; | |
# Wait for dhcp offer: | |
$WAIT = 10; | |
# Only legal dhcp server and gateway: | |
$Router = "192.168.1.254"; |