Skip to content

Commit 6076cb1

Browse files
committed
chg: remove trailing dot from dns record to make it a valid hostname misp attribute
1 parent ed03822 commit 6076cb1

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

misp_modules/modules/expansion/reversedns.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -69,7 +69,7 @@ def handler(q=False):
6969
misperrors["error"] = "DNS resolving error"
7070
return misperrors
7171

72-
r = {"results": [{"types": mispattributes["output"], "values": [str(answer[0])]}]}
72+
r = {"results": [{"types": mispattributes["output"], "values": [str(answer[0]).rstrip(".")]}]}
7373
return r
7474

7575

0 commit comments

Comments
 (0)