-
Notifications
You must be signed in to change notification settings - Fork 74
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
Showing
5 changed files
with
110 additions
and
2 deletions.
There are no files selected for viewing
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
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
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
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,50 @@ | ||
commonfields: | ||
id: PowerShell Remoting | ||
version: 11 | ||
name: PowerShell Remoting | ||
display: PowerShell Remoting | ||
category: Utilities | ||
description: |- | ||
Use this integration in order to remote into another machine (windows/linux) using SSH, requires PowerShell core on both ends. | ||
Installation steps needed on target machine can be found in Microsoft's official documentation: | ||
https://docs.microsoft.com/en-us/powershell/scripting/learn/remoting/ssh-remoting-in-powershell-core?view=powershell-6 | ||
configuration: | ||
- display: Domain/IP | ||
name: hostname | ||
defaultvalue: subdomain.example.com | ||
type: 0 | ||
required: true | ||
additionalinfo: Domain or IP of target machine | ||
- display: Username | ||
name: credentials | ||
defaultvalue: "" | ||
type: 9 | ||
required: true | ||
additionalinfo: User name in target machine | ||
script: | ||
script: '' | ||
type: powershell | ||
commands: | ||
- name: pwsh-remoting-query | ||
arguments: | ||
- name: command | ||
required: true | ||
description: PowerShell command (can be single or multiple in order of execution) | ||
to run on the target machine | ||
isArray: true | ||
outputs: | ||
- contextPath: PowerShellSSH.Query | ||
description: Object that contains data about the response of a command run in | ||
target machine | ||
type: unknown | ||
- contextPath: PowerShellSSH.Query.Result | ||
description: The result of the command run from target machine | ||
type: string | ||
- contextPath: PowerShellSSH.Query.Command | ||
description: The command sent to target machine, used as ID of that query | ||
type: string | ||
description: Remote to target machine which has powershell core installed on it | ||
and is set up for remoting | ||
execution: true | ||
dockerimage: demisto/powershell:6.2.3.5563 | ||
runonce: false |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,31 @@ | ||
args: | ||
- default: false | ||
description: JSON string to verfiy. | ||
isArray: false | ||
name: json | ||
required: true | ||
secret: false | ||
- default: false | ||
description: Optional schema against which to validate the JSON input. | ||
isArray: false | ||
name: schema | ||
required: false | ||
secret: false | ||
comment: Verifies if the supplied JSON string is valid and optionally verifies against | ||
a provided schema. The script utilizes Powershell's Test-JSON cmdlet. | ||
commonfields: | ||
id: VerifyJSON | ||
version: 10 | ||
enabled: false | ||
name: VerifyJSON | ||
script: '-' | ||
system: false | ||
outputs: | ||
- contextPath: VerifyJSON.Result | ||
description: Whether the passed JSON was verified. | ||
type: boolean | ||
tags: | ||
- JSON | ||
- Utility | ||
type: powershell | ||
dockerimage: demisto/powershell:6.2.4.6166 |