Last Modified: 2023-10-12 13:19:19Z
Table of Contents
Ronin is a Free and Open Source Ruby Toolkit for Security Research and Development.
1. Installation
gem install ronin
2. Write a webhook in three lines
require 'ronin/listener/http'
Ronin::Listener::HTTP.listen(host: '127.0.0.1', port: 8080) do |request|
puts "#{request.method} #{request.path} #{request.version}"
end
You can write a full feature webhook in 9 lines.
require 'ronin/listener/http'
Ronin::Listener::HTTP.listen(host: '127.0.0.1', port: 8080) do |request|
puts "#{request.method} #{request.path} #{request.version}"
request.headers.each do |name,value|
puts "#{name}: #{value}"
end
puts request.body if request.body
puts
end