Skip to main content

NoPASARAN is an advanced network tool designed to detect, fingerprint, and locate network middleboxes in a unified framework.

Project description

NoPASARAN

Docker Documentation Status Maintainability Test Coverage PyPI version Gitter License: GPL v3

NoPASARAN is an advanced network tool designed to detect, fingerprint, and locate network middleboxes in a unified framework. Written in Python, NoPASARAN uses finite state machines to describe test cases and leverages Ansible for distributing and orchestrating these tests across a network of nodes.

Table of Contents

Features

  • Detection, fingerprinting, and location of network middleboxes.
  • Utilization of finite state machines for test case description.
  • Network orchestration with Ansible.
  • Flexible roles for network nodes and proxies.
  • Support for JSON-based test files for state machine configurations.

Requirements

  • Python 3.8 or later
  • Scapy
  • Twisted

Installation

You can install and use NoPASARAN either by cloning the source code from GitHub or by installing it as a Python package.

Installing from Source Code

  1. Clone the NoPASARAN repository:

    git clone https://github.com/BenIlies/NoPASARAN.git
    
  2. Navigate into the NoPASARAN directory:

    cd NoPASARAN
    
  3. Install the necessary Python packages:

    pip install -r requirements.txt
    

Installing as a Python Package

  • Alternatively, you can install NoPASARAN as a Python package using pip:

    pip install nopasaran
    

Usage

To run NoPASARAN, you need to specify a JSON file for the state machine indicating the test the application has to run.

  • From the source code:

    python main.py --test=<path-to-json-test-file>
    
  • As a package:

    nopasaran --test=<path-to-json-test-file>
    

Additional Options

You can further customize the behavior of NoPASARAN with the following options:

  • --verbose or -v: Enable verbose output.
  • --log=<path-to-log-file> or -l=<path-to-log-file>: Specify the path to the log file (default is "conf.log").
  • --log-level=<log-level> or -ll=<log-level>: Specify the log level for output. Valid choices are "debug", "info", "warning", and "error".

Replace <path-to-json-test-file> with the path to your actual JSON test file.

For any further assistance, use the --help argument with any command for additional information.

Docker

You can also use Docker to download and run a NoPASARAN node.

  1. Pull the latest node image:

    docker pull benilies/nopasaran:latest
    
  2. Run the node container:

    docker run -it benilies/nopasaran:latest
    

The node container is now ready for use.

Documentation

For more detailed guides and information about NoPASARAN, please visit our documentation.

Gitter

Join the discussion on Gitter.

Acknowledgements

This software is based on the research paper titled "NoPASARAN: a Novel Platform to Analyse Semi Active elements in Routes Across the Network" by Ilies Benhabbour and Marc Dacier, published in 2022.

@article{benhabbour2022nopasaran,
title={NoPASARAN: a Novel Platform to Analyse Semi Active elements in Routes Across the Network},
author={Benhabbour, Ilies and Dacier, Marc},
year={2022},
publisher={Index Copernicus}
}

License

NoPASARAN is released under the GNU General Public License v3.0.

Project details


Release history Release notifications | RSS feed

Download files

Download the file for your platform. If you're not sure which to choose, learn more about installing packages.

Source Distribution

nopasaran-0.2.113.tar.gz (83.5 kB view details)

Uploaded Source

Built Distribution

If you're not sure about the file name format, learn more about wheel file names.

nopasaran-0.2.113-py3-none-any.whl (115.4 kB view details)

Uploaded Python 3

File details

Details for the file nopasaran-0.2.113.tar.gz.

File metadata

  • Download URL: nopasaran-0.2.113.tar.gz
  • Upload date:
  • Size: 83.5 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for nopasaran-0.2.113.tar.gz
Algorithm Hash digest
SHA256 1ba8c74d8b46da8937074aebcfaf29b5030b735a77874fbf9b03254769037cb4
MD5 24a19b11963b8572065b58b24adc9654
BLAKE2b-256 5ae746d2859d04f793f9b91f7b7febb188a9cf0335f2d6c43f5df1bddf084569

See more details on using hashes here.

File details

Details for the file nopasaran-0.2.113-py3-none-any.whl.

File metadata

  • Download URL: nopasaran-0.2.113-py3-none-any.whl
  • Upload date:
  • Size: 115.4 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/6.2.0 CPython/3.9.23

File hashes

Hashes for nopasaran-0.2.113-py3-none-any.whl
Algorithm Hash digest
SHA256 ebf55cfaa4f41b69b05c575f56b55156e0e3bb6c095e99c3c7439fa0e4c5840d
MD5 2471923c5f2ac4e65ba64cd380b14a73
BLAKE2b-256 6c8b6c28452b4ad7c241dedf63abeae89f7deb92d0b45ad8fc8df56fbca8ca08

See more details on using hashes here.

Supported by

AWS Cloud computing and Security Sponsor Datadog Monitoring Depot Continuous Integration Fastly CDN Google Download Analytics Pingdom Monitoring Sentry Error logging StatusPage Status page