dnsdumpster icon indicating copy to clipboard operation
dnsdumpster copied to clipboard

TypeError: cannot pickle '_thread.lock' object

Open kimthostrup opened this issue 4 years ago • 4 comments

Hi, the tool throughs this error at me.

Pull from github, install the requirements

----snip---- python3 dnsdumpster.py -d amazon.com Starting dns dump against amazon.com Searching using engine DNSdumpster Searching using engine Netcraft Searching using engine Virustotal Searching using engine ThreatCrowd Searching using engine SSL Certificates Traceback (most recent call last): File "/Users/kthostrup/Downloads/dnsdumpster/dnsdumpster.py", line 841, in subs = main(args.d) File "/Users/kthostrup/Downloads/dnsdumpster/dnsdumpster.py", line 793, in main enum.start() File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/process.py", line 121, in start self._popen = self._Popen(self) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 224, in _Popen return _default_context.get_context().Process._Popen(process_obj) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/context.py", line 284, in _Popen return Popen(process_obj) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 32, in init super().init(process_obj) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_fork.py", line 19, in init self._launch(process_obj) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/popen_spawn_posix.py", line 47, in _launch reduction.dump(process_obj, fp) File "/usr/local/Cellar/[email protected]/3.9.1_8/Frameworks/Python.framework/Versions/3.9/lib/python3.9/multiprocessing/reduction.py", line 60, in dump ForkingPickler(file, protocol).dump(obj) TypeError: cannot pickle '_thread.lock' object ----snip----

Thanks in advance. /Kim

kimthostrup avatar Mar 03 '21 10:03 kimthostrup

I will check on this I see, could be your python3 version.

nmmapper avatar Mar 22 '21 04:03 nmmapper

Replacing 'threading.Lock' with 'multiprocessing.Lock' in dnsdumpster.py solves the problem.

abderra7mane avatar May 31 '21 11:05 abderra7mane

I will look into that solution, though if you can open a pull request

nmmapper avatar May 31 '21 12:05 nmmapper

Replacing 'threading.Lock' with 'multiprocessing.Lock' in dnsdumpster.py solves the problem.

Seems to work. Added a pull request: https://github.com/nmmapper/dnsdumpster/pull/8

t0sc4n avatar Aug 30 '22 08:08 t0sc4n