Skip to content

Commit f4803b0

Browse files
committed
Tighter requirements, brought back sslyze
1 parent 92a6075 commit f4803b0

7 files changed

Lines changed: 25 additions & 13 deletions

File tree

.pytest_cache/v/cache/lastfailed

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"tests/commands/test_target.py::TestScanners::test_netcraft": true,
3+
"tests/commands/test_target.py::TestScanners::test_recursive": true
4+
}

README.md

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -64,6 +64,7 @@ pip3 install .
6464
-p --ip outputs the resolved IPs for each subdomain, and a full list of unique ips
6565
-a --send-to-anubis-db send results to Anubis-DB
6666
-r --recursive recursively search over all subdomains
67+
-s --ssl run an ssl scan and output cipher + chain info
6768
-w --overwrite-nmap-scan SCAN overwrite default nmap scan (default -nPn -sV -sC)
6869
-v --verbose print debug info and full request output
6970
-q --queue-workers NUM override number of queue workers (default: 10, max: 100)

anubis/__init__.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
__version__ = '0.9.1'
1+
__version__ = '0.9.2'

anubis/cli.py

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
"""
22
Usage:
3-
anubis -t TARGET [-o FILENAME] [-noipbarv] [-w SCAN] [-q NUM]
3+
anubis -t TARGET [-o FILENAME] [-abinoprsv] [-w SCAN] [-q NUM]
44
anubis -h
55
anubis --version
66
@@ -13,6 +13,7 @@
1313
-p --ip outputs the resolved IPs for each subdomain, and a full list of unique ips
1414
-a --send-to-anubis-db send results to Anubis-DB
1515
-r --recursive recursively search over all subdomains
16+
-s --ssl run an ssl scan and output cipher + chain info
1617
-w --overwrite-nmap-scan SCAN overwrite default nmap scan (default -nPn -sV -sC)
1718
-v --verbose print debug info and full request output
1819
-q --queue-workers NUM override number of queue workers (default: 10, max: 100)

anubis/commands/target.py

Lines changed: 10 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
"""The target command."""
2+
import sys
3+
24
import re
35
import socket
4-
import sys
56
import threading
67
from urllib.parse import urlsplit
78

@@ -14,6 +15,7 @@
1415
from anubis.scanners.nmap import scan_host
1516
from anubis.scanners.recursive import recursive_search
1617
from anubis.scanners.shodan import search_shodan
18+
from anubis.scanners.ssl import search_subject_alt_name, ssl_scan
1719
from anubis.scanners.virustotal import search_virustotal
1820
from anubis.scanners.zonetransfer import dns_zonetransfer
1921
from anubis.utils.ColorPrint import ColorPrint
@@ -68,9 +70,10 @@ def run(self):
6870
# Default scans that run every time
6971
target = self.options["TARGET"][i]
7072
threads = [threading.Thread(target=dns_zonetransfer, args=(self, target)),
71-
7273
threading.Thread(target=subdomain_hackertarget,
7374
args=(self, target)),
75+
threading.Thread(target=search_subject_alt_name,
76+
args=(self, target)),
7477
threading.Thread(target=search_virustotal,
7578
args=(self, target)),
7679
# threading.Thread(target=search_pkey, args=(self, target)),
@@ -80,11 +83,15 @@ def run(self):
8083
threading.Thread(target=search_dnsdumpster,
8184
args=(self, target)),
8285
threading.Thread(target=search_anubisdb, args=(self, target))]
83-
86+
8487
# Additional options - shodan.io scan
8588
if self.options["--additional-info"]:
8689
threads.append(threading.Thread(target=search_shodan, args=(self,)))
8790

91+
# Additional options - ssl
92+
if self.options["--ssl"]:
93+
threads.append(threading.Thread(target=ssl_scan, args=(self, target)))
94+
8895
# Additional options - nmap scan of dnssec script and a host/port scan
8996
if self.options["--with-nmap"]:
9097
threads.append(

requirements.txt

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
11
setuptools
22
python_nmap==0.6.1
3-
shodan==1.7.7
3+
shodan==1.9.0
44
docopt==0.6.2
5-
requests==2.18.4
5+
requests==2.21.0
66
censys==0.0.8
7-
dnspython==1.15.0
7+
dnspython==1.15.0
8+
sslyze==2.0.3

setup.py

Lines changed: 3 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -4,9 +4,8 @@
44
from os.path import abspath, dirname, join
55
from subprocess import call
66

7-
from setuptools import Command, find_packages, setup
8-
97
from anubis import __version__
8+
from setuptools import Command, find_packages, setup
109

1110
this_dir = abspath(dirname(__file__))
1211
with open(join(this_dir, 'README.md'), encoding='utf-8') as file:
@@ -43,9 +42,8 @@ def run(self):
4342
'Programming Language :: Python :: 3.5',
4443
'Programming Language :: Python :: 3.6', ], keywords='cli',
4544
packages=find_packages(exclude=['docs', 'tests*']), python_requires='>=3',
46-
install_requires=['docopt', 'setuptools',
47-
'python_nmap==0.6.1', 'shodan', 'requests', 'censys',
48-
'dnspython==1.15.0'],
45+
install_requires=['docopt', 'setuptools', 'python_nmap==0.6.1', 'shodan==1.9.0',
46+
'requests', 'censys==0.0.8', 'dnspython==1.15.0', 'sslyze==2.0.3'],
4947
extras_require={'test': ['coverage', 'pytest', 'pytest-cov'], },
5048
entry_points={'console_scripts': ['anubis=anubis.cli:main', ], },
5149
cmdclass={'test': RunTests},

0 commit comments

Comments
 (0)