GithubHelp home page GithubHelp logo

wanetty / upgopher Goto Github PK

View Code? Open in Web Editor NEW
9.0 1.0 1.0 1.16 MB

This is a simple Go web server that allows users to upload files and view a list of the uploaded files. The server can be run locally or deployed to a remote server. (Linux / Windows / Mac)

Home Page: https://blog.wanetty.com

License: MIT License

Go 99.05% Dockerfile 0.95%
go file-server file-sharing file-upload http-server redteam redteam-tools simplehttpserver linux macos

upgopher's Introduction

Upgopher

Logo

Go

This is a simple Go web server that allows users to upload files and view a list of the uploaded files. The server can be run locally or deployed to a remote server.

This project tries to replace all file servers that use python, since there are always problems with libraries. Sometimes we want it to be on a remote pc and go gives you the possibility of cross-platform compilation and to work anywhere...

Exmaple Photo

Features

  • Users can upload files by selecting a file and clicking the "Upload" button
  • Uploaded files are stored in the "uploads" directory by default, but the directory can be changed using the -dir flag
  • Users can view a list of the uploaded files by visiting the root URL
  • Basic authentication is available to restrict access to the server. To use it, set the -user and -pass flags with the desired username and password.
  • Traffic via HTTPS.
  • Generate a self-signed certificate by setting the -ssl flag.
  • Possibility to browse through folders and upload files...

Installation

Automatically

Just run this command in your terminal with go installed.

go install github.com/wanetty/upgopher@latest

Releases

Go to the releases section and get the one you need.

Manual

Just build it yourself

git clone https://github.com/wanetty/upgopher.git
cd upgopher
go build 

Docker

docker build . -t upgopher
docker run --name upgopher -p 9090:9090  upgopher

Usage

Help Output:

./upgopher -h
Usage of ./upgopher:
  -cert string
        HTTPS certificate
  -dir string
        directory path (default "./uploads")
  -key string
        private key for HTTPS
  -pass string
        password for authentication
  -port int
        port number (default 9090)
  -ssl
        use HTTPS on port 443 by default. (If you don't put cert and key, it will generate a self-signed certificate)
  -user string
        username for authentication
  -q    quite mode
  -disable-hidden-files    disable showing hidden files

License

This project is licensed under the MIT License. See the LICENSE file for details.

## Info For more information, you can find me on Twitter as @gm_eduard.

upgopher's People

Contributors

interhack86 avatar wanetty avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar

Forkers

interhack86

upgopher's Issues

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.