zeropwn/spyse.py

pip installation fails to resolve module

Closed this issue · 1 comments

$ pip3 install spyse.py

Collecting spyse.py
  Downloading https://files.pythonhosted.org/packages/9f/96/4de4d5a0fe7a0ee7c4790847eaf713b56ec73c60829a41719af80a486477/spyse.py-0.13.3.7-py3-none-any.whl
Requirement already satisfied: requests in /usr/local/lib/python3.7/site-packages (from spyse.py) (2.21.0)
Requirement already satisfied: chardet<3.1.0,>=3.0.2 in /usr/local/lib/python3.7/site-packages (from requests->spyse.py) (3.0.4)
Requirement already satisfied: idna<2.9,>=2.5 in /usr/local/lib/python3.7/site-packages (from requests->spyse.py) (2.8)
Requirement already satisfied: urllib3<1.25,>=1.21.1 in /usr/local/lib/python3.7/site-packages (from requests->spyse.py) (1.24.3)
Requirement already satisfied: certifi>=2017.4.17 in /usr/local/lib/python3.7/site-packages (from requests->spyse.py) (2019.3.9)
Installing collected packages: spyse.py
Successfully installed spyse.py-0.13.3.7

$ spyse --help
usage: spyse [-h] [-target TARGET] [-param PARAM] [-page PAGE]
             [-apikey APIKEY] [--raw] [--dns-ptr] [--dns-soa] [--dns-mx]
             [--dns-aaaa] [--dns-ns] [--dns-a] [--dns-txt] [--dns-all]
             [--domains-with-same-ns] [--domains-using-as-mx]
             [--domains-on-ip] [--domains-with-same-mx]
             [--domains-using-as-ns] [--download-dns-aaaa]
             [--download-dns-soa] [--download-dns-ns] [--download-dns-ptr]
             [--download-dns-mx] [--download-dns-a] [--download-dns-txt]
             [--download-dns-all] [--ip-port-lookup]
             [--ip-port-lookup-aggregate] [--ssl-certificates] [--subdomains]

Client for Spyse.com

optional arguments:
  -h, --help            show this help message and exit
  -target TARGET        target
  -param PARAM          parameter to use (ip, domain, cidr, url, hash)
  -page PAGE            page
  -apikey APIKEY        set the api key
  --raw                 show raw json
  --dns-ptr             show dns ptr records
  --dns-soa             show dns soa records
  --dns-mx              show dns mx records
  --dns-aaaa            show dns aaaa records
  --dns-ns              show dns ns records
  --dns-a               show dns a records
  --dns-txt             show dns txt records
  --dns-all             show all dns records
  --domains-with-same-ns
                        show domains with same ns
  --domains-using-as-mx
                        show domains using as mx
  --domains-on-ip       show domains on ip
  --domains-with-same-mx
                        show domains with same mx
  --domains-using-as-ns
                        show domains using as ns
  --download-dns-aaaa   download dns aaaa records
  --download-dns-soa    download dns soa records
  --download-dns-ns     download dns ns records
  --download-dns-ptr    download dns ptr records
  --download-dns-mx     download dns mx records
  --download-dns-a      download dns a records
  --download-dns-txt    download dns txt records
  --download-dns-all    download all dns records
  --ip-port-lookup      show ip port lookup
  --ip-port-lookup-aggregate
                        show ip port lookup aggregate
  --ssl-certificates    show ssl certificates associated with a target
  --subdomains          show subdomains

Usage: spyse -target <TARGET> -param <PARAM> --subdomains
$ /usr/local/bin/spyse

          ██████  ██▓███ ▓██   ██▓  ██████ ▓█████
        ▒██    ▒ ▓██░  ██▒▒██  ██▒▒██    ▒ ▓█   ▀
        ░ ▓██▄   ▓██░ ██▓▒ ▒██ ██░░ ▓██▄   ▒███
          ▒   ██▒▒██▄█▓▒ ▒ ░ ▐██▓░  ▒   ██▒▒▓█  ▄
        ▒██████▒▒▒██▒ ░  ░ ░ ██▒▓░▒██████▒▒░▒████▒
        ▒ ▒▓▒ ▒ ░▒▓▒░ ░  ░  ██▒▒▒ ▒ ▒▓▒ ▒ ░░░ ▒░ ░
        ░ ░▒  ░ ░░▒ ░     ▓██ ░▒░ ░ ░▒  ░ ░ ░ ░  ░
        ░  ░  ░  ░░       ▒ ▒ ░░  ░  ░  ░     ░
              ░           ░ ░           ░     ░  ░
                          ░ ░           by @zer0pwn

Traceback (most recent call last):
  File "/usr/local/bin/spyse", line 63, in <module>
    s = spyse()
TypeError: 'module' object is not callable

Thanks for bringing this to my attention.

Apparently when updating from version 0.13.2 an __init__.py got lost. I've re-added it (6f06357) and it should work smoothly now.

Just make sure you have a clear cache before downloading from pip again :)