aboul3la / Sublist3r

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

create setup.py #129

Open blshkv opened 6 years ago

blshkv commented 6 years ago

Please create a setup.py so the tool can be installed properly.

blshkv commented 6 years ago

there are few data (.txt ) files which you might have a problem with, see the following bug report for your references: https://github.com/mschwager/fierce/issues/25

ps. I have tried to install it properly, but the tool fails to run:

/usr/bin/sublist3r
/usr/lib64
/usr/lib64/python2.7
/usr/lib64/python2.7/site-packages
/usr/lib64/python2.7/site-packages/sublist3r
/usr/lib64/python2.7/site-packages/sublist3r/subbrute
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/__init__.py
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/__init__.pyc
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/__init__.pyo
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/names.txt
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/resolvers.txt
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/subbrute.py
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/subbrute.pyc
/usr/lib64/python2.7/site-packages/sublist3r/subbrute/subbrute.pyo
/usr/lib64/python3.5
/usr/lib64/python3.5/site-packages
/usr/lib64/python3.5/site-packages/sublist3r
/usr/lib64/python3.5/site-packages/sublist3r/subbrute
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__init__.py
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/__init__.cpython-35.opt-1.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/__init__.cpython-35.opt-2.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/__init__.cpython-35.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/subbrute.cpython-35.opt-1.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/subbrute.cpython-35.opt-2.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/__pycache__/subbrute.cpython-35.pyc
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/names.txt
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/resolvers.txt
/usr/lib64/python3.5/site-packages/sublist3r/subbrute/subbrute.py

the error:

sublist3r 
Traceback (most recent call last):
  File "/usr/bin/sublist3r", line 21, in <module>
    from subbrute import subbrute
ImportError: No module named 'subbrute'

you will need to export it as following:

from sublist3r.subbrute import subbrute
ghost commented 6 years ago

Your solution only works if your active interpreter is set to version 3. If not, you will have to either disable version 2 capability or run it as a full command (i.e. python3 /usr/bin/sublist3r)

blshkv commented 6 years ago

true, because an another empty __init__.py file must be placed under sublist3r folder.

blshkv commented 3 years ago

https://github.com/pentoo/pentoo-overlay/issues/596