Skip to content
Merged
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 2 additions & 1 deletion shuffle-tools/1.2.0/src/app.py
Original file line number Diff line number Diff line change
Expand Up @@ -2632,10 +2632,11 @@ def run_ssh_command(self, host, port, user_name, private_key_file_id, password,

try:
stdin, stdout, stderr = ssh_client.exec_command(str(command))

except Exception as e:
return {"success":"false","message":str(e)}

return {"success":"true","output": stdout.read().decode(errors='ignore')}
return {"success":"true","output": stdout.read().decode(errors='ignore'), "error_logs": stderr.read().decode(errors='ignore')}

def cleanup_ioc_data(self, input_data):
# Remove unecessary parts like { and }, quotes etc
Expand Down
Loading