mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-05 03:05:51 +02:00
5bbed5387e
This flag is hidden within a binary that runs a webservice on a given port. The port is blocked until the correct port knocking sequence is initiated. The default port sequence is all of the user's salary numbers. The commit also moves a lot of values that were previously in recipes into attributes files for easier maintaining going forward.
24 lines
425 B
Ruby
24 lines
425 B
Ruby
#
|
|
# Cookbook:: metasploitable
|
|
# Recipe:: flags
|
|
#
|
|
# Copyright:: 2017, Rapid7, All Rights Reserved.
|
|
|
|
directory '/opt/knock_knock' do
|
|
mode 0700
|
|
end
|
|
|
|
cookbook_file '/opt/knock_knock/five_of_diamonds' do
|
|
source 'flags/five_of_diamonds'
|
|
mode 0700
|
|
end
|
|
|
|
cookbook_file '/etc/init.d/five_of_diamonds_srv' do
|
|
source 'flags/five_of_diamonds_srv'
|
|
mode '760'
|
|
end
|
|
|
|
service 'five_of_diamonds_srv' do
|
|
action [:enable, :start]
|
|
end
|