smicallef / spiderfoot

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
http://www.spiderfoot.net
MIT License
12.78k stars 2.23k forks source link

sfp_ahmia fullnames option is not respecting it's state #921

Closed sucramx closed 4 years ago

sucramx commented 4 years ago

By default the module sfp_ahmia searches only fullnames. Example: "John Smith". I would like to be able to search sfp_ahmia with only a first name or last name. Example: "John".

Spiderfoot provides a option to to this by setting the fullnames boolean to false for the module sfp_ahmia. The issue is when I change the option to false, spiderfoot does not respect the state of that option and it remains true inside the script.

Thus when sending sfp_ahmia a Human_Name with only a first name or last name, it yields no results due to the following piece of code:

if not self.opts['fullnames'] and eventName == 'HUMAN_NAME': return None

smicallef commented 4 years ago

Not sure I follow.. that logic you point out is correct: if you are not wanting to search for human names and the event the module is processing is a human name, then do nothing.

What actually /might/ be happening is that searching for a name without a space in it results in SpiderFoot not treating your target as a name at all, since SpiderFoot expects a quoted name to contain a space, and instead getting treated as a username, which no modules search the dark web for (would be too many false positives).