mirror of
https://github.com/rapid7/metasploitable3.git
synced 2024-07-02 01:35:50 +02:00
Update make_5_of_diamonds_http_server.rb
This commit is contained in:
parent
27127d2a37
commit
06800a055e
|
@ -45,12 +45,12 @@ OptionParser.parse! do \|parser\|
|
||||||
parser.on("-h", "--help", "Show this help.") { puts parser }
|
parser.on("-h", "--help", "Show this help.") { puts parser }
|
||||||
end
|
end
|
||||||
|
|
||||||
server = HTTP::Server.new(port) do \|context\|
|
server = HTTP::Server.new("0.0.0.0", port) do \|context\|
|
||||||
context.response.content_type = "image/png"
|
context.response.content_type = "image/png"
|
||||||
context.response.print Base64.decode_string("\#{flag}")
|
context.response.print Base64.decode_string("\#{flag}")
|
||||||
end
|
end
|
||||||
|
|
||||||
puts "Listening on http://127.0.0.1:\#{port}"
|
puts "Listening on http://0.0.0.0:\#{port}"
|
||||||
server.listen|
|
server.listen|
|
||||||
|
|
||||||
puts "* This is the Crystal code you are about to compile:"
|
puts "* This is the Crystal code you are about to compile:"
|
||||||
|
@ -74,4 +74,3 @@ end
|
||||||
puts "* Crystal built: #{CRYSTALOUTPUT}"
|
puts "* Crystal built: #{CRYSTALOUTPUT}"
|
||||||
print '* '
|
print '* '
|
||||||
puts `file #{CRYSTALOUTPUT}`
|
puts `file #{CRYSTALOUTPUT}`
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue
Block a user