Giter VIP home page Giter VIP logo

leviathan's Introduction

Leviathan is a mass audit toolkit which has wide range service discovery, brute force, SQL injection detection and running custom exploit capabilities. It consists open source tools such masscan, ncrack, dsss and gives you the flexibility of using them with a combination.

The main goal of this project is auditing as many system as possible in country-wide or in a wide IP range.

Main Features

Discovery: Discover FTP, SSH, Telnet, RDP, MYSQL services running inside a specific country or in an IP range via Shodan, Censys. It's also possible to manually discover running services on a IP range by integrated “masscan” tool.

Short Demo: https://asciinema.org/a/617bsxl1y84bav9f5bcwllx7r

Brute Force: You can brute force the discovered services with integrated “ncrack” tool. It has wordlists which includes most popular combinations and default passwords for specific services.

Short Demo: https://asciinema.org/a/43y2j38zu7hbnuahrj233d5r0

Remote Command Execution: You can run system commands remotely on compromised devices.

Short Demo: https://asciinema.org/a/0xcrhd12f2lpkbktjldwtab16

SQL Injection Scanner: Discover SQL injection vulnerabilities on websites with specific country extension or with your custom Google Dork.

Short Demo: https://asciinema.org/a/2mwfmd9afsuyg5p0vzcq5e6si

Exploit Specific Vulnerabilities: Discover vulnerable targets with Shodan, Censys or masscan and mass exploit them by providing your own exploit or using preincluded exploits.

Short Demo: https://asciinema.org/a/9uqsjvnru780h0ue6ok9j9ktb

Integrated Tools

Masscan: It’s a very fast TCP port scanner by Robert David Graham. Leviathan uses masscan for detecting services on a huge IP range. https://github.com/robertdavidgraham/masscan

Ncrack: Ncrack is a high-speed network authentication cracking tool. Leviathan uses ncrack to brute force services such as FTP, SSH, RDP, Telnet, MYSQL etc. https://github.com/nmap/ncrack

DSSS (Damn Small SQLi Scanner): DSSS is a fully functional and minimal SQL injection vulnerability scanner by Miroslav Stampar. Leviathan uses DSSS to identify SQL Injection vulnerabilities on specific URLs. https://github.com/stamparm/DSSS

Installation

For detailed installiation, please visit our wiki page.

Kali Linux:

Download leviathan by cloning the Git repository:

git clone https://github.com/leviathan-framework/leviathan.git

Go inside the folder

cd leviathan

Install Python libraries:

pip install -r requirements.txt

It's done!

Debian/Ubuntu:

Download leviathan by cloning the Git repository:

git clone https://github.com/leviathan-framework/leviathan.git

Go inside the folder

cd leviathan

Run installiation script. It will setup required tools (ncrack, masscan) and python libraries.

bash scripts/debian_install.sh

It's done!

macOS:

If homebrew is not installed on your system, please install it first:

/usr/bin/ruby -e "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install)"

Download leviathan by cloning the Git repository:

git clone https://github.com/leviathan-framework/leviathan.git

Go inside the folder

cd leviathan

Run installiation script. It will setup required tools (ncrack, masscan) and python libraries.

bash scripts/macos_install.sh

It's done!

Requirements

Python version 2.7.x is required for running this program.

Supported platforms: Linux (Kali Linux, Debian, Ubuntu), macOS

Usage

Run the program with following command:

python leviathan.py

You can get basic usage information inside the menus. For detailed usage manual, visit our wiki page.

Screenshots

Authors

This project is written by Utku Sen and Ozge Barbaros

Legal Warning

While this may be helpful for some, there are significant risks. You could go to jail on obstruction of justice charges just for running leviathan, even though you are innocent. Your are on notice, that using this tool outside your "own" environment is considered malicious and is against the law. Use with caution.

leviathan's People

Contributors

nask0 avatar ozgebarbaros avatar polyatomicbrian avatar utkusen avatar ziyaddin avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

leviathan's Issues

Cannot communicate with Shodan.io

Enter Country Code:

(Examples:TR,RU,USA,IT)

tr

Enter Protocol 

(Examples:ssh, ftp, telnet, smb, rdp, mysql):

ssh
Extracting IPs for following query: country:tr port:22
Please wait..
Cannot communicate with Shodan.io

I have entered the shodan api.

Debian Install Script error

/usr/bin/strip /usr/local/bin/ncrack
/usr/bin/install -c -c -m 644 docs/ncrack.1 /usr/local/share/man/man1/
/usr/bin/install -c -c -m 644 ncrack-services /usr/local/share/ncrack/
/usr/bin/install -c -c -m 644 lists/* /usr/local/share/ncrack/
NCRACK SUCCESSFULLY INSTALLED
Traceback (most recent call last):
  File "/usr/bin/pip", line 9, in <module>
    load_entry_point('pip==1.5.6', 'console_scripts', 'pip')()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 356, in load_entry_point
    return get_distribution(dist).load_entry_point(group, name)
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2476, in load_entry_point
    return ep.load()
  File "/usr/lib/python2.7/dist-packages/pkg_resources.py", line 2190, in load
    ['__name__'])
  File "/usr/lib/python2.7/dist-packages/pip/__init__.py", line 74, in <module>
    from pip.vcs import git, mercurial, subversion, bazaar  # noqa
  File "/usr/lib/python2.7/dist-packages/pip/vcs/mercurial.py", line 9, in <module>
    from pip.download import path_to_url
  File "/usr/lib/python2.7/dist-packages/pip/download.py", line 25, in <module>
    from requests.compat import IncompleteRead
ImportError: cannot import name IncompleteRead

This on Debian Jessie (8.7).

googleapiclient doesn't exist

ImportError: No module named googleapiclient.discovery

After installing the framework with the shell script for Ubuntu. Tried to install and search for a module by that name via pip but it does not appear to exist. And if it does, it may have ben updated so that it goes by a different name. This project is after all a year old.

Any tips for me on how to resolve this issue?

fedora_install.sh scriptinde sorun

Sizin blogunuzu uzun süredir takip ediyorum, bu yeni aracı çıkardığınızı gördüm. Kullandığım dağıtım Fedora. "sh fedora_install.sh" komutunu verdiğimde scriptin "requirements.txt" dosyasını bulamadığını gördüm:
Could not open requirements file: [Errno 2] Böyle bir dosya ya da dizin yok: 'requirements.txt'
Bunun çözümü için requirements.txt dosyasını scripts klasörünün içine almanızı öneriyorum.

[FEATURE] Allow signal stop on search

Allow user to send a stop signal through keyboard (e.g. Ctrl+C).
This will allow user to stop search whenever he wants.
For future, implementation of "continue" search could be available.

Seven undefined name errors

flake8 testing of https://github.com/leviathan-framework/leviathan on Python 2.7.13

$ flake8 . --count --select=E901,E999,F821,F822,F823 --show-source --statistics

./lib/brute_forcer.py:87:17: F821 undefined name 'cracked_list'
                cracked_list.append(ip+" "+username+" "+password)
                ^

./lib/brute_forcer.py:88:72: F821 undefined name 'discovery_id'
                ncrack_file_name = "ncrack_%s_%s.txt" % (protocol, str(discovery_id))
                                                                       ^

./lib/utils.py:149:45: F821 undefined name 'output_file'
        print "There is no such file: %s" % output_file
                                            ^

./lib/utils.py:173:45: F821 undefined name 'output_file'
        print "There is no such file: %s" % output_file
                                            ^

./lib/utils.py:189:45: F821 undefined name 'output_file'
        print "There is no such file: %s" % output_file
                                            ^

./lib/exploits/detect_doublepulsar_rdp.py:137:39: F821 undefined name 'ip'
                successful_ips.append(ip)
                                      ^

./lib/exploits/detect_doublepulsar_smb.py:162:39: F821 undefined name 'ip'
                successful_ips.append(ip)
                                      ^

No module named shodan

Traceback (most recent call last):
File "leviathan.py", line 20, in
from lib.protocol_scanner import shodan_search, censys_search, mass_scan
File "/root/leviathan/lib/protocol_scanner.py", line 7, in
import shodan
ImportError: No module named shodan

and i m sure that shodan is installed

'Error on line 25'

Impossible to use Google Dorks function in manual or automatic:

Extracting URLs from Google for following dork: inurl:.php?id= inurl:edu.fr
Link extraction failed! Probably your API limit exceeded
('Error on line 25', <class 'googleapiclient.errors.HttpError'>, <HttpError 400 when requesting https://www.googleapis.com/customsearch/v1?q=inurl%3A.php%3Fid%3D+inurl%3Aedu.fr&alt=json&cx=API_KEY_HERE&num=15&key=API_KEY_HERE returned "Bad Request">)

Error "Cannot communicate with ..." Shodan and Censys

    Enter Country Code:

    (Examples:TR,RU,USA,IT)
    
>>FR

    Enter Protocol 

    (Examples:ssh, ftp, telnet, smb, rdp, mysql):
    
>>ssh
Extracting IPs for following query: country:FR port:22
Please wait..
Cannot communicate with Shodan.io

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.