smicallef / spiderfoot

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

CLI filters not working #1741

Open 10GeekJames opened 1 year ago

10GeekJames commented 1 year ago

I am evaluating the CLI and finding it ignores the type filters. Dropped back to using the Web UI on a fresh pull from git and it seems to also ignore type filters. Anyone have any ideas what might be going on? Do these work for others? -q -x -f -s domain.com -t IP_ADDRESS,INTERNET_NAME,EMAILADDR for example works well if calling sf.py, but when issued against the CLI scans everything.

saeeddhqan commented 1 year ago

Having the same issue with Web UI. type filters don't work.

saeeddhqan commented 1 year ago

for web UI, it seems the problem is because of the following loop in startscan function in sfwebui.py file. So I removed it, and it appears that it works fine.

            while len(newmodcpy) > 0:
                for etype in sf.eventsToModules(newmodcpy):
                    xmods = sf.modulesProducing([etype])
                    for mod in xmods:
                        if mod not in modlist:
                            modlist.append(mod)
                            newmods.append(mod)
                newmodcpy = deepcopy(newmods)
                newmods = list()