anubis-netsec


Nameanubis-netsec JSON
Version 1.2.0 PyPI version JSON
download
home_pagehttps://github.com/jonluca/anubis
SummaryModern and efficient subdomain enumeration and information gathering
upload_time2024-03-21 18:28:42
maintainerNone
docs_urlNone
authorJonLuca DeCaro
requires_python>=3
licenseMIT
keywords cli
VCS
bugtrack_url
requirements setuptools python_nmap shodan docopt requests censys dnspython
Travis-CI
coveralls test coverage No coveralls.
            # Anubis

[![Build Status](https://travis-ci.org/jonluca/Anubis.svg?branch=master)](https://travis-ci.org/jonluca/Anubis) ![Coverage](https://github.com/jonluca/Anubis/blob/master/coverage.svg) [![GitHub issues](https://img.shields.io/github/issues/jonluca/Anubis.svg)](https://github.com/jonluca/Anubis/issues) [![GitHub license](https://img.shields.io/github/license/jonluca/Anubis.svg)](https://github.com/jonluca/Anubis/blob/master/LICENSE)

```
        d8888                   888      d8b
       d88888                   888      Y8P
      d88P888                   888
     d88P 888 88888b.  888  888 88888b.  888 .d8888b
    d88P  888 888 "88b 888  888 888 "88b 888 88K
   d88P   888 888  888 888  888 888  888 888 "Y8888b.
  d8888888888 888  888 Y88b 888 888 d88P 888      X88
 d88P     888 888  888  "Y88888 88888P"  888  88888P'
```

Anubis is a subdomain enumeration and information gathering tool. Anubis collates data from a variety of sources,
including HackerTarget, DNSDumpster, x509 certs, VirusTotal, Google, Pkey, Shodan, Spyse, and NetCraft.
Anubis also has a sister project, [AnubisDB](https://github.com/jonluca/Anubis-DB), which serves as a centralized
repository of subdomains.

[Original Medium article release](https://medium.com/@jonluca/introducing-anubis-a-new-subdomain-enumerator-and-information-gathering-tool-d25b39ad98f2)

## Getting Started

### Prerequisites

* Nmap (if wanting to run port scans and certain certificate scans)

If you are running Linux, the following are also required:

`sudo apt-get install python3-pip python-dev libssl-dev libffi-dev`

### Installing

Note: Python 3 is required

`pip3 install anubis-netsec`

### Install From Source

Please note Anubis is still in beta.

```
git clone https://github.com/jonluca/Anubis.git
cd Anubis
pip3 install  -r requirements.txt
pip3 install .
```

## Usage

    Usage:
      anubis (-t TARGET | -f FILE) [-o FILENAME]  [-abinoprsSv] [-w SCAN] [-q NUM]
      anubis -h
      anubis (--version | -V)
      
    Options:
      -h --help                       show this help message and exit
      -t --target                     set target (comma separated, no spaces, if multiple)
      -f --file                       set target (reads from file, one domain per line)
      -n --with-nmap                  perform an nmap service/script scan
      -o --output                     save to filename
      -i --additional-info            show additional information about the host from Shodan (requires API key)
      -p --ip                         outputs the resolved IPs for each subdomain, and a full list of unique ips
      -a --dont-send-to-anubis-db     don't send results to Anubis-DB
      -r --recursive                  recursively search over all subdomains
      -s --ssl                        run an ssl scan and output cipher + chain info
      -S --silent                     only out put subdomains, one per line
      -w --overwrite-nmap-scan SCAN   overwrite default nmap scan (default -nPn -sV -sC)
      -v --verbose                    print debug info and full request output
      -q --queue-workers NUM          override number of queue workers (default: 10, max: 100)
      -V --version                       show version and exit
    
    Help:
      For help using this tool, please open an issue on the Github repository:
      https://github.com/jonluca/anubis

Note: If you'd like to use the shodan.io API, make sure to prefix the command with `SHODAN_API_KEY=yourkey`

### Basic

#### Common Use Case

`anubis -tip  domain.com -o out.txt`

Set's target to `domain.com`, (`t`) outputs additional information (`i`) like server and ISP or server hosting provider,
then attempts to resolve all URLs (`p`) and outputs list of unique IPs and sends to Anubis-DB (`a`). Finally, writes all
results to out.txt (`o`).

#### Other

```anubis -t reddit.com``` Simplest use of Anubis, just runs subdomain enumeration

```
Searching for subdomains for 151.101.65.140 (reddit.com)

Testing for zone transfers
Searching for Subject Alt Names
Searching HackerTarget
Searching VirusTotal
Searching Pkey.in
Searching NetCraft.com
Searching crt.sh
Searching DNSDumpster
Searching Anubis-DB
Found 193 subdomains
----------------
fj.reddit.com
se.reddit.com
gateway.reddit.com
beta.reddit.com
ww.reddit.com
... (truncated for readability)
Sending to AnubisDB
Subdomain search took 0:00:20.390
```

`anubis -t reddit.com -ip` (equivalent to `anubis -t reddit.com --additional-info --ip`) - resolves IPs and outputs list
of uniques, and provides additional information through https://shodan.io

```
Searching for subdomains for 151.101.65.140
Server Location: San Francisco US - 94107
ISP: Fastly
Found 27 domains
----------------
http://www.np.reddit.com: 151.101.193.140
http://nm.reddit.com: 151.101.193.140
http://ww.reddit.com: 151.101.193.140
http://dg.reddit.com: 151.101.193.140
http://en.reddit.com: 151.101.193.140
http://ads.reddit.com: 151.101.193.140
http://zz.reddit.com: 151.101.193.140
out.reddit.com: 107.23.11.190
origin.reddit.com: 54.172.97.226
http://blog.reddit.com: 151.101.193.140
alb.reddit.com: 52.201.172.48
http://m.reddit.com: 151.101.193.140
http://rr.reddit.com: 151.101.193.140
reddit.com: 151.101.65.140
http://www.reddit.com: 151.101.193.140
mx03.reddit.com: 151.101.193.140
http://fr.reddit.com: 151.101.193.140
rhs.reddit.com: 54.172.97.229
http://np.reddit.com: 151.101.193.140
http://nj.reddit.com: 151.101.193.140
http://re.reddit.com: 151.101.193.140
http://iy.reddit.com: 151.101.193.140
mx02.reddit.com: 151.101.193.140
mailp236.reddit.com: 151.101.193.140
Found 6 unique IPs
52.201.172.48
151.101.193.140
107.23.11.190
151.101.65.140
54.172.97.226
54.172.97.229
Execution took 0:00:04.604
```

### Advanced

```anubis -t reddit.com --with-nmap -o temp.txt -i --overwrite-nmap-scan "-F -T5"```

```
Searching for subdomains for 151.101.65.140 (reddit.com)

Testing for zone transfers
Searching for Subject Alt Names
Searching HackerTarget
Searching VirusTotal
Searching Pkey.in
Searching NetCraft.com
Searching crt.sh
Searching DNSDumpster
Searching Anubis-DB
Searching Shodan.io for additional information
Server Location: San Francisco, US - 94107
ISP  or Hosting Company: Fastly
To run a DNSSEC subdomain enumeration, Anubis must be run as root
Starting Nmap Scan
Host : 151.101.65.140 ()
----------
Protocol: tcp
port: 80	state: open
port: 443	state: open
Found 195 subdomains
----------------
nm.reddit.com
ne.reddit.com
sonics.reddit.com
aj.reddit.com
fo.reddit.com
f5.reddit.com
... (truncated for readability)
Sending to AnubisDB
Subdomain search took 0:00:26.579
```

## Running the tests

Run tests on their own, in native pytest environment

```pytest```

## Built With

* CLI Boilerplate by [Skele-CLI](https://github.com/rdegges/skele-cli)

## Contributing

Please read [CONTRIBUTING.md](https://github.com/jonluca/Anubis/blob/master/CONTRIBUTING.md) for details on our code of
conduct, and the process for submitting pull requests to us.

## Authors

* **JonLuca DeCaro** - *Initial work* - [Anubis](https://github.com/Anubis)

See also the list of [contributors](https://github.com/jonluca/Anubis/contributors) who participated in this project.

## License

This project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details

## Acknowledgments

* [/r/netsec](https://reddit.com/r/netsec)

* [BitQuark for the most common subdomains](https://github.com/bitquark/dnspop/tree/master/results)


            

Raw data

            {
    "_id": null,
    "home_page": "https://github.com/jonluca/anubis",
    "name": "anubis-netsec",
    "maintainer": null,
    "docs_url": null,
    "requires_python": ">=3",
    "maintainer_email": null,
    "keywords": "cli",
    "author": "JonLuca DeCaro",
    "author_email": "jonluca.decaro@gmail.com",
    "download_url": "https://files.pythonhosted.org/packages/1f/7a/4a1793821ce0b7bcbab4c82c45fc0411b3d34ee7a47378b56b53786ce1b0/anubis-netsec-1.2.0.tar.gz",
    "platform": null,
    "description": "# Anubis\n\n[![Build Status](https://travis-ci.org/jonluca/Anubis.svg?branch=master)](https://travis-ci.org/jonluca/Anubis) ![Coverage](https://github.com/jonluca/Anubis/blob/master/coverage.svg) [![GitHub issues](https://img.shields.io/github/issues/jonluca/Anubis.svg)](https://github.com/jonluca/Anubis/issues) [![GitHub license](https://img.shields.io/github/license/jonluca/Anubis.svg)](https://github.com/jonluca/Anubis/blob/master/LICENSE)\n\n```\n        d8888                   888      d8b\n       d88888                   888      Y8P\n      d88P888                   888\n     d88P 888 88888b.  888  888 88888b.  888 .d8888b\n    d88P  888 888 \"88b 888  888 888 \"88b 888 88K\n   d88P   888 888  888 888  888 888  888 888 \"Y8888b.\n  d8888888888 888  888 Y88b 888 888 d88P 888      X88\n d88P     888 888  888  \"Y88888 88888P\"  888  88888P'\n```\n\nAnubis is a subdomain enumeration and information gathering tool. Anubis collates data from a variety of sources,\nincluding HackerTarget, DNSDumpster, x509 certs, VirusTotal, Google, Pkey, Shodan, Spyse, and NetCraft.\nAnubis also has a sister project, [AnubisDB](https://github.com/jonluca/Anubis-DB), which serves as a centralized\nrepository of subdomains.\n\n[Original Medium article release](https://medium.com/@jonluca/introducing-anubis-a-new-subdomain-enumerator-and-information-gathering-tool-d25b39ad98f2)\n\n## Getting Started\n\n### Prerequisites\n\n* Nmap (if wanting to run port scans and certain certificate scans)\n\nIf you are running Linux, the following are also required:\n\n`sudo apt-get install python3-pip python-dev libssl-dev libffi-dev`\n\n### Installing\n\nNote: Python 3 is required\n\n`pip3 install anubis-netsec`\n\n### Install From Source\n\nPlease note Anubis is still in beta.\n\n```\ngit clone https://github.com/jonluca/Anubis.git\ncd Anubis\npip3 install  -r requirements.txt\npip3 install .\n```\n\n## Usage\n\n    Usage:\n      anubis (-t TARGET | -f FILE) [-o FILENAME]  [-abinoprsSv] [-w SCAN] [-q NUM]\n      anubis -h\n      anubis (--version | -V)\n      \n    Options:\n      -h --help                       show this help message and exit\n      -t --target                     set target (comma separated, no spaces, if multiple)\n      -f --file                       set target (reads from file, one domain per line)\n      -n --with-nmap                  perform an nmap service/script scan\n      -o --output                     save to filename\n      -i --additional-info            show additional information about the host from Shodan (requires API key)\n      -p --ip                         outputs the resolved IPs for each subdomain, and a full list of unique ips\n      -a --dont-send-to-anubis-db     don't send results to Anubis-DB\n      -r --recursive                  recursively search over all subdomains\n      -s --ssl                        run an ssl scan and output cipher + chain info\n      -S --silent                     only out put subdomains, one per line\n      -w --overwrite-nmap-scan SCAN   overwrite default nmap scan (default -nPn -sV -sC)\n      -v --verbose                    print debug info and full request output\n      -q --queue-workers NUM          override number of queue workers (default: 10, max: 100)\n      -V --version                       show version and exit\n    \n    Help:\n      For help using this tool, please open an issue on the Github repository:\n      https://github.com/jonluca/anubis\n\nNote: If you'd like to use the shodan.io API, make sure to prefix the command with `SHODAN_API_KEY=yourkey`\n\n### Basic\n\n#### Common Use Case\n\n`anubis -tip  domain.com -o out.txt`\n\nSet's target to `domain.com`, (`t`) outputs additional information (`i`) like server and ISP or server hosting provider,\nthen attempts to resolve all URLs (`p`) and outputs list of unique IPs and sends to Anubis-DB (`a`). Finally, writes all\nresults to out.txt (`o`).\n\n#### Other\n\n```anubis -t reddit.com``` Simplest use of Anubis, just runs subdomain enumeration\n\n```\nSearching for subdomains for 151.101.65.140 (reddit.com)\n\nTesting for zone transfers\nSearching for Subject Alt Names\nSearching HackerTarget\nSearching VirusTotal\nSearching Pkey.in\nSearching NetCraft.com\nSearching crt.sh\nSearching DNSDumpster\nSearching Anubis-DB\nFound 193 subdomains\n----------------\nfj.reddit.com\nse.reddit.com\ngateway.reddit.com\nbeta.reddit.com\nww.reddit.com\n... (truncated for readability)\nSending to AnubisDB\nSubdomain search took 0:00:20.390\n```\n\n`anubis -t reddit.com -ip` (equivalent to `anubis -t reddit.com --additional-info --ip`) - resolves IPs and outputs list\nof uniques, and provides additional information through https://shodan.io\n\n```\nSearching for subdomains for 151.101.65.140\nServer Location: San Francisco US - 94107\nISP: Fastly\nFound 27 domains\n----------------\nhttp://www.np.reddit.com: 151.101.193.140\nhttp://nm.reddit.com: 151.101.193.140\nhttp://ww.reddit.com: 151.101.193.140\nhttp://dg.reddit.com: 151.101.193.140\nhttp://en.reddit.com: 151.101.193.140\nhttp://ads.reddit.com: 151.101.193.140\nhttp://zz.reddit.com: 151.101.193.140\nout.reddit.com: 107.23.11.190\norigin.reddit.com: 54.172.97.226\nhttp://blog.reddit.com: 151.101.193.140\nalb.reddit.com: 52.201.172.48\nhttp://m.reddit.com: 151.101.193.140\nhttp://rr.reddit.com: 151.101.193.140\nreddit.com: 151.101.65.140\nhttp://www.reddit.com: 151.101.193.140\nmx03.reddit.com: 151.101.193.140\nhttp://fr.reddit.com: 151.101.193.140\nrhs.reddit.com: 54.172.97.229\nhttp://np.reddit.com: 151.101.193.140\nhttp://nj.reddit.com: 151.101.193.140\nhttp://re.reddit.com: 151.101.193.140\nhttp://iy.reddit.com: 151.101.193.140\nmx02.reddit.com: 151.101.193.140\nmailp236.reddit.com: 151.101.193.140\nFound 6 unique IPs\n52.201.172.48\n151.101.193.140\n107.23.11.190\n151.101.65.140\n54.172.97.226\n54.172.97.229\nExecution took 0:00:04.604\n```\n\n### Advanced\n\n```anubis -t reddit.com --with-nmap -o temp.txt -i --overwrite-nmap-scan \"-F -T5\"```\n\n```\nSearching for subdomains for 151.101.65.140 (reddit.com)\n\nTesting for zone transfers\nSearching for Subject Alt Names\nSearching HackerTarget\nSearching VirusTotal\nSearching Pkey.in\nSearching NetCraft.com\nSearching crt.sh\nSearching DNSDumpster\nSearching Anubis-DB\nSearching Shodan.io for additional information\nServer Location: San Francisco, US - 94107\nISP  or Hosting Company: Fastly\nTo run a DNSSEC subdomain enumeration, Anubis must be run as root\nStarting Nmap Scan\nHost : 151.101.65.140 ()\n----------\nProtocol: tcp\nport: 80\tstate: open\nport: 443\tstate: open\nFound 195 subdomains\n----------------\nnm.reddit.com\nne.reddit.com\nsonics.reddit.com\naj.reddit.com\nfo.reddit.com\nf5.reddit.com\n... (truncated for readability)\nSending to AnubisDB\nSubdomain search took 0:00:26.579\n```\n\n## Running the tests\n\nRun tests on their own, in native pytest environment\n\n```pytest```\n\n## Built With\n\n* CLI Boilerplate by [Skele-CLI](https://github.com/rdegges/skele-cli)\n\n## Contributing\n\nPlease read [CONTRIBUTING.md](https://github.com/jonluca/Anubis/blob/master/CONTRIBUTING.md) for details on our code of\nconduct, and the process for submitting pull requests to us.\n\n## Authors\n\n* **JonLuca DeCaro** - *Initial work* - [Anubis](https://github.com/Anubis)\n\nSee also the list of [contributors](https://github.com/jonluca/Anubis/contributors) who participated in this project.\n\n## License\n\nThis project is licensed under the MIT License - see the [LICENSE.md](LICENSE.md) file for details\n\n## Acknowledgments\n\n* [/r/netsec](https://reddit.com/r/netsec)\n\n* [BitQuark for the most common subdomains](https://github.com/bitquark/dnspop/tree/master/results)\n\n",
    "bugtrack_url": null,
    "license": "MIT",
    "summary": "Modern and efficient subdomain enumeration and information gathering",
    "version": "1.2.0",
    "project_urls": {
        "Homepage": "https://github.com/jonluca/anubis"
    },
    "split_keywords": [
        "cli"
    ],
    "urls": [
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "d92e5fd5f7b0d606b8896732c4c4f9ca8ec2df592b4affff6bfebd3674a96a39",
                "md5": "1757fdb20dfa877dc7b7dbfe296d7694",
                "sha256": "e281cdb66aa6c609abcb74f3006176c1c94e17f8fcebcb99e3e065052dce81fb"
            },
            "downloads": -1,
            "filename": "anubis_netsec-1.2.0-py2.py3-none-any.whl",
            "has_sig": false,
            "md5_digest": "1757fdb20dfa877dc7b7dbfe296d7694",
            "packagetype": "bdist_wheel",
            "python_version": "py2.py3",
            "requires_python": ">=3",
            "size": 22639,
            "upload_time": "2024-03-21T18:28:40",
            "upload_time_iso_8601": "2024-03-21T18:28:40.570564Z",
            "url": "https://files.pythonhosted.org/packages/d9/2e/5fd5f7b0d606b8896732c4c4f9ca8ec2df592b4affff6bfebd3674a96a39/anubis_netsec-1.2.0-py2.py3-none-any.whl",
            "yanked": false,
            "yanked_reason": null
        },
        {
            "comment_text": "",
            "digests": {
                "blake2b_256": "1f7a4a1793821ce0b7bcbab4c82c45fc0411b3d34ee7a47378b56b53786ce1b0",
                "md5": "a9f2cfbfa9bb230f32def1446739ab49",
                "sha256": "a78dc91dd594a38547359e0b5df8667f5895dba132d0387c693b504be950daea"
            },
            "downloads": -1,
            "filename": "anubis-netsec-1.2.0.tar.gz",
            "has_sig": false,
            "md5_digest": "a9f2cfbfa9bb230f32def1446739ab49",
            "packagetype": "sdist",
            "python_version": "source",
            "requires_python": ">=3",
            "size": 23260,
            "upload_time": "2024-03-21T18:28:42",
            "upload_time_iso_8601": "2024-03-21T18:28:42.319210Z",
            "url": "https://files.pythonhosted.org/packages/1f/7a/4a1793821ce0b7bcbab4c82c45fc0411b3d34ee7a47378b56b53786ce1b0/anubis-netsec-1.2.0.tar.gz",
            "yanked": false,
            "yanked_reason": null
        }
    ],
    "upload_time": "2024-03-21 18:28:42",
    "github": true,
    "gitlab": false,
    "bitbucket": false,
    "codeberg": false,
    "github_user": "jonluca",
    "github_project": "anubis",
    "travis_ci": true,
    "coveralls": false,
    "github_actions": false,
    "requirements": [
        {
            "name": "setuptools",
            "specs": []
        },
        {
            "name": "python_nmap",
            "specs": [
                [
                    "==",
                    "0.7.1"
                ]
            ]
        },
        {
            "name": "shodan",
            "specs": [
                [
                    "==",
                    "1.26.0"
                ]
            ]
        },
        {
            "name": "docopt",
            "specs": [
                [
                    "==",
                    "0.6.2"
                ]
            ]
        },
        {
            "name": "requests",
            "specs": [
                [
                    "==",
                    "2.27.1"
                ]
            ]
        },
        {
            "name": "censys",
            "specs": [
                [
                    "==",
                    "2.1.1"
                ]
            ]
        },
        {
            "name": "dnspython",
            "specs": [
                [
                    "==",
                    "2.1.0"
                ]
            ]
        }
    ],
    "lcname": "anubis-netsec"
}
        
Elapsed time: 0.20744s