spiderfoot icon indicating copy to clipboard operation
spiderfoot copied to clipboard

Error in creating a json output file

Open frapava98 opened this issue 3 years ago • 5 comments

Sometimes, if I try to open the JSON output file, it generates this error: Extra data: line 2 column 1 (char 3). The problem is that it closes the square brackets before printing the results: It also happens that the program closes the square brackets in the middle of the results: Extra data: line 63 column 1 (char 8218)

To generate the file, I make a redirect using > . I anyway noticed that this error happens also without the redirect.

I am using Python 3.8.0 and the git master version of SpiderFoot.

frapava98 avatar Dec 06 '21 11:12 frapava98

[] {"generated": 1639345808, "type": "Internet Name", "data": "xxx.it", "module": "SpiderFoot UI", "source": "xxxx.it"}, {"generated": 1639345808, "type": "Domain Name", "data": "xxx.it", "module": "SpiderFoot UI", "source": "xxx.it"}, {"generated": 1639345809, "type": "Username", "data": "xxx", "module": "sfp_accounts", "source": "xxx.it"}

SimoneCagol avatar Dec 13 '21 08:12 SimoneCagol

It seems to be solved adding the -q option

frapava98 avatar Dec 13 '21 09:12 frapava98

Could you provide the exact command line you used (remove the scan target of course)?

smicallef avatar Jan 31 '22 07:01 smicallef

Could you provide the exact command line you used (remove the scan target of course)?

python3 {spiderfoot_path} -m sfp_abusech,sfp_alienvault,sfp_alienvaultiprep,sfp_greensnow,sfp_badipscom,sfp_blocklistde,sfp_botscout.py,sfp_cinsscore,sfp_cleantalk,sfp_cybercrimetracker,sfp_isc,sfp_nothink,sfp_fortinet,sfp_talosintel,sfp_threatcrowd,sfp_torexits,sfp_totalhash,sfp_virustotal,sfp_sorbs -s {ip_address} -o json > {output_path}/blacklist_ip_results.json

or

python3 {spiderfoot_path} -m sfp_accounts -s {target_domain} -o json > {output_path}/social_results.json

frapava98 avatar Jan 31 '22 13:01 frapava98

Looks like quite an old issue here, but just wanted to report that I experience this periodically as well. Doesn't happen that often. I run spiderfoot maybe 100x per week (through some other automations) and may experience this issue 2-3 times a month.

altjx avatar Nov 28 '22 21:11 altjx