diff --git a/apis/README.md b/token-spray/README.md similarity index 76% rename from apis/README.md rename to token-spray/README.md index 66c544fcdf..24081b4662 100644 --- a/apis/README.md +++ b/token-spray/README.md @@ -2,13 +2,14 @@ This directory holds templates that have static API URL endpoints. Use these to test an API token against many API service endpoints. By providing token input using flag, Nuclei will test the token against all known API endpoints within the API templates, and return any successful results. By incorporating API checks as Nuclei Templates, users can test API keys that have no context (i.e., API keys that do not indicate for which API endpoint they are meant). ## Usage -You do not need to specify an input URL to test a token against these API endpoints, as the API endpoints have static URLs. However, Nuclei requires an input (specified via `-u` for individual URLs or `-l` for a file containing URLs). Because of this requirement, we simply pass in `-u "null"`. Each template in the `apis` directory assumes the input API token will be provided using CLI `var` flag. +You do not need to specify an input URL to test a token against these API endpoints, as the API endpoints have static URLs. However, Nuclei requires an input (specified via `-u` for individual URLs or `-l` for a file containing URLs). Because of this requirement, we simply pass in `-u "null"`. Each template in the `token-spray` directory assumes the input API token will be provided using CLI `var` flag. ```bash # Run Nuclei specifying all the api templates: -nuclei -u null -t apis/ -var token=thisIsMySecretTokenThatIWantToTest +nuclei -u null -t token-spray/ -var token=thisIsMySecretTokenThatIWantToTest ``` ## Credits -These API testing templates were inspired by the [streaak/keyhacks](https://github.com/streaak/keyhacks) repository. The Bishop Fox [Continuous Attack Surface Testing (CAST)](https://www.bishopfox.com/continuous-attack-surface-testing/how-cast-works/) team created additional API templates for testing API keys uncovered during investigations. +These API testing templates were inspired by the [streaak/keyhacks](https://github.com/streaak/keyhacks) repository. The Bishop Fox [Continuous Attack Surface Testing (CAST)](https://www.bishopfox.com/continuous-attack-surface-testing/how-cast-works/) team created additional API templates for testing API keys uncovered during investigations. You are welcome to add new templates based on the existing format to cover more APIs. + diff --git a/apis/asana.yaml b/token-spray/asana.yaml similarity index 100% rename from apis/asana.yaml rename to token-spray/asana.yaml diff --git a/apis/bingmaps.yaml b/token-spray/bingmaps.yaml similarity index 100% rename from apis/bingmaps.yaml rename to token-spray/bingmaps.yaml diff --git a/apis/bitly.yaml b/token-spray/bitly.yaml similarity index 100% rename from apis/bitly.yaml rename to token-spray/bitly.yaml diff --git a/apis/buildkite.yaml b/token-spray/buildkite.yaml similarity index 100% rename from apis/buildkite.yaml rename to token-spray/buildkite.yaml diff --git a/apis/buttercms.yaml b/token-spray/buttercms.yaml similarity index 100% rename from apis/buttercms.yaml rename to token-spray/buttercms.yaml diff --git a/apis/calendly.yaml b/token-spray/calendly.yaml similarity index 100% rename from apis/calendly.yaml rename to token-spray/calendly.yaml diff --git a/apis/circleci.yaml b/token-spray/circleci.yaml similarity index 100% rename from apis/circleci.yaml rename to token-spray/circleci.yaml diff --git a/apis/deviantart.yaml b/token-spray/deviantart.yaml similarity index 100% rename from apis/deviantart.yaml rename to token-spray/deviantart.yaml diff --git a/apis/dropbox.yaml b/token-spray/dropbox.yaml similarity index 100% rename from apis/dropbox.yaml rename to token-spray/dropbox.yaml diff --git a/apis/github.yaml b/token-spray/github.yaml similarity index 100% rename from apis/github.yaml rename to token-spray/github.yaml diff --git a/apis/google-autocomplete.yaml b/token-spray/google-autocomplete.yaml similarity index 100% rename from apis/google-autocomplete.yaml rename to token-spray/google-autocomplete.yaml diff --git a/apis/google-customsearch.yaml b/token-spray/google-customsearch.yaml similarity index 100% rename from apis/google-customsearch.yaml rename to token-spray/google-customsearch.yaml diff --git a/apis/google-directions.yaml b/token-spray/google-directions.yaml similarity index 100% rename from apis/google-directions.yaml rename to token-spray/google-directions.yaml diff --git a/apis/google-elevation.yaml b/token-spray/google-elevation.yaml similarity index 100% rename from apis/google-elevation.yaml rename to token-spray/google-elevation.yaml diff --git a/apis/google-fcm.yaml b/token-spray/google-fcm.yaml similarity index 100% rename from apis/google-fcm.yaml rename to token-spray/google-fcm.yaml diff --git a/apis/google-findplacefromtext.yaml b/token-spray/google-findplacefromtext.yaml similarity index 100% rename from apis/google-findplacefromtext.yaml rename to token-spray/google-findplacefromtext.yaml diff --git a/apis/google-gedistancematrix.yaml b/token-spray/google-gedistancematrix.yaml similarity index 100% rename from apis/google-gedistancematrix.yaml rename to token-spray/google-gedistancematrix.yaml diff --git a/apis/google-geocode.yaml b/token-spray/google-geocode.yaml similarity index 100% rename from apis/google-geocode.yaml rename to token-spray/google-geocode.yaml diff --git a/apis/google-geolocation.yaml b/token-spray/google-geolocation.yaml similarity index 100% rename from apis/google-geolocation.yaml rename to token-spray/google-geolocation.yaml diff --git a/apis/google-mapsembed.yaml b/token-spray/google-mapsembed.yaml similarity index 100% rename from apis/google-mapsembed.yaml rename to token-spray/google-mapsembed.yaml diff --git a/apis/google-mapsembedadvanced.yaml b/token-spray/google-mapsembedadvanced.yaml similarity index 100% rename from apis/google-mapsembedadvanced.yaml rename to token-spray/google-mapsembedadvanced.yaml diff --git a/apis/google-nearbysearch.yaml b/token-spray/google-nearbysearch.yaml similarity index 100% rename from apis/google-nearbysearch.yaml rename to token-spray/google-nearbysearch.yaml diff --git a/apis/google-nearestroads.yaml b/token-spray/google-nearestroads.yaml similarity index 100% rename from apis/google-nearestroads.yaml rename to token-spray/google-nearestroads.yaml diff --git a/apis/google-placedetails.yaml b/token-spray/google-placedetails.yaml similarity index 100% rename from apis/google-placedetails.yaml rename to token-spray/google-placedetails.yaml diff --git a/apis/google-placesphoto.yaml b/token-spray/google-placesphoto.yaml similarity index 100% rename from apis/google-placesphoto.yaml rename to token-spray/google-placesphoto.yaml diff --git a/apis/google-playablelocations.yaml b/token-spray/google-playablelocations.yaml similarity index 100% rename from apis/google-playablelocations.yaml rename to token-spray/google-playablelocations.yaml diff --git a/apis/google-routetotraveled.yaml b/token-spray/google-routetotraveled.yaml similarity index 100% rename from apis/google-routetotraveled.yaml rename to token-spray/google-routetotraveled.yaml diff --git a/apis/google-speedlimit.yaml b/token-spray/google-speedlimit.yaml similarity index 100% rename from apis/google-speedlimit.yaml rename to token-spray/google-speedlimit.yaml diff --git a/apis/google-staticmaps.yaml b/token-spray/google-staticmaps.yaml similarity index 100% rename from apis/google-staticmaps.yaml rename to token-spray/google-staticmaps.yaml diff --git a/apis/google-streetview.yaml b/token-spray/google-streetview.yaml similarity index 100% rename from apis/google-streetview.yaml rename to token-spray/google-streetview.yaml diff --git a/apis/google-timezone.yaml b/token-spray/google-timezone.yaml similarity index 100% rename from apis/google-timezone.yaml rename to token-spray/google-timezone.yaml diff --git a/apis/googlet-extsearchplaces.yaml b/token-spray/googlet-extsearchplaces.yaml similarity index 100% rename from apis/googlet-extsearchplaces.yaml rename to token-spray/googlet-extsearchplaces.yaml diff --git a/apis/heroku.yaml b/token-spray/heroku.yaml similarity index 100% rename from apis/heroku.yaml rename to token-spray/heroku.yaml diff --git a/apis/hubspot.yaml b/token-spray/hubspot.yaml similarity index 100% rename from apis/hubspot.yaml rename to token-spray/hubspot.yaml diff --git a/apis/instagram.yaml b/token-spray/instagram.yaml similarity index 100% rename from apis/instagram.yaml rename to token-spray/instagram.yaml diff --git a/apis/ipstack.yaml b/token-spray/ipstack.yaml similarity index 100% rename from apis/ipstack.yaml rename to token-spray/ipstack.yaml diff --git a/apis/iterable.yaml b/token-spray/iterable.yaml similarity index 100% rename from apis/iterable.yaml rename to token-spray/iterable.yaml diff --git a/apis/jumpcloud.yaml b/token-spray/jumpcloud.yaml similarity index 100% rename from apis/jumpcloud.yaml rename to token-spray/jumpcloud.yaml diff --git a/apis/lokalise.yaml b/token-spray/lokalise.yaml similarity index 100% rename from apis/lokalise.yaml rename to token-spray/lokalise.yaml diff --git a/apis/loqate.yaml b/token-spray/loqate.yaml similarity index 100% rename from apis/loqate.yaml rename to token-spray/loqate.yaml diff --git a/apis/mailchimp.yaml b/token-spray/mailchimp.yaml similarity index 100% rename from apis/mailchimp.yaml rename to token-spray/mailchimp.yaml diff --git a/apis/mailgun.yaml b/token-spray/mailgun.yaml similarity index 100% rename from apis/mailgun.yaml rename to token-spray/mailgun.yaml diff --git a/apis/mapbox.yaml b/token-spray/mapbox.yaml similarity index 100% rename from apis/mapbox.yaml rename to token-spray/mapbox.yaml diff --git a/apis/nerdgraph.yaml b/token-spray/nerdgraph.yaml similarity index 100% rename from apis/nerdgraph.yaml rename to token-spray/nerdgraph.yaml diff --git a/apis/npm.yaml b/token-spray/npm.yaml similarity index 100% rename from apis/npm.yaml rename to token-spray/npm.yaml diff --git a/apis/openweather.yaml b/token-spray/openweather.yaml similarity index 100% rename from apis/openweather.yaml rename to token-spray/openweather.yaml diff --git a/apis/pagerduty.yaml b/token-spray/pagerduty.yaml similarity index 100% rename from apis/pagerduty.yaml rename to token-spray/pagerduty.yaml diff --git a/apis/pendo.yaml b/token-spray/pendo.yaml similarity index 100% rename from apis/pendo.yaml rename to token-spray/pendo.yaml diff --git a/apis/pivotaltracker.yaml b/token-spray/pivotaltracker.yaml similarity index 100% rename from apis/pivotaltracker.yaml rename to token-spray/pivotaltracker.yaml diff --git a/apis/postmark.yaml b/token-spray/postmark.yaml similarity index 100% rename from apis/postmark.yaml rename to token-spray/postmark.yaml diff --git a/apis/sendgrid.yaml b/token-spray/sendgrid.yaml similarity index 100% rename from apis/sendgrid.yaml rename to token-spray/sendgrid.yaml diff --git a/apis/slack.yaml b/token-spray/slack.yaml similarity index 100% rename from apis/slack.yaml rename to token-spray/slack.yaml diff --git a/apis/sonarcloud.yaml b/token-spray/sonarcloud.yaml similarity index 100% rename from apis/sonarcloud.yaml rename to token-spray/sonarcloud.yaml diff --git a/apis/spotify.yaml b/token-spray/spotify.yaml similarity index 100% rename from apis/spotify.yaml rename to token-spray/spotify.yaml diff --git a/apis/square.yaml b/token-spray/square.yaml similarity index 100% rename from apis/square.yaml rename to token-spray/square.yaml diff --git a/apis/stripe.yaml b/token-spray/stripe.yaml similarity index 100% rename from apis/stripe.yaml rename to token-spray/stripe.yaml diff --git a/apis/tinypng.yaml b/token-spray/tinypng.yaml similarity index 100% rename from apis/tinypng.yaml rename to token-spray/tinypng.yaml diff --git a/apis/travisci.yaml b/token-spray/travisci.yaml similarity index 100% rename from apis/travisci.yaml rename to token-spray/travisci.yaml diff --git a/apis/twitter.yaml b/token-spray/twitter.yaml similarity index 100% rename from apis/twitter.yaml rename to token-spray/twitter.yaml diff --git a/apis/visualstudio.yaml b/token-spray/visualstudio.yaml similarity index 100% rename from apis/visualstudio.yaml rename to token-spray/visualstudio.yaml diff --git a/apis/wakatime.yaml b/token-spray/wakatime.yaml similarity index 100% rename from apis/wakatime.yaml rename to token-spray/wakatime.yaml diff --git a/apis/weglot.yaml b/token-spray/weglot.yaml similarity index 100% rename from apis/weglot.yaml rename to token-spray/weglot.yaml diff --git a/apis/youtube.yaml b/token-spray/youtube.yaml similarity index 100% rename from apis/youtube.yaml rename to token-spray/youtube.yaml