metasploitable3/chef/cookbooks/metasploitable/templates/knockd/knockd.conf.erb
James Barnett bc3ef65dbf Update linux tests.
- Finished out flag tests
- All tests are passing correctly
- Use integer for mode consistently
2017-08-15 12:43:37 -05:00

17 lines
781 B
Plaintext

[options]
UseSyslog
[openFlag]
sequence = <%= node[:users].keys[0..2].map { |u| node[:users][u][:salary] }.join(',') %>
seq_timeout = 15
command = /sbin/iptables -I INPUT 1 -s %IP% -p tcp --dport <%= node[:flags][:five_of_diamonds][:vuln_port] %> -j ACCEPT
tcpflags = syn
cmd_timeout = 30
stop_command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport <%= node[:flags][:five_of_diamonds][:vuln_port] %> -j ACCEPT
[closeFlag]
sequence = <%= node[:users].keys[0..2].map { |u| node[:users][u][:salary] }.reverse.join(',') %>
seq_timeout = 15
command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport <%= node[:flags][:five_of_diamonds][:vuln_port] %> -j ACCEPT
tcpflags = syn