Get notified on slack each time someone sends a http request to a fake resource.
An alternative to https://canarytokens.org/generate which supports
- forwarding any data you pass in the url
- slack webhooks
How is this useful? It can be useful to test XSS vulnerabilities or track when a document is loaded.
Remember to set webhook url as config/environment variable in Heroku either from CLI
heroku config:set canary_slack_web_hook_url="https://hooks.slack.com/services/abc/defg/1234"
or via Heroku dashboard like this
$ brew install rbenv
$ rbenv init # and do what it tells you to
$ rbenv install $(cat ".ruby-version")
$ gem install bundler
$ bundle install --binstubs
$ export canary_slack_web_hook_url="https://hooks.slack.com/services/abc/defg/1234" # replace with your webhook url
$ bundle install --binstubs
$ bundle exec puma -C puma/config.rb
- Open code (VSCode) and install Ruby plugin (rebornix.ruby) from Peng Lv
- Hit
cmd
+shift
+F5
- Go to 127.0.0.1:3000