SpiderFoot automates OSINT for threat intelligence and mapping your attack surface.
Python attacksurfacecticybersecurityfootprintinghackinginformation-gatheringinformation-securityinfosecintelligence-gatheringosintosint-frameworkosint-reconnaissanceosint-toolpentestingpythonreconsecurity-toolsthreat-intelligencethreatintel
Fixed indentation.
smicallef903a0fc3fb06
diff --git a/sfscan.py b/sfscan.pyindex e55c24d8..8fcd1aa6 100644--- a/sfscan.py+++ b/sfscan.py@@ -137,27 +137,27 @@ class SpiderFootScanner(threading.Thread):# Override the default socket and getaddrinfo calls with the# SOCKS ones. Just ensure we don't also try and SOCKS-proxy- # connectivity to the TOR control port.- def _create_connection(address, timeout=None, source_address=None):- if socksAddr not in address:- sock = socks.socksocket()- sock.setproxy(socks.PROXY_TYPE_SOCKS5, socksAddr, socksPort)- sock.connect(address)- return sock- else:- sock = socket.socket- sock.connect(address)- return sock+ # connectivity to the TOR control port.+ def _create_connection(address, timeout=None, source_address=None):+ if socksAddr not in address:+ sock = socks.socksocket()+ sock.setproxy(socks.PROXY_TYPE_SOCKS5, socksAddr, socksPort)+ sock.connect(address)+ return sock+ else:+ sock = socket.socket+ sock.connect(address)+ return socksocket.socket = socks.socksocketsocket.create_connection = _create_connection#socket.getaddrinfo = socks.getaddrinfoself.ts.sf.updateSocket(socket)- else:- # BUG: If the user had a SOCKS proxy set- # and then decided to unset it, the original socket class- # is not reverted to its default state - we still have- # the SOCKS version of socket.+ else:+ # BUG: If the user had a SOCKS proxy set+ # and then decided to unset it, the original socket class+ # is not reverted to its default state - we still have+ # the SOCKS version of socket.socket.socket = socket.savedsocketsocket.create_connection = socket.savedcreate_connection#socket.getaddrinfo = socket.savedgetaddrinfo