infosec-au/altdns

No altdns.py

Opened this issue · 6 comments

There is no altdns.py file. any solution for this

You normally install it via "pip install py-altdns", so you don't need an altdns.py file directly, if you want to install it through github run "python setup.py install".

Usage:

# altdns -i subdomains.txt -o data_output -w words.txt -r -s results_output.txt

Traceback (most recent call last):
File "/Library/Frameworks/Python.framework/Versions/3.8/bin/altdns", line 5, in
from altdns.main import main
File "/Library/Frameworks/Python.framework/Versions/3.8/lib/python3.8/site-packages/altdns/main.py", line 10, in
from Queue import Queue as Queue
ModuleNotFoundError: No module named 'Queue'

It's python2.7. How did you install it?

It works perfectly 💯

import sys
is_py2 = sys.version[0] == '2'
if is_py2:
    import Queue as queue
else:
    import queue as queue

Python 3

change line 10 from queue import Queue as queue and line 248 q = queue() in main.py file

It works perfectly 💯

import sys
is_py2 = sys.version[0] == '2'
if is_py2:
    import Queue as queue
else:
    import queue as queue

Python 3

change line 10 from queue import Queue as queue and line 248 q = queue() in main.py file

please explain what to change and what to replace it with.