You're Invited:Meet the Socket Team at BlackHat and DEF CON in Las Vegas, Aug 4-6.RSVP
Socket
Book a DemoInstallSign in
Socket

github.com/warkio/pomf-go

Package Overview
Dependencies
Alerts
File Explorer
Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

github.com/warkio/pomf-go

v0.0.0-20191031200749-8ab872cfd3b7
Source
Go
Version published
Created
Source

pomf-go

Basic implementation of Pomf.

Note: Only the /upload path is implemented so far, and it doesn't handle errors.

Install

go get -u github.com/warkio/pomf-go/cmd/pomf-server

cd "${GOPATH}/bin"

# Copy the `pomf-server` executable to some directory in your $PATH.
#
# This assumes you want to put it in `${HOME}/bin`.
cp pomf-server "${HOME}/bin"

Usage

Start server

export POMF_LISTEN_ADDRESS='127.0.0.1:8000'

# The resulting file URL will just concatenate this with the file name,
# so you might want to make sure there's a trailing slash.
export POMF_URL_PREFIX='https://example.com/'

# Where to put the files.
export POMF_UPLOAD_DIRECTORY='./files/'

pomf-server

Upload file

curl -i -sSF 'files[]=@waifu.png' 'https://127.0.0.1:8000/upload'

FAQs

Package last updated on 31 Oct 2019

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts