GithubHelp home page GithubHelp logo

farzadforoozanfar / secureupload Goto Github PK

View Code? Open in Web Editor NEW
4.0 1.0 0.0 12 KB

SecureUpload is a web application that allows users to securely upload files to a server. The application includes several security features to ensure that uploaded files do not contain malicious code that could harm the server or other users.

Python 10.31% PHP 89.69%
clamav php python secure upload-files secure-upload

secureupload's Introduction

SecureUpload

SecureUpload is a web application that allows users to securely upload files to a server. The application includes several security features to ensure that uploaded files do not contain malicious code that could harm the server or other users.

Features

  • File existence check: uploaded files are checked to ensure that they exist in memory before being processed.
  • Extension and mime type check: uploaded files are checked to ensure that they have a valid file extension and mime type.
  • Content check: uploaded files are checked for malicious scripts or code.
  • Antivirus check: uploaded files are checked using the ClamAV antivirus, which is called from a Python script using exec() in PHP. The antivirus results are printed in the console and logged in PHP if logging is enabled.

Installation

To install SecureUpload, follow these steps:

  1. Clone the SecureUpload repository to your server.
  2. Make sure that PHP and PYTHON is installed on your server.
  3. Install ClamAV ClamAV on your server:
    • macOS: ClamAV can be installed using Homebrew. Run the following command in your terminal: brew install clamav
    • Linux: ClamAV can be installed using your distribution's package manager. For example, on Ubuntu, run the following command in your terminal: sudo apt-get install clamav
    • Windows: ClamAV can be downloaded from the ClamAV website. Follow the instructions provided to install ClamAV on your system.
  4. Configure your web server to serve the SecureUpload files.
  5. Create a directory on your server where uploaded files will be stored.
  6. Update the upload.php file with the path to the directory where uploaded files will be stored.

Usage

To use SecureUpload, simply navigate to the upload page in your web browser and select a file to upload. The uploaded file will be checked for security risks before being added to the server.

Contributing

Contributions to SecureUpload are welcome! If you find a bug or have a feature request, please open an issue on the repository. If you would like to contribute code, please fork the repository and submit a pull request.

License

SecureUpload is licensed under the MIT License. See the LICENSE file for more information.

secureupload's People

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.