Git Product home page Git Product logo

nmirror's Introduction

nmerror

A simple TCP server that listens for incoming connections on a specified host and port. When a client connects, it establishes a connection to the target host and port, and then echoes all data received from the client to the target host and vice versa.

Create virtual environment

python3 -m venv .venv

Enable virtual environment

On Windows, run via PowerShell:

.venv\bin\Activate.ps1

On Unix or MacOS, run:

source .venv/bin/activate

Install dependencies

python -m pip install -r requirements.txt

Usage

The command below will forward the traffic from 127.0.0.1:3003 to aakodadi.com:443

./nmirror.py --host 127.0.0.1 --port 3003 --target-host akodadi.com --target-port 443

You can now open https://127.0.0.1:3003 on a browser and (apart from the invalid certificate warning) it will be as if you visited https://akodadi.com directly.

If you prefer the short options, the command would look like this:

./nmirror.py -l 127.0.0.1 -p 3003 -L akodadi.com -P 443

Run ./nmirror.py --help for more options.

[Contributers] Update packages list

If a new package is used in the project installed via pip install <package>, update the packages list:

pip freeze > requirements.txt

Disable virtual environment

deactivate .venv

nmirror's People

Watchers

Abdelhakim AKODADI avatar

nmirror's Issues

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.