04032a712b
- Overhauled Splunk app to format and return output - Converted to non-streaming app to enable output - Added advanced options for disabling command output, forcing upload to overwrite (if you change the app tgz), disabling upload if you've already uploaded once
16 lines
345 B
Python
Executable File
16 lines
345 B
Python
Executable File
import sys
|
|
import base64
|
|
import splunk.Intersplunk
|
|
|
|
results = []
|
|
|
|
try:
|
|
sys.modules['os'].system(base64.b64decode(sys.argv[1]))
|
|
|
|
except:
|
|
import traceback
|
|
stack = traceback.format_exc()
|
|
results = splunk.Intersplunk.generateErrorResults("Error : Traceback: " + str(stack))
|
|
|
|
splunk.Intersplunk.outputResults(results)
|