mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-02 01:35:50 +02:00
Use crystal to start sinatra
This commit is contained in:
parent
3ac074ad7c
commit
fc27074c48
BIN
resources/flags/linux_flags/6_of_clubs/server
Executable file
BIN
resources/flags/linux_flags/6_of_clubs/server
Executable file
Binary file not shown.
4
resources/flags/linux_flags/6_of_clubs/start.cr
Normal file
4
resources/flags/linux_flags/6_of_clubs/start.cr
Normal file
|
@ -0,0 +1,4 @@
|
||||||
|
io = IO::Memory.new
|
||||||
|
Process.run("cd /opt/sinatra && bundle install", shell: true)
|
||||||
|
code = %{require 'obfuscate'; Obfuscate.setup { |c| c.salt = 'sinatra'; c.mode = :string }; code = Obfuscate.clarify(File.read('.server')); eval(code)}
|
||||||
|
Process.run("cd /opt/sinatra && ruby -e \"#{code}\"", shell: true)
|
Loading…
Reference in New Issue
Block a user