Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/agens-no/canary
Get notified on slack each time someone sends a http request to a fake resource.
https://github.com/agens-no/canary
Last synced: 5 days ago
JSON representation
Get notified on slack each time someone sends a http request to a fake resource.
- Host: GitHub
- URL: https://github.com/agens-no/canary
- Owner: agens-no
- Created: 2018-11-15T10:30:42.000Z (about 6 years ago)
- Default Branch: master
- Last Pushed: 2018-11-15T11:04:27.000Z (about 6 years ago)
- Last Synced: 2024-11-05T21:33:15.485Z (about 2 months ago)
- Language: Ruby
- Homepage:
- Size: 5.86 KB
- Stars: 0
- Watchers: 2
- Forks: 1
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
Awesome Lists containing this project
README
Canary
======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.
## Deploy to Heroku
[![Deploy](https://www.herokucdn.com/deploy/button.svg)](https://heroku.com/deploy)
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
![Dashboard](https://user-images.githubusercontent.com/3652587/48548657-cd978880-e8cd-11e8-985a-b8e668dd62ef.png)
## Local development
### First time
$ 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## Run application locally
$ bundle install --binstubs
$ bundle exec puma -C puma/config.rb## Debug application locally
1. Open code (VSCode) and install Ruby plugin (rebornix.ruby) from Peng Lv
2. Hit `cmd` + `shift` + `F5`
3. Go to [127.0.0.1:3000](http://127.0.0.1:3000/)