File-sharing tool
Project description
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
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
Built Distribution
Filter files by name, interpreter, ABI, and platform.
If you're not sure about the file name format, learn more about wheel file names.
Copy a direct link to the current filters
File details
Details for the file ngflask-1.0.5.tar.gz.
File metadata
- Download URL: ngflask-1.0.5.tar.gz
- Upload date:
- Size: 4.2 kB
- Tags: Source
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
2d5e3f3749ca133a88b1a91da79a17c8f8a3c152d6ace184d92f01ec63d267f4
|
|
| MD5 |
d75656cd8782565378f90ae882a0f9e2
|
|
| BLAKE2b-256 |
79048bf9397db406f474f62f7f8890ddb0836bd9f908f61fe8b519839d30dbbf
|
File details
Details for the file ngflask-1.0.5-py3-none-any.whl.
File metadata
- Download URL: ngflask-1.0.5-py3-none-any.whl
- Upload date:
- Size: 4.4 kB
- Tags: Python 3
- Uploaded using 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
File hashes
| Algorithm | Hash digest | |
|---|---|---|
| SHA256 |
d5654e7e7921b9a196ab645381c7e4e5d797d35bb9f7f04cb418e595a9aec016
|
|
| MD5 |
49ea3c0bfb0e4449cceeee6d095386f0
|
|
| BLAKE2b-256 |
d6b6e01b1b377c47bac839e2ba78da4878786344a63e5fbfeeed56b34dacfc69
|