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

'NoneType' object has no attribute 'startswith' #80

Closed Opensitoo closed 1 year ago

Opensitoo commented 1 year ago

Al ejecutar la herramienta me da este error y no encuentro la manera de repararlo

Testing with 55 signatures Exception in thread Thread-34: Traceback (most recent call last): File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\threading.py", line 973, in _bootstrap_inner self.run() File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\win32util.py", line 48, in run self.info.domain = _config_domain(interface.DNSDomain) File "C:\Users\hp\AppData\Local\Programs\Python\Python39\lib\site-packages\dns\win32util.py", line 26, in _config_domain if domain.startswith('.'): AttributeError: 'NoneType' object has no attribute 'startswith'

SimonGurney commented 1 year ago

Hmmm, I've not seen this issue before.

Could you provide some more detail? How are you running the tool, with a file?

vmesel commented 1 year ago

Probably he is not setting the domain, @SimonGurney

SimonGurney commented 1 year ago

This was my thought but the --domain arg is mandatory when using the single provider. Maybe the approach we use to enforce that doesn't work on py3.9?

Do you see the same behaviour?

Opensitoo commented 1 year ago

Hmmm, I've not seen this issue before.

Could you provide some more detail? How are you running the tool, with a file?

im execute this with >python main.py single --domain stardock.com

https://imgur.com/a/nRvJWlx (this is a cap of the terminal)

SimonGurney commented 1 year ago

Wow, that's really broken! Thanks for sharing.

We dev this with python 3.10 so must have used something too new. We'll get this fixed. We have an issue being worked to add testing around the providers which will allow us to test all python versions.

For now, put the domain in a file and use the file provider instead.

Opensitoo commented 1 year ago

okey thanks whatever i try to change the python to 3.10

SimonGurney commented 1 year ago

@imnotbrandon maybe I broke this when I fixed the early domain lookup bug, can you take a look?

Opensitoo commented 1 year ago

I downloaded python 3.10 and tried the file but it still gives me an error

this is a diferente error

https://imgur.com/a/0SU2JsQ

imnotbrandon commented 1 year ago

Hey there, I can't seem to reproduce this issue in a clean environment.

The python 3.9 issue looks like it's having trouble figuring out your machine's DNS servers.

I'm not sure about the python 3.10 issue.

This is what I did:

git clone git@github.com:punk-security/dnsReaper.git
pip install virtualenv
python -m venv venv
.\venv\Scripts\activate.bat
python main.py single --domain stardock.com

image

I can only really conclude that there's an issue with your machine. Perhaps try the docker image?

Engr-Asad-Hussain commented 1 year ago

Absolutely! working perfectly I have also tested on local machine using python main.py. It takes 44 seconds to complete without any errors.

Opensitoo commented 1 year ago

I don't know, it still doesn't leave me well thanks for the help anyway