Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit1dc6745

Browse files
committed
gis-9379 unlock domains
1 parent7b7c354 commit1dc6745

File tree

1 file changed

+4
-4
lines changed
  • uncoder-core/app/translator/tools

1 file changed

+4
-4
lines changed

‎uncoder-core/app/translator/tools/const.py‎

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,14 +1,14 @@
1-
fromtypingimportget_args,Literal
1+
fromtypingimportLiteral,get_args
22

33
IP_IOC_REGEXP_PATTERN=r"(?:^|[ \/\[(\"',;>|])((?:25[0-5]|2[0-4]\d|[0-1]?\d{1,2})(?:\[?\(?\{?\.\]?\)?\}?(?:25[0-5]|2[0-4]\d|[0-1]?\d{1,2})){3})(?=[\s)\]\"',;:\/?\n<|]|$)"# noqa: E501
4-
DOMAIN_IOC_REGEXP_PATTERN=r"(?:^|[\s\/\[\]@(\"',;{>|])(?:(?:http[s]?|ftp):\/\/?)?([^:\\\/\s({\[\]@\"'`,]+\.[a-zA-Z]+)(?:(?:(?:[/|:]\w+)*\/)(?:[\w\-.]+[^#?\s]+)?(?:[\w/\-&?=%.#]+(?:\(\))?)?)?(?=[\s)\]\"',;<|]|$)"# noqa: E501
5-
URL_IOC_REGEXP_PATTERN=r"(?:h[xX][xX]p[s]?|f[txX]p[s]?):\/\/[^\s,:;]+"# noqa: E501
4+
DOMAIN_IOC_REGEXP_PATTERN=r"((?:[A-Za-z0-9|-]+\[?\{?\(?\.\)?\}?\]?)*[A-Za-z0-9|-]+(?:\[|\{|\()\.(?:\)|\}|\])[A-Za-z|-]+)|((?:[A-Za-z0-9|-]+(?:\[|\{|\()\.(?:\)|\}|\]))*[A-Za-z0-9|-]+(?:\[|\{|\()\.(?:\)|\}|\])[A-Za-z|-]+)|(?:h[xX][xX]p[s]?|f[txX]p[s]?):\/\/([^\/\s,:;]+)+"# noqa: E501
5+
URL_IOC_REGEXP_PATTERN=r"(?:h[xX][xX]p[s]?|f[txX]p[s]?):\/\/[^\s,:;]+"
66

77
IOCType=Literal["ip","domain","url","hash"]
88
HashType=Literal["md5","sha1","sha256","sha512"]
99
IocParsingRule=Literal["replace_dots","remove_private_and_reserved_ips","replace_hxxp"]
1010

11-
DefaultIOCType=list(get_args(Literal["ip","url","hash"]))
11+
DefaultIOCType=list(get_args(IOCType))
1212
DefaultHashType=list(get_args(HashType))
1313
DefaultIocParsingRule=list(get_args(IocParsingRule))
1414

0 commit comments

Comments
 (0)

[8]ページ先頭

©2009-2025 Movatter.jp