-
Notifications
You must be signed in to change notification settings - Fork 83
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
7 changed files
with
69 additions
and
4 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
51 changes: 51 additions & 0 deletions
51
crates/noseyparker/data/default/builtin/rules/particle.io.yml
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,51 @@ | ||
rules: | ||
|
||
- name: particle.io Access Token (URL first) | ||
id: np.particleio.1 | ||
|
||
pattern: | | ||
(?x) | ||
https://api\.particle\.io/v1/[a-zA-Z0-9_\-\s/"\\?]* | ||
(?:access_token=|Authorization:\s*Bearer\s*) | ||
\b | ||
([a-zA-Z0-9]{40}) | ||
\b | ||
examples: | ||
- | | ||
curl https://api.particle.io/v1/devices \ | ||
-H "Authorization: Bearer 38bb7b318cc6898c80317decb34525844bc9db55" | ||
- | | ||
curl https://api.particle.io/v1/devices \ | ||
-d access_token=38bb7b318cc6898c80317decb34525844bc9db55 | ||
- 'curl https://api.particle.io/v1/devices -H "Authorization: Bearer 38bb7b318cc6898c80317decb34525844bc9db55"' | ||
- 'curl https://api.particle.io/v1/devices -d access_token=38bb7b318cc6898c80317decb34525844bc9db55' | ||
- 'curl "https://api.particle.io/v1/devices/events?access_token=38bb7b318cc6898c80317decb34525844bc9db55"' | ||
- 'curl "https://api.particle.io/v1/access_tokens/current?access_token=38bb7b318cc6898c80317decb34525844bc9db55"' | ||
|
||
references: | ||
- https://docs.particle.io/reference/cloud-apis/api/ | ||
|
||
- name: particle.io Access Token (URL last) | ||
id: np.particleio.2 | ||
|
||
pattern: | | ||
(?x) | ||
(?:access_token=|Authorization:\s*Bearer\s*) | ||
\b | ||
([a-zA-Z0-9]{40}) | ||
\b | ||
[\s"\\]*https://api\.particle\.io/v1 | ||
examples: | ||
- | | ||
curl -H "Authorization: Bearer 38bb7b318cc6898c80317decb34525844bc9db55" \ | ||
https://api.particle.io/v1/devices | ||
- | | ||
curl -d access_token=38bb7b318cc6898c80317decb34525844bc9db55 \ | ||
https://api.particle.io/v1/devices | ||
- 'curl -H "Authorization: Bearer 38bb7b318cc6898c80317decb34525844bc9db55" https://api.particle.io/v1/devices' | ||
- 'curl -d access_token=38bb7b318cc6898c80317decb34525844bc9db55 https://api.particle.io/v1/devices' | ||
|
||
references: | ||
- https://docs.particle.io/reference/cloud-apis/api/ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters