Skip to content

Commit b9896ed

Browse files
committed
Fixed a remapping problem of CIDR addresses in parse_ioc
1 parent 6f2af9c commit b9896ed

File tree

1 file changed

+3
-1
lines changed

1 file changed

+3
-1
lines changed

shuffle-tools/1.2.0/src/app.py

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2730,7 +2730,9 @@ def parse_ioc(self, input_string, input_type="all"):
27302730

27312731
# Reformatting IP
27322732
for item in newarray:
2733-
if "ip" in item["data_type"]:
2733+
if "cidr" in item["data_type"]:
2734+
pass
2735+
elif "ip" in item["data_type"]:
27342736
item["data_type"] = "ip"
27352737
try:
27362738
item["is_private_ip"] = ipaddress.ip_address(item["data"]).is_private

0 commit comments

Comments
 (0)