Skip to content

Commit

Permalink
Merge pull request rapid7#4 from rapid7/sinatra_crystal_loader
Browse files Browse the repository at this point in the history
Use Crystal loader for Sinatra
  • Loading branch information
usmcfiredog committed Jul 20, 2017
2 parents 73b7ddf + 35cd858 commit a3451d2
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 13 deletions.
Binary file not shown.
2 changes: 1 addition & 1 deletion chef/cookbooks/metasploitable/files/sinatra/sinatra.conf
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ description 'Run vulnerable Sinatra'
author 'metasploitable3'

start on runlevel [2345]
exec "/var/opt/sinatra/start.sh"
exec "/opt/sinatra/server"
5 changes: 0 additions & 5 deletions chef/cookbooks/metasploitable/files/sinatra/start.sh

This file was deleted.

17 changes: 10 additions & 7 deletions chef/cookbooks/metasploitable/recipes/sinatra.rb
Original file line number Diff line number Diff line change
Expand Up @@ -17,15 +17,18 @@
mode '0777'
end

['Gemfile', 'server'].each do |fname|
cookbook_file "/opt/sinatra/#{fname}" do
source "sinatra/#{fname}"
mode '0777'
end
cookbook_file '/opt/sinatra/Gemfile' do
source 'sinatra/Gemfile'
mode '0777'
end

cookbook_file '/opt/sinatra/server' do
source 'sinatra/loader'
mode '0777'
end

cookbook_file '/var/opt/sinatra/start.sh' do
source 'sinatra/start.sh'
cookbook_file '/opt/sinatra/.server' do
source 'sinatra/server'
mode '0777'
end

Expand Down

0 comments on commit a3451d2

Please # to comment.