简体   繁体   English

Defang IP的正则表达式

[英]Regex for Defang IP's

I am writing the go program for gathering the CTI from Twitter feeds, however when I saw the logs many malicious IPs are being posted in Defanged order, like this 10.2[.]4.5 or like this 10[.]2.3.5 problem here is that there is no patter for defanging, so I need to write the Regex for it.我正在编写 go 程序,用于从 Twitter 提要中收集 CTI,但是当我看到日志时,许多恶意 IP 都以 Defanged 顺序发布,例如10.2[.]4.510[.]2.3.5问题在这里没有去牙的模式,所以我需要为它编写正则表达式。

Below regex is working for detecting such patterns下面的正则表达式正在用于检测此类模式

(\d.*)([[].][\d+])([.\d.+]{0,3}){0,3}

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM