Skip to content

Commit

Permalink
Adding protection to schema
Browse files Browse the repository at this point in the history
  • Loading branch information
WebBreacher committed Oct 4, 2024
1 parent 520edce commit 355d1be
Show file tree
Hide file tree
Showing 5 changed files with 21 additions and 2 deletions.
2 changes: 2 additions & 0 deletions CONTRIBUTING.md
Original file line number Diff line number Diff line change
Expand Up @@ -90,6 +90,7 @@ Within the `sites` elements, the format is as follows (with several parameters b
"known" : ["a list of user accounts that can be used to test", "for user enumeration"],
"cat" : "a category for what the site is mainly used for. The current categories are found at the top of the JSON",
"valid" : "[OPTIONAL] single value of False. If it is present and False, then checkers should skip this site",
"protection" : "[OPTIONAL] a list of 1 or more site protections like: captcha, cloudflare, userauth, multiple, other",
"headers": {"[OPTIONAL] a dictionary of headers that should be passed to a site"}
},
...
Expand All @@ -110,6 +111,7 @@ Here are examples of the site elements for both HTTP GET and HTTP POST entries:
"m_string" : "Account not found",
"known" : ["whoami", "johndoe"],
"cat" : "images",
"protection" : "cloudflare",
"headers": {
"accept": "text/html"
}
Expand Down
2 changes: 1 addition & 1 deletion LICENSE.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
Copyright (C) 2023 Micah Hoffman
Copyright (C) 2024 Micah Hoffman

This work is licensed under the Creative Commons Attribution-ShareAlike 4.0 International License.
To view a copy of this license, visit http://creativecommons.org/licenses/by-sa/4.0/ or send a letter to Creative Commons,
Expand Down
2 changes: 1 addition & 1 deletion SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@

## Reporting a Vulnerability

To report a vulnerability, please create an [Issue](https://github.com/WebBreacher/WhatsMyName/issues) in this project or send an email to `micah` `@` `spotlight-infosec.com`
To report a vulnerability, please create an [Issue](https://github.com/WebBreacher/WhatsMyName/issues) in this project or send an email to `webbreacher` `@` `gmail.com`
1 change: 1 addition & 0 deletions sample.json
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,7 @@
"m_string" : "Account not found",
"known" : ["whoami", "johndoe"],
"cat" : "images",
"protection" : "captcha",
"headers": {
"accept": "text/html"
}
Expand Down
16 changes: 16 additions & 0 deletions wmn-data-schema.json
Original file line number Diff line number Diff line change
Expand Up @@ -194,6 +194,22 @@
],
"default": ""
},
"protection": {
"$id": "#root/sites/items/protection",
"title": "Protection",
"type": "array",
"default": [],
"items":{
"$id": "#root/sites/items/protection/items",
"title": "Items",
"type": "string",
"default": "",
"examples": [
"cloudflare", "captcha"
],
"pattern": "^.*$"
}
},
"headers": {
"$id": "#root/sites/items/headers",
"title": "Headers",
Expand Down

0 comments on commit 355d1be

Please sign in to comment.