Skip to main content

ngflask

Serving static files and directories from your local machine over the Internet with just one command.

The script first binds a flask server to the given address and starts sharing files from the specified directory.

It then creates a tunnel through the Ngrok network and gives you the public URL tunneled to the local flask server.

Useful for transferring the files when you compromised a host inside an internal network and outgoing Internet connections aren't forbidden.

Installation

sudo apt install python3 python3-pip
git clone https://github.com/cyberhexe/ngflask
cd ngflask
pip3 install -r requirements.txt
sudo link flask-ngrok.py /usr/bin/ngflask

Or using PyPI

pip3 install ngflask

Usage

Serve files and folder from the current working directory

ngflask

Serve files and folders from the /tmp directory

ngflask --directory /tmp

Print served files to the console on startup

ngflask --directory /tmp -pf

Bind the server to a specific address

ngflask --ip 10.10.10.10 --port 5050

Print help

ngflask -h

Release files for ngflask 1.0.5

For a detailed explanation of source distributions (sdists) and built distributions (wheels), please see the package formats documentation.

Source distribution (sdist)

Source distribution for ngflask 1.0.5
File Size Uploaded
ngflask-1.0.5.tar.gz 4.2 kB Details

Built distribution (wheel)

Table of built distributions (wheels) for ngflask 1.0.5
File Interpreter ABI Platform
ngflask-1.0.5-py3-none-any.whl Python 3 none any Details

Total release size: 8.6 kB

Release files / ngflask-1.0.5.tar.gz

Download URL ngflask-1.0.5.tar.gz
Size 4.2 kB
Tags Source
SHA-256 checksum
How to use checksums
2d5e3f3749ca133a88b1a91da79a17c8f8a3c152d6ace184d92f01ec63d267f4
BLAKE2b-256 checksum
How to use checksums
79048bf9397db406f474f62f7f8890ddb0836bd9f908f61fe8b519839d30dbbf
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

Release files / ngflask-1.0.5-py3-none-any.whl

Download URL ngflask-1.0.5-py3-none-any.whl
Size 4.4 kB
Tags Python 3
SHA-256 checksum
How to use checksums
d5654e7e7921b9a196ab645381c7e4e5d797d35bb9f7f04cb418e595a9aec016
BLAKE2b-256 checksum
How to use checksums
d6b6e01b1b377c47bac839e2ba78da4878786344a63e5fbfeeed56b34dacfc69
Upload date
Uploaded using Trusted Publishing?
What is trusted publishing?
No
Uploaded via twine/3.8.0 pkginfo/1.8.2 readme-renderer/34.0 requests/2.27.1 requests-toolbelt/0.9.1 urllib3/1.26.9 tqdm/4.63.1 importlib-metadata/4.11.3 keyring/23.5.0 rfc3986/2.0.0 colorama/0.4.4 CPython/3.9.12

Release history Release notifications | RSS feed

This release

1.0.5 This release

2 release files

1.0.4

2 release files

1.0.3

2 release files

1.0.2

2 release files

1.0.1

2 release files

1.0.0

2 release files

Anthropic, PBC Visionary sponsor Bloomberg Visionary sponsor Hudson River Trading Visionary sponsor Meta Visionary sponsor NVIDIA Visionary sponsor Microsoft Sustainability sponsor Depot Continuous Integration AWS Cloud computing and Security Sponsor Datadog Monitoring Fastly CDN Google Download Analytics Sentry Error logging StatusPage Status page