aboul3la / Sublist3r

Fast subdomains enumeration tool for penetration testers
GNU General Public License v2.0
9.73k stars 2.1k forks source link

sublist3r.py:614: DeprecationWarning: #256

Open Mr-Gag opened 4 years ago

Mr-Gag commented 4 years ago

sublist3r.py:614: DeprecationWarning: please use dns.resolver.Resolver.resolve() instead ip = Resolver.query(host, 'A')[0].to_text()

xabix commented 4 years ago

I have the same issue. Any idea? or update planned to fix this?

aldisaw commented 3 years ago

me too, any update ?

Hell-yeahhz commented 3 years ago

same here... Has anyone fixed it?

ashish99039 commented 3 years ago

same here...anyone found the solution yet?

ashish99039 commented 3 years ago

I have python 3+ but still getting the error. I am new here so if I am missing out on something, do let me know

On Sat, 23 Jan 2021 at 06:26, RoninNakomoto notifications@github.com wrote:

I wrote a fix for this and submitted a pull request for it just now. It is under:

292 https://github.com/aboul3la/Sublist3r/pull/292

— You are receiving this because you commented. Reply to this email directly, view it on GitHub https://github.com/aboul3la/Sublist3r/issues/256#issuecomment-765804629, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOQDERRDF557YLQBXOUPV3S3INE5ANCNFSM4QLFZTRQ .

RoninNakomoto commented 3 years ago

I will resubmit the fix specific to deprecated warning. I missed one additional deprecated statement.

ashish99039 commented 3 years ago

Okay! Thanks a lot. Will be waiting

On Sat, 23 Jan, 2021, 12:46 pm RoninNakomoto, notifications@github.com wrote:

I will resubmit the fix specific to deprecated warning. I missed one additional deprecated statement.

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/aboul3la/Sublist3r/issues/256#issuecomment-765881556, or unsubscribe https://github.com/notifications/unsubscribe-auth/AMOQDEWT52HSGG4IJN2GCILS3JZUNANCNFSM4QLFZTRQ .

diegorobalino16 commented 3 years ago

Solve this problem. edit this file on the line:613 (ip = Resolver.query(host, 'A')[0].to_text()) /usr/lib/python3/dist-packages/sublist3r.py put this line ip = Resolver.resolve(host, 'A')[0].to_text()
Save and Solve

RoninNakomoto commented 3 years ago

@ashish99039 @diegorobalino16 check sublist3r2 https://github.com/RoninNakomoto/Sublist3r2

it works on python3, is does much faster bruteforcing. it is based on sublist3r.

ashish99039 commented 3 years ago

@ashish99039 @diegorobalino16 check sublist3r2 https://github.com/RoninNakomoto/Sublist3r2

it works on python3, is does much faster bruteforcing. it is based on sublist3r.

Thanks so much. Will definitely check that

detoober commented 3 years ago

@ashish99039 had same issue, edited the line mentioned in the error using nano editor and it worked fine after that. Alternatively you can try sublit3r2 also.

sudo nano sublist3r.py
change the line as below lease use dns.resolver.Resolver.resolve() instead ip = Resolver.query(host, 'A')[0].to_text() save and you are good to go