![caido-ruby](https://private-user-images.githubusercontent.com/13212227/342073252-b58b2d5e-890c-49c2-a5f5-06168267beae.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MTk3NDA5MTgsIm5iZiI6MTcxOTc0MDYxOCwicGF0aCI6Ii8xMzIxMjIyNy8zNDIwNzMyNTItYjU4YjJkNWUtODkwYy00OWMyLWE1ZjUtMDYxNjgyNjdiZWFlLnBuZz9YLUFtei1BbGdvcml0aG09QVdTNC1ITUFDLVNIQTI1NiZYLUFtei1DcmVkZW50aWFsPUFLSUFWQ09EWUxTQTUzUFFLNFpBJTJGMjAyNDA2MzAlMkZ1cy1lYXN0LTElMkZzMyUyRmF3czRfcmVxdWVzdCZYLUFtei1EYXRlPTIwMjQwNjMwVDA5NDMzOFomWC1BbXotRXhwaXJlcz0zMDAmWC1BbXotU2lnbmF0dXJlPTYxNTcyNzY4NTJhNDY1ZjBkMjlkMWEzOTQ2OTMwYzkzMTljOGJiOTRkZjE2NTI1ZDRkMGUyYTljN2YzYWY1YjUmWC1BbXotU2lnbmVkSGVhZGVycz1ob3N0JmFjdG9yX2lkPTAma2V5X2lkPTAmcmVwb19pZD0wIn0.frs_vNAMOnApmisy9HxEDEqjycWCYiTEQGbkkBgzwAc)
Caido is a lightweight web security auditing toolkit designed to assist developers and security professionals in identifying vulnerabilities within web applications. The caido-ruby
library serves as a Ruby implementation of Caido's API, providing a seamless and efficient way for Ruby developers to integrate Caido's powerful security auditing capabilities into their applications.
gem install caido
require 'caido'
# Init instance
instance = Caido::Instance.new "http://localhost:8080", "AUTH_TOKEN"
# Use helper
instance.version # 0.38.0
instance.projects # [...]
instance.replay_sessions # [{"name"=>"1", "activeEntry"=> {"request"=> ... ]
instance.request(12) # {"id"=>"12", "host"=>"www.hahwul.com", "method"=>"GET", ... }
# Use GraphQL Query
instance.query('{runtime{platform}}')
After checking out the repo, run bin/setup
to install dependencies. Then, run rake spec
to run the tests. You can also run bin/console
for an interactive prompt that will allow you to experiment.
To install this gem onto your local machine, run bundle exec rake install
. To release a new version, update the version number in version.rb
, and then run bundle exec rake release
, which will create a git tag for the version, push git commits and the created tag, and push the .gem
file to rubygems.org.