contentitemexportablefields: contentitemfields: propagationLabels: - all id: Hurukai - Get Persistence List inputs: - description: '' key: agentid playbookInputQuery: required: true value: {} name: Hurukai - Get Persistence List outputs: [] starttaskid: '0' tasks: '0': id: '0' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false nexttasks: '#none#': - '9' note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: '' id: 5fbf2049-ed9b-40bc-838b-ac7c2b9a9e01 iscommand: false name: '' version: -1 description: '' taskid: 5fbf2049-ed9b-40bc-838b-ac7c2b9a9e01 timertriggers: [] type: start view: |- { "position": { "x": 600, "y": -1020 } } '3': id: '3' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false loop: exitCondition: '' iscommand: false max: 0 wait: 1 nexttasks: '#none#': - '7' note: false quietmode: 0 scriptarguments: Ids: simple: ${Harfanglab.Job.ID} Interval: simple: '1' PollingCommandArgName: simple: ids PollingCommandName: simple: harfanglab-job-info Timeout: simple: '60' dt: simple: Harfanglab.Job.Info(val.Status !== 'finished').ID separatecontext: true skipunavailable: false task: brand: '' description: |- Use this playbook as a sub-playbook to block execution of the master playbook until a remote action is complete. This playbook implements polling by continuously running the command in Step \#2 until the operation completes. The remote action should have the following structure: 1. Initiate the operation. 2. Poll to check if the operation completed. 3. (optional) Get the results of the operation. id: 980eecb7-f08c-408c-87ef-b1b2133cacc8 iscommand: false name: GenericPolling playbookId: GenericPolling type: playbook version: -1 taskid: 980eecb7-f08c-408c-87ef-b1b2133cacc8 timertriggers: [] type: playbook view: |- { "position": { "x": 700, "y": -260 } } '5': id: '5' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: '' id: 2b048ca6-6aa6-4e04-8226-fb2cec37af63 iscommand: false name: Done type: title version: -1 description: '' taskid: 2b048ca6-6aa6-4e04-8226-fb2cec37af63 timertriggers: [] type: title view: |- { "position": { "x": 550, "y": 100 } } '6': id: '6' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false nexttasks: '#none#': - '3' note: false quietmode: 0 scriptarguments: agent_id: simple: ${inputs.agentid} separatecontext: false skipunavailable: false task: brand: Hurukai description: Start a job to get the list of persistence items from a host (Linux) id: 819dc183-ffd4-442d-832b-a21616503929 iscommand: true name: harfanglab-job-persistencelist script: Hurukai|||harfanglab-job-persistencelist type: regular version: -1 taskid: 819dc183-ffd4-442d-832b-a21616503929 timertriggers: [] type: regular view: |- { "position": { "x": 700, "y": -450 } } '7': evidencedata: customfields: {} description: simple: List of Linux persistence items id: '7' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false nexttasks: '#none#': - '5' note: false quietmode: 0 scriptarguments: job_id: simple: ${Harfanglab.Job.ID} separatecontext: false skipunavailable: false task: brand: Hurukai description: Get a hostname's persistence items from job results id: c7f0b115-d2b7-4a78-856f-948710ed89a6 iscommand: true name: harfanglab-result-persistencelist script: Hurukai|||harfanglab-result-persistencelist type: regular version: -1 taskid: c7f0b115-d2b7-4a78-856f-948710ed89a6 timertriggers: [] type: regular view: |- { "position": { "x": 700, "y": -90 } } '8': conditions: - condition: - - left: iscontext: true value: complex: accessor: Agent root: Harfanglab transformers: - args: field: value: simple: ostype operator: getField operator: isEqualString right: value: simple: linux label: linux id: '8' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false nexttasks: '#default#': - '5' linux: - '6' note: false quietmode: 0 separatecontext: false skipunavailable: false task: brand: '' id: ba182dbc-2ee2-4204-8df5-72bd217408eb iscommand: false name: Which platform is the agent running on ? type: condition version: -1 description: '' taskid: ba182dbc-2ee2-4204-8df5-72bd217408eb timertriggers: [] type: condition view: |- { "position": { "x": 600, "y": -670 } } '9': id: '9' ignoreworker: false isautoswitchedtoquietmode: false isoversize: false nexttasks: '#none#': - '8' note: false quietmode: 0 scriptarguments: agent_id: simple: ${inputs.agentid} separatecontext: false skipunavailable: false task: brand: Hurukai description: Get endpoint information from agent_id id: 16414574-7051-472a-8346-07596c327027 iscommand: true name: harfanglab-get-endpoint-info script: Hurukai|||harfanglab-get-endpoint-info type: regular version: -1 taskid: 16414574-7051-472a-8346-07596c327027 timertriggers: [] type: regular view: |- { "position": { "x": 600, "y": -870 } } version: -1 view: |- { "linkLabelsPosition": {}, "paper": { "dimensions": { "height": 1185, "width": 530, "x": 550, "y": -1020 } } } tests: - No tests (auto formatted) fromversion: 6.2.0 description: Get the list of persistence means