Skip to content

SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.

Bug fixes.

smicallef576cb44fb228
diff --git a/modules/sfp_bitcoin.py b/modules/sfp_bitcoin.py
index 6afe1d65..726ee547 100644
--- a/modules/sfp_bitcoin.py
+++ b/modules/sfp_bitcoin.py
@@ -12,7 +12,7 @@
# -------------------------------------------------------------------------------
import re
-
+import codecs
from hashlib import sha256
from sflib import SpiderFoot, SpiderFootPlugin, SpiderFootEvent
@@ -43,7 +43,7 @@ class sfp_bitcoin(SpiderFootPlugin):
def to_bytes(self, n, length):
h = '%x' % n
- s = ('0'*(len(h) % 2) + h).zfill(length*2).decode('hex')
+ s = codecs.decode(('0'*(len(h) % 2) + h).zfill(length*2), "hex")
return s
def decode_base58(self, bc, length):
diff --git a/modules/sfp_openstreetmap.py b/modules/sfp_openstreetmap.py
index 8e0f9e2a..da53d01d 100644
--- a/modules/sfp_openstreetmap.py
+++ b/modules/sfp_openstreetmap.py
@@ -47,7 +47,7 @@ class sfp_openstreetmap(SpiderFootPlugin):
# https://operations.osmfoundation.org/policies/nominatim/
def query(self, qry):
params = {
- 'q': qry.encode('raw_unicode_escape').decode("ascii"),
+ 'q': qry.encode('raw_unicode_escape').decode("ascii", errors='replace'),
'format': 'json',
'polygon': '0',
'addressdetails': '0'