Copypasta is a simple web application built using FastAPI, designed to help you manage and interact with files stored on a server. It provides various features for uploading, previewing, and deleting files, as well as generating Base64 representations of files. This README will guide you through setting up and using the Copypasta tool.
Copypasta offers the following features:
- File Upload: Upload files to the server, with support for multiple file uploads.
- Base64 Encoding: Convert files into Base64-encoded strings. It also supports converting into UTF16-LE (for Powershell -ec commands)
- Preview: Preview the content of text-based files.
- File Deletion: Delete files from the server.
- File Size Display: Display file sizes in a user-friendly format (e.g., B, KB, MB, GB).
- MD5 Hash Storage: Shows MD5 hashes for files under a certain size to verify data integrity.
Before you begin, ensure you meet the following requirements:
- Python3 installed on your system
- pip package manager
Copypasta supports running locally via python or running in a container via Docker
- Clone the repository
- Navigate to the repository folder
- (Optional) Create a virtual environment
- (Optional) Activate the virtual environment
- pip install -r requirements.txt
- python copypasta.py
By default, it will host on http://0.0.0.0:8080. This can be changed in variables.py.
- clone the repository
- cd into the repository folder
- docker build -t copypasta .
- docker-compose up -d
python copypasta.py
or
docker build -t copypasta .
docker-compose up -d
- Written by WJDigby and stylized by Quaid DeLacluyse
- The functionality and design was improved and refactored by me.
This project is licensed under the GNU General Public License v3.0.
For the full license text, please see LICENSE.