gget

command module
v0.0.0-...-4c8f860 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Sep 12, 2023 License: MIT Imports: 24 Imported by: 0

README

gget - git-dumper sandbox

Creates a Docker Python image that installs git-dumper and then runs a container with git-dumper -u url -o outputDirectory

Why?

If the repository you are downloading is controlled by an attacker, this could lead to remote code execution on your machine. So this creates a sandboxed environment for safe use

prerequisites

  • Docker Daemon CLI

How to use

$ go run main.go -u http://example.com/.git -o output/dir

OR build the program

Notes on building

The build does embed a Tarfile into the program so any changes to the Dockerfile you should run

$ tar -cvf Dockerfile.tar Dockerfile

This is because the docker SDK expects a tarfile because just using a regular Dockerfile you get an EOF error

Documentation

The Go Gopher

There is no documentation for this package.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL