lgandx / Responder

Responder is a LLMNR, NBT-NS and MDNS poisoner, with built-in HTTP/SMB/MSSQL/FTP/LDAP rogue authentication server supporting NTLMv1/NTLMv2/LMv2, Extended Security NTLMSSP and Basic HTTP authentication.
GNU General Public License v3.0
5.39k stars 768 forks source link

Upgrading `collections` import #250

Closed ShutdownRepo closed 10 months ago

ShutdownRepo commented 1 year ago

This pull request aims at keeping the same import for non-deprecated python versions (up to 3.6) and improve the import for later versions.

/Responder/tools/SMBFinger/odict.py:6: DeprecationWarning: Using or importing the ABCs from 'collections' instead of from 'collections.abc' is deprecated since Python 3.3, and in 3.10 it will stop working
  from collections import MutableMapping as DictMixin

See https://stackoverflow.com/questions/70870041/cannot-import-name-mutablemapping-from-collections for reference

lgandx commented 10 months ago

Heya! Good one, thanks