punk-security / dnsReaper

dnsReaper - subdomain takeover tool for attackers, bug bounty hunters and the blue team!
GNU Affero General Public License v3.0
1.93k stars 150 forks source link

AttributeError: 'NoneType' object has no attribute 'pack' #118

Closed gearcapitan closed 1 year ago

gearcapitan commented 1 year ago

with python 2

image

whit python 3

image
danieloateslee commented 1 year ago

@gearcapitan the screen shot are both the same for python2 and python3 ... can you please try the following

python3 main.py single --domain {{domain name}}

It shouldn't work in python2 as it was designed for python3 only.

By default "python" in kali will go to "python2" ... can you also show us the version of python you are using by running the following:

python --version python3 --version

gearcapitan commented 1 year ago

this is the results

image
noopec commented 1 year ago

Try running python3 as mentioned by Daniel in the post above, your screenshot shows python2. Our tool only supports python3. Try running

python3 main.py single --domain {{domain name}}

gearcapitan commented 1 year ago
image
SimonGurney commented 1 year ago

Hmmm.

My thought is that a thread in our pool is not being terminated, but I don't understand why.

To get to the results but, which you are, all threaded tasks should have completed.

Dask had a kind of similar error and added some explicit pool teardown.

https://github.com/dask/dask/issues/5806

Can you share some env info?

You are using python3.10. It would be good to know the full version number.

Also, how many cpus do you have and is it x86 or arm?

SimonGurney commented 1 year ago

https://stackoverflow.com/questions/70515134/graceful-cleanup-for-multiprocess-pool-python suggests we can explicitly close the pool after the map. We'll test this and ask you to pull that branch if that's ok @gearcapitan?

SimonGurney commented 1 year ago

Ok I've done that, can you switch to the fix-close-pool branch and try your scan again?

git pull
git checkout fix-close-pool

@gearcapitan

SimonGurney commented 1 year ago

@gearcapitan are you ok to test?