Path: blob/master/sherlock_project/resources/data.schema.json
761 views
{1"$schema": "https://json-schema.org/draft/2020-12/schema",2"title": "Sherlock Target Manifest",3"description": "Social media targets to probe for the existence of known usernames",4"type": "object",5"properties": {6"$schema": { "type": "string" }7},8"patternProperties": {9"^(?!\\$).*?$": {10"type": "object",11"description": "Target name and associated information (key should be human readable name)",12"required": ["url", "urlMain", "errorType", "username_claimed"],13"properties": {14"url": { "type": "string" },15"urlMain": { "type": "string" },16"urlProbe": { "type": "string" },17"username_claimed": { "type": "string" },18"regexCheck": { "type": "string" },19"isNSFW": { "type": "boolean" },20"headers": { "type": "object" },21"request_payload": { "type": "object" },22"__comment__": {23"type": "string",24"description": "Used to clarify important target information if (and only if) a commit message would not suffice.\nThis key should not be parsed anywhere within Sherlock."25},26"tags": {27"oneOf": [28{ "$ref": "#/$defs/tag" },29{ "type": "array", "items": { "$ref": "#/$defs/tag" } }30]31},32"request_method": {33"type": "string",34"enum": ["GET", "POST", "HEAD", "PUT"]35},36"errorType": {37"oneOf": [38{39"type": "string",40"enum": ["message", "response_url", "status_code"]41},42{43"type": "array",44"items": {45"type": "string",46"enum": ["message", "response_url", "status_code"]47}48}49]50},51"errorMsg": {52"oneOf": [53{ "type": "string" },54{ "type": "array", "items": { "type": "string" } }55]56},57"errorCode": {58"oneOf": [59{ "type": "integer" },60{ "type": "array", "items": { "type": "integer" } }61]62},63"errorUrl": { "type": "string" },64"response_url": { "type": "string" }65},66"dependencies": {67"errorMsg": {68"oneOf": [69{ "properties": { "errorType": { "const": "message" } } },70{71"properties": {72"errorType": {73"type": "array",74"contains": { "const": "message" }75}76}77}78]79},80"errorUrl": {81"oneOf": [82{ "properties": { "errorType": { "const": "response_url" } } },83{84"properties": {85"errorType": {86"type": "array",87"contains": { "const": "response_url" }88}89}90}91]92},93"errorCode": {94"oneOf": [95{ "properties": { "errorType": { "const": "status_code" } } },96{97"properties": {98"errorType": {99"type": "array",100"contains": { "const": "status_code" }101}102}103}104]105}106},107"allOf": [108{109"if": {110"anyOf": [111{ "properties": { "errorType": { "const": "message" } } },112{113"properties": {114"errorType": {115"type": "array",116"contains": { "const": "message" }117}118}119}120]121},122"then": { "required": ["errorMsg"] }123},124{125"if": {126"anyOf": [127{ "properties": { "errorType": { "const": "response_url" } } },128{129"properties": {130"errorType": {131"type": "array",132"contains": { "const": "response_url" }133}134}135}136]137},138"then": { "required": ["errorUrl"] }139}140],141"additionalProperties": false142}143},144"additionalProperties": false,145"$defs": {146"tag": { "type": "string", "enum": ["adult", "gaming"] }147}148}149150151