Skip to content

Latest commit

 

History

History
54 lines (36 loc) · 1.59 KB

README.md

File metadata and controls

54 lines (36 loc) · 1.59 KB
py-logo

This project allows scripts to be executed remotely via a web interface.

Technologies Used

  • Flask (Python): Web framework for server development.
  • HTML: Web page structure.
  • JavaScript: Interactive client functionality.

How it works

  1. The user accesses the web page.
  2. By clicking on one of the “Run Script” buttons, the path of the corresponding script is sent to the server.
  3. The Flask server receives the request and executes the script provided.
  4. The result of the execution (success or error) is sent back to the web page.
  5. The result message is displayed to the user.

Requirements

  • Python 3.x
  • Flask

Installation

  1. Clone this repository.
  2. Install the dependencies:
pip install flask

Running the Project

  1. Navigate to the project folder.
  2. Run the following command:
python app.py
  1. Access http://127.0.0.1:5000/ in your web browser.

Usage

  • Change the paths of the scripts defined in the bottom1, bottom2, and bottom3 variables in the script.js file.
  • Click on one of the “Run Script” buttons to execute the corresponding script.

Security Considerations

  • Running arbitrary scripts on the server can be a security risk. Make sure you limit the scripts that can be run and implement appropriate authentication and authorization mechanisms.
  • Scripts must be located in a secure directory and accessible only by the application.