Skip to main content

A Python tool for Network Security

Project description

Net Tracer

Net Tracer is a Python tool for Network Security. Currently, it can:

  • scan.py: Scan a target IP address or hostname for open ports and generates a CSV report of the scan results.

Requirements

Installation

You can install net-tracer using pip. First, make sure you have Python 3.6 or later installed on your system. Then, open a terminal or command prompt and enter the following command:

pip install net-tracer

This will download and install the latest version of net-tracer and all its dependencies.

Alternatively, you can clone the GitHub repository and install net-tracer manually. First, navigate to the directory where you want to clone the repository, then enter the following commands:

git clone https://github.com/Morbid1134/Net-Tracer.git
cd net-tracer
pip install -r requirements.txt
pip install .

This will clone the repository, install the required dependencies, and install net-tracer locally on your system.

Once net-tracer is installed, you can import it into your Python scripts using the following statement:

import net_tracer

That's it! You're ready to use net-tracer in your Python projects.

Usage

You can simply call the imported functions from within your Python script.

import net_tracer

net_tracer.tracer(target=None, ports=None, socket_threads=10000, nmap_threads=8, output=None, printing=False)

Function Parameters

tracer(target, ports, socket_threads, nmap_threads, output, printing)

  • target: The IP address or hostname of the target you want to scan. If no value is provided, the user will be prompted to enter a target at runtime.
  • ports: A list or range of ports to scan. If no value is provided, all 65,535 ports will be scanned.
  • socket_threads: The number of threads to use for socket scanning. Default is set to 10,000.
  • nmap_threads: The number of threads to use for Nmap scanning. Default is set to 8.
  • output: The name of the output file to write the results to. If no value is provided, the output array will not be written to a file. Output will always be returned and can be set to variable no matter if saving to a file.
  • printing: If True then it will print details as the code is ran. Default is set to False.

Examples

A full Python script is provided to show some ways of using this in examples.py

License

This project is licensed under the MIT License - see the LICENSE file for details.

Project details


Download files

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

Source Distribution

net-tracer-1.0.5.tar.gz (6.0 kB view details)

Uploaded Source

Built Distribution

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

net_tracer-1.0.5-py3-none-any.whl (6.5 kB view details)

Uploaded Python 3

File details

Details for the file net-tracer-1.0.5.tar.gz.

File metadata

  • Download URL: net-tracer-1.0.5.tar.gz
  • Upload date:
  • Size: 6.0 kB
  • Tags: Source
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for net-tracer-1.0.5.tar.gz
Algorithm Hash digest
SHA256 90147f63f8b7567d42218e1d31c491047ade1ef93e16562cfaf438c5b1adea50
MD5 20e533845038929de0ebdb14c060d452
BLAKE2b-256 d8639ba5fe8913dccb516188b38d5b823319f70974523a33813770e80a5fc9ba

See more details on using hashes here.

File details

Details for the file net_tracer-1.0.5-py3-none-any.whl.

File metadata

  • Download URL: net_tracer-1.0.5-py3-none-any.whl
  • Upload date:
  • Size: 6.5 kB
  • Tags: Python 3
  • Uploaded using Trusted Publishing? No
  • Uploaded via: twine/4.0.2 CPython/3.11.1

File hashes

Hashes for net_tracer-1.0.5-py3-none-any.whl
Algorithm Hash digest
SHA256 6f59997bd2e9d9d3f0711090fc916c00a9469c951fab85d12c96e01c520d02d6
MD5 d12db47dd9db4b153217cba98771d0e0
BLAKE2b-256 4cb2eeec1cb13b54680c863112004140e351594254f9336a21660c22c10ff6bf

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