mandatoryprogrammer / mandatoryprogrammer/TrustTrees
Import errors
Nobody has claimed this yet.
- Dominant language
- Python
- Stars
- 406
- Forks
- 71
- PR merge metrics
- No merged PRs in 30d
Description
I've been trying to run the tool for a while now, and it seems I can't manage to run it effectively.
I managed to install the thing with `git clone` and `pip install`.

But I still can't find a way to run the tool.
```
──(kali㉿kali)-[/bin/TrustTrees]
└─$ trusttrees -h
Traceback (most recent call last):
File "/usr/local/bin/trusttrees", line 5, in
from trusttrees.__main__ import main
File "/usr/local/lib/python3.11/dist-packages/trusttrees/__main__.py", line 3, in
from .dns import enumerate_nameservers
File "/usr/local/lib/python3.11/dist-packages/trusttrees/dns.py", line 14, in
from .utils import is_authoritative
File "/usr/local/lib/python3.11/dist-packages/trusttrees/utils.py", line 9, in
from .registar_checking import is_domain_available
File "/usr/local/lib/python3.11/dist-packages/trusttrees/registar_checking.py", line 5, in
import boto3
File "/usr/local/lib/python3.11/dist-packages/boto3/__init__.py", line 16, in
from boto3.session import Session
File "/usr/local/lib/python3.11/dist-packages/boto3/session.py", line 17, in
import botocore.session
File "/usr/local/lib/python3.11/dist-packages/botocore/session.py", line 29, in
import botocore.configloader
File "/usr/local/lib/python3.11/dist-packages/botocore/configloader.py", line 19, in
from botocore.compat import six
File "/usr/local/lib/python3.11/dist-packages/botocore/compat.py", line 25, in
from botocore.exceptions import MD5UnavailableError
File "/usr/local/lib/python3.11/dist-packages/botocore/exceptions.py", line 15, in
from botocore.vendored import requests
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/__init__.py", line 58, in
from . import utils
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/utils.py", line 26, in
from .compat import parse_http_list as _parse_list_header
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/compat.py", line 7, in
from .packages import chardet
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/packages/__init__.py", line 3, in
from . import urllib3
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/packages/urllib3/__init__.py", line 10, in
from .connectionpool import (
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/packages/urllib3/connectionpool.py", line 38, in
from .response import HTTPResponse
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/packages/urllib3/response.py", line 9, in
from ._collections import HTTPHeaderDict
File "/usr/local/lib/python3.11/dist-packages/botocore/vendored/requests/packages/urllib3/_collections.py", line 1, in
from collections import Mapping, MutableMapping
ImportError: cannot import name 'Mapping' from 'collections' (/usr/lib/python3.11/collections/__init__.py)
```
I do have Python3 installed.
```
┌──(kali㉿kali)-[/bin/TrustTrees]
└─$ python --version
Python 3.11.2
```
```
┌──(kali㉿kali)-[/bin/TrustTrees]
└─$ trusttrees.py --target example.com
trusttrees.py: command not found
```
```
┌──(kali㉿kali)-[/bin/TrustTrees]
└─$ ./trusttrees.py --target example.com
zsh: no such file or directory: ./trusttrees.py
```
Am I using the right command to run the tool ?
So far, I've tried as guest and as root : `trusttrees.py --target example.com`, `trusttrees --target example.com` and `./trusttrees.py --target example.com` but none is working...
Contributor guide
No contributing guide indexed for this repository
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
Research direction
Start with the import chain through trusttrees/__main__.py, dns.py, utils.py, and registar_checking.py, then reproduce the failure with `trusttrees -h` under Python 3.11. Check the dependency compatibility exposed by the traceback and verify that the installed command can reach its help output and accept the documented target invocation.
Written by the indexing model from the issue text.
Assessment
- Tech stack
- python
- Domain
- cli, networking
- Issue type
- Bug
- Difficulty
- 3/5
- Estimated time
- 1-2 days
- Activity status
- Stale
- Clarity
- Needs clarification
- Newbie friendliness
- 35/100