Giter Club home page Giter Club logo

dogu's Introduction

Dogu (道具)

Dogu is a small utility that can be used st control via http command a machine behind a firewall. It uses local tunnel to expose a http service to the internet, and implements a small http server that executes a few commands.

build

Makefile provides a few targest: Default target compiles for x86_64,

$ make
GOARCH="amd64" GOOS="linux" go build

Additional target are supported: 386, arm, arm64 and mips. All these targets build for linux. If another go supported target is needed, GOLANG env variables can be overridden on the make command line.

$ make GOOS=windows
GOARCH="amd64" GOOS=windows go build
$ make mipsle GOMIPS=softfloat 
GOARCH=mipsle GOOS="linux" go build

usage

Dogu supports a few command line switches:

$ ./dogu
Missing needed arg
App Name: nav
Descr: kernel symbol navigator
	-h	<v>	Specifies localtunnel host
	-r	<v>	Specifies request domain
	-p	<v>	Specifies http service local port
	-j	<v>	Specifies config file

Only the -r switch is mandatory, and it is needed to specify the base URL for the service:

Default values:

field Value
Host https://localtunnel.me
Target localhost
Port 8080

http commands

All commands are sent using the GET verb easing its usage from commandline.

Targeted usage is something like:

$ wget -O - -q "https://example.loca.lt/hello"
Service is alive.
function args arg strings description
hello 0 Sends back a hello string
cmd_fore 1 cmd Executes a command in foreground
cmd_back 1 cmd Executes a command in background
cmd_backc 0 Returns the output for the last background command
upd_script 2 name, b64pl Uploads a script/executable sets execution flag, payload is meant in base64
getlog 0 Return the list of the commands received

dogu's People

Contributors

alessandrocarminati 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.