This repository contains a bash script (setup.sh
) that automates the process of downloading Chisel for Linux and Windows, setting up a Chisel server, and setting up a Python server to serve the Chisel client files.
The script does the following:
- Downloads the Chisel client for Linux and Windows.
- Sets up a Chisel server running on port 1337.
- Sets up a Python server running on port 5000. This server serves the Chisel client files and shuts down after a client has downloaded a file.
- Once the Python server shuts down, the Chisel server is started.
This script can be useful in situations where you want to distribute the Chisel client to other users via a web server, and then start a Chisel server that they can connect to. It automates the process of downloading the clients, setting up the servers, and managing their lifecycles.
-
Make the script executable:
chmod +x setup.sh
-
Run the script with sudo:
sudo ./setup.sh
After running the script, you can download the Chisel client from the Flask server with curl:
curl http://your-server-ip:5000/files/chisel_linux > chisel_linux
curl http://your-server-ip:5000/files/chisel_windows > chisel_windows