GetStringsDistance
Get the string distance between inputString and compareString (compareString can be a comma-separated list) based on Levenshtein Distance algorithm.
python · Common Scripts
Details
| ID | GetStringsDistance |
|---|---|
| Language | python |
| From Version | 5.0.0 |
| Docker Image | demisto/python3:3.12.13.10404775 |
| Tags | server phishing |
README
Gets the string distance between inputString and compareString (compareString can be a comma-separated list) based on the Levenshtein Distance algorithm.
Script Data
| Name | Description |
|---|---|
| Script Type | python |
| Tags | server, phishing |
Inputs
| Argument Name | Description |
|---|---|
| compareString | A comma-separated list of strings to compare with the input string. |
| inputString | The input string to compare. |
| distance | The distance that is considered close. |
Outputs
| Path | Description | Type |
|---|---|---|
| LevenshteinDistance | The closeness of the sender domain to the configured domains. | Unknown |
commonfields: id: GetStringsDistance version: -1 name: GetStringsDistance script: '' type: python subtype: python3 tags: - server - phishing comment: Get the string distance between inputString and compareString (compareString can be a comma-separated list) based on Levenshtein Distance algorithm. system: true args: - name: compareString required: true isArray: true default: true description: A comma-separated list of strings to compare with the input string. - name: inputString required: true description: The input string(s) to compare. - name: distance description: Distance that is considered close. defaultValue: "3" outputs: - contextPath: LevenshteinDistance description: The closeness of the sender domain to our configured domains. scripttarget: 0 fromversion: 5.0.0 dockerimage: demisto/python3:3.12.13.10404775 tests: - GetStringsDistance - Test