Skip to content

A simple alternative to transfer.sh written in Golang. Share files via curl easily!

Notifications You must be signed in to change notification settings

alufers/biedatransfer

Repository files navigation

biedatransfer

An easy to use and simple file transfer website built in Golang.

Screenshot

It allows for file upload using the web interface (drag and drop) or via curl

It also parses the uploaded files using binwalk, file, exiftool and ldd and displays the data on a separate page.

Screenshot

Usage

Place a biedatransfer-config.yaml file in the working directory or in /etc/biedatransfer. Example contents:

You will also need a IP2LOCATION file for the resolution of upload locations via ip.

http:
  addr: :8080
  mode: debug
  trustedproxies:
  - 127.0.0.0/24
  url: http://localhost:8080
upload:
  datadir: ./data
  forbiddennames:
  - index.html
  - index.htm
  - robots.txt
  - humans.txt
  - favicon.ico
  - wp-admin.php
  - xmlrpc.php
  - .env
  - .git
  - .config
  - recents.json
  - .
  - /
  - ./
  - style.css
  forbiddenprefixes:
  - .well-known
  - .git
  - .htaccess
  - .htpasswd
  - google
  locationdatabasepath: ./IP2LOCATION-LITE-DB5.BIN
  recentssize: 40