metasploitable3/chef/cookbooks/metasploitable/templates/knockd/knockd.conf.erb

17 lines
781 B
Plaintext
Raw Normal View History

[options]
UseSyslog
[openFlag]
sequence = <%= node[:users].keys[0..2].map { |u| node[:users][u][:salary] }.join(',') %>
seq_timeout = 15
2017-06-30 22:45:08 +02:00
command = /sbin/iptables -I INPUT 1 -s %IP% -p tcp --dport <%= node[:flags][:five_of_diamonds][:vuln_port] %> -j ACCEPT
tcpflags = syn
2017-07-22 08:28:30 +02:00
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
2017-06-30 22:45:08 +02:00
command = /sbin/iptables -D INPUT -s %IP% -p tcp --dport <%= node[:flags][:five_of_diamonds][:vuln_port] %> -j ACCEPT
2017-07-22 08:28:30 +02:00
tcpflags = syn