Giter VIP home page Giter VIP logo

slyscan's Introduction

SlyScan

          ๐Ÿ SlyScan ๐Ÿ  

Multi-threaded  |
Multi-processed | Port Scanner
Multi-host      |

About

This Python script provides a multi-threaded port scanning tool designed to scan multiple hosts for open ports within a specified range. It utilizes concurrent programming with multiprocessing and threading to efficiently scan ports for multiple hosts.

Dependencies

  • socket
  • argparse
  • multiprocessing
  • concurrent.futures.ThreadPoolExecutor
  • tqdm
  • rich

Features

  • Multi-threaded Scanning:

    • Utilizes threading to concurrently scan open ports, optimizing speed for each host.
  • Multi-processed Architecture:

    • Harnesses the power of multiprocessing to perform simultaneous port scans across multiple hosts, enhancing overall scanning efficiency.
  • Port Range Support:

    • Supports a flexible port specification, allowing scanning of single ports, multiple ports, and port ranges.
  • Dynamic Progress Tracking:

    • Employs a dynamic progress bar using tqdm for real-time visualization of scanning progress.
  • Colorful Console Output:

    • Utilizes the rich library to provide visually appealing and informative console output.
  • User-friendly Command-line Interface:

    • Accepts command-line arguments for specifying hosts and ports, making it easy to customize scanning parameters.
  • Robust Port Parsing:

    • Parses a variety of port specifications, including single ports and port ranges, ensuring flexibility in configuration.

Example Usage

$ python slyscan.py --hosts 192.168.1.1 192.168.1.2 --ports 80 443 8080-8090

Output

[i] While scanning:

Alt text

[i] Execution finished:

Alt text

Performance

  • Passing 2 hosts and a portrange of 1-65535 as arguments to the script:
    • In a 4 thread CPU takes on average 100 seconds to completely scan the hosts ports.
  • RESULTS are ALWAYS ACCURATE unless the packets are being BLOCKED by Network security measures, such as firewalls.

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.