Skip to content

Commit

Permalink
sfp_arin: Report HUMAN_NAME directly rather than relying on sfp_names.
Browse files Browse the repository at this point in the history
  • Loading branch information
smicallef committed Dec 15, 2022
1 parent 0195678 commit 4d8f551
Showing 1 changed file with 2 additions and 6 deletions.
8 changes: 2 additions & 6 deletions modules/sfp_arin.py
Original file line number Diff line number Diff line change
Expand Up @@ -71,7 +71,7 @@ def watchedEvents(self):
# This is to support the end user in selecting modules based on events
# produced.
def producedEvents(self):
return ["RAW_RIR_DATA"]
return ["RAW_RIR_DATA", "HUMAN_NAME"]

# Fetch content and notify of the raw data
def fetchRir(self, url):
Expand Down Expand Up @@ -153,11 +153,7 @@ def handleEvent(self, event):
sname = name.split(", ", 1)
name = sname[1] + " " + sname[0]

# A bit of a hack. The reason we do this is because
# the names are separated in the content and sfp_names
# won't recognise it. So we submit this and see if it
# really is considered a name.
evt = SpiderFootEvent("RAW_RIR_DATA", "Possible full name: " + name,
evt = SpiderFootEvent("HUMAN_NAME", name,
self.__name__, self.currentEventSrc)
self.notifyListeners(evt)

Expand Down

0 comments on commit 4d8f551

Please sign in to comment.