evilsocket/shellz

flag provided but not defined: -tunnel

herrbischoff opened this issue · 3 comments

Following the information in the Readme, when I try to start a SSH tunnel via

shellz -tunnel -on my.tunnel

I always get the error/warning:

flag provided but not defined: -tunnel

This happens with the Homebrew version as well as the release downloaded from here. I'm using macOS 10.14. Running commands like

shellz -run id

works as expected. The SSH tunnel flag is not available, so probably the functionality is not there. Can you shed some light on why that is?

Make sure you're using the latest version

I see. Well, with that attitude towards reported issues, I'm right back out of the door.

$ shellz

  ██████  ██░ ██ ▓█████  ██▓     ██▓    ▒███████▒
▒██    ▒ ▓██░ ██▒▓█   ▀ ▓██▒    ▓██▒    ▒ ▒ ▒ ▄▀░
░ ▓██▄   ▒██▀▀██░▒███   ▒██░    ▒██░    ░ ▒ ▄▀▒░ 
  ▒   ██▒░▓█ ░██ ▒▓█  ▄ ▒██░    ▒██░      ▄▀▒   ░
▒██████▒▒░▓█▒░██▓░▒████▒░██████▒░██████▒▒███████▒
▒ ▒▓▒ ▒ ░ ▒ ░░▒░▒░░ ▒░ ░░ ▒░▓  ░░ ▒░▓  ░░▒▒ ▓░▒░▒
░ ░▒  ░ ░ ▒ ░▒░ ░ ░ ░  ░░ ░ ▒  ░░ ░ ▒  ░░░▒ ▒ ░ ▒
░  ░  ░   ░  ░░ ░   ░     ░ ░     ░ ░   ░ ░ ░ ░ ░
      ░   ░  ░  ░   ░  ░    ░  ░    ░  ░  ░ ░    
                                        ░  v1.4.0
Made with ❤  by Simone 'evilsocket' Margaritelli

inf none of the -run, -test or -list parameters have been specified

Usage:

  -connection-timeout duration
        Connection timeout. (default 5s)
  -disable string
        Disable the specified shells.
  -enable string
        Enable the specified shells.
  -force
        Include disabled shells in the selection.
  -list
        List available shells and exit.
  -log-file string
        Log messages on this file instead of the standard output.
  -log-level int
        Set log level. (default 1)
  -no-banner
        Don't print the initial banner.
  -no-effects
        Disable text effects and colors.
  -on string
        Comma separated list of shell names to select or * for all. (default "all")
  -path string
        Base path of the shellz json files. (default "~/.shellz")
  -read-timeout duration
        Read timeout. (default 500ms)
  -run string
        Command to run on the selected shells.
  -stats
        Print some statistics after the -run and -test commands.
  -test
        Attempt to run a test command on the selected shells and disable the ones who failed.
  -to string
        If filled, commands output will be saved to this file instead of being printed on the standard output.
  -write-timeout duration
        Write timeout. (default 500ms)

Examples:

  # list all available identities and shells
  shellz -list

  # list all available identities and shells of the group web
  shellz -list -on web

  # enable the shells named machineA and machineB
  shellz -enable "machineA, machineB"

  # disable the shell named machineA (commands won't be executed on it)
  shellz -disable machineA

  # test all shells and disable the not responding ones
  shellz -test

  # test two shells and disable them if they don't respond within 1 second
  shellz -test -on "machineA, machineB" -connection-timeout 1s

  # run the command 'id' on each shell
  shellz -run id

  # run the command 'id' on each shell and print some statistics once finished
  shellz -run id -stats

  # run the command 'id' on a single shell named 'machineA'
  shellz -run id -on machineA

  # run the command 'id' on machineA and machineB
  shellz -run id -on 'machineA, machineB'

  # run the command 'uptime' on every shell and append all outputs to the 'all.txt' file
  shellz -run uptime -to all.txt

  # run the command 'uptime' on every shell and save each outputs to a different file using per-shell data.
  shellz -run uptime -to "{{.Identity.Username}}_{{.Name}}.txt"

with your attitude for properly reporting bugs with enough details to actual debug them, you're welcome to leave.

schermata da 2018-11-02 13-04-05