<commit_before>id: Nmap - Test
version: -1
name: Nmap - Test
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: 0adcccad-7dea-4779-814a-ae5a49ee8a87
    type: start
    task:
      id: 0adcccad-7dea-4779-814a-ae5a49ee8a87
      version: -1
      name: ""
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "1"
    view: |-
      {
        "position": {
          "x": 265,
          "y": 50
        }
      }
  "1":
    id: "1"
    taskid: bfaa79f3-b5b3-4442-8fb0-a7d4b8baf613
    type: regular
    task:
      id: bfaa79f3-b5b3-4442-8fb0-a7d4b8baf613
      version: -1
      name: nmap-scan
      description: Scan targets with the given parameters
      script: nmap|||nmap-scan
      type: regular
      iscommand: true
      brand: nmap
    nexttasks:
      '#none#':
      - "2"
    scriptarguments:
      options: -sV
      targets: scanme.nmap.org
    view: |-
      {
        "position": {
          "x": 265,
          "y": 195
        }
      }
  "2":
    id: "2"
    taskid: ab16a6d9-8841-4682-871c-4ab26488514e
    type: condition
    task:
      id: ab16a6d9-8841-4682-871c-4ab26488514e
      version: -1
      name: Exists
      description: Check if a given value exists in the context. Will return 'no'
        for empty empty arrays. To be used mostly with DQ and selectors.
      scriptName: Exists
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      "no":
      - "4"
      "yes":
      - "3"
    scriptarguments:
      value: ${NMAP.Scan.Hosts.Services.Port(val==22)}
    view: |-
      {
        "position": {
          "x": 265,
          "y": 370
        }
      }
  "3":
    id: "3"
    taskid: cd018324-9ab4-448c-8a62-e8fc66621456
    type: regular
    task:
      id: cd018324-9ab4-448c-8a62-e8fc66621456
      version: -1
      name: Close investigation
      scriptName: CloseInvestigation
      type: regular
      iscommand: false
      brand: ""
    scriptarguments:
      notes: Found the service
      reason: All good
    view: |-
      {
        "position": {
          "x": 50,
          "y": 545
        }
      }
  "4":
    id: "4"
    taskid: ab149f17-3ed3-4265-81b4-2383ba8f1e90
    type: regular
    task:
      id: ab149f17-3ed3-4265-81b4-2383ba8f1e90
      version: -1
      name: Oops, problem
      scriptName: Print
      type: regular
      iscommand: false
      brand: ""
    scriptarguments:
      value: Service not found
    view: |-
      {
        "position": {
          "x": 480,
          "y": 545
        }
      }
view: |-
  {
    "linkLabelsPosition": {},
    "paper": {
      "dimensions": {
        "height": 590,
        "width": 810,
        "x": 50,
        "y": 50
      }
    }
  }
inputs: []<commit_msg>fixed -sn flag support<commit_after>id: Nmap - Test
version: -1
name: Nmap - Test
starttaskid: "0"
tasks:
  "0":
    id: "0"
    taskid: bceb8372-36f8-473d-8bd5-d850d9e1da5b
    type: start
    task:
      id: bceb8372-36f8-473d-8bd5-d850d9e1da5b
      version: -1
      name: ""
      iscommand: false
      brand: ""
    nexttasks:
      '#none#':
      - "1"
      - "5"
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 50
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "1":
    id: "1"
    taskid: 8735f586-8871-4f39-8ff5-a1d766fa8b6c
    type: regular
    task:
      id: 8735f586-8871-4f39-8ff5-a1d766fa8b6c
      version: -1
      name: nmap-scan
      description: Scan targets with the given parameters
      script: nmap|||nmap-scan
      type: regular
      iscommand: true
      brand: nmap
    nexttasks:
      '#none#':
      - "2"
    scriptarguments:
      options:
        simple: -sV
      targets:
        simple: scanme.nmap.org
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 195
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "2":
    id: "2"
    taskid: 863dd4f6-35d6-4ef6-8986-86520b0ddc2e
    type: condition
    task:
      id: 863dd4f6-35d6-4ef6-8986-86520b0ddc2e
      version: -1
      name: Exists
      description: Check if a given value exists in the context. Will return 'no'
        for empty empty arrays. To be used mostly with DQ and selectors.
      scriptName: Exists
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      "no":
      - "4"
      "yes":
      - "3"
    scriptarguments:
      value:
        simple: ${NMAP.Scan.Hosts.Services.Port(val==22)}
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 265,
          "y": 375
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "3":
    id: "3"
    taskid: 535a46d7-43ac-44c3-8f7d-23e137e4c453
    type: regular
    task:
      id: 535a46d7-43ac-44c3-8f7d-23e137e4c453
      version: -1
      name: Close investigation
      scriptName: CloseInvestigation
      type: regular
      iscommand: false
      brand: ""
    scriptarguments:
      notes:
        simple: Found the service
      reason:
        simple: All good
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 170,
          "y": 765
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "4":
    id: "4"
    taskid: 18e87031-813b-48e3-8add-5025d348fae0
    type: regular
    task:
      id: 18e87031-813b-48e3-8add-5025d348fae0
      version: -1
      name: Oops, problem
      scriptName: Print
      type: regular
      iscommand: false
      brand: ""
    scriptarguments:
      value:
        simple: Service not found
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 970,
          "y": 660
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "5":
    id: "5"
    taskid: 45144983-0008-465e-8f48-6764e4f6d0c0
    type: regular
    task:
      id: 45144983-0008-465e-8f48-6764e4f6d0c0
      version: -1
      name: nmap-scan
      description: Scan targets with the given parameters
      script: '|||nmap-scan'
      type: regular
      iscommand: true
      brand: ""
    nexttasks:
      '#none#':
      - "6"
    scriptarguments:
      options:
        simple: -sn
      targets:
        simple: 8.8.8.8
    separatecontext: false
    view: |-
      {
        "position": {
          "x": 970,
          "y": 195
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
  "6":
    id: "6"
    taskid: 2a5d4701-319b-446c-8282-a5df519f46a4
    type: condition
    task:
      id: 2a5d4701-319b-446c-8282-a5df519f46a4
      version: -1
      name: check Hostname
      description: Check whether the values provided in arguments are equal. If either
        of the arguments are missing, no is returned.
      type: condition
      iscommand: false
      brand: ""
    nexttasks:
      '#default#':
      - "4"
      "yes":
      - "3"
    separatecontext: false
    conditions:
    - label: "yes"
      condition:
      - - operator: isEqualString
          left:
            value:
              complex:
                root: NMAP
                filters:
                - - operator: isEqualString
                    left:
                      value:
                        simple: NMAP.Scan.Hosts.Address
                      iscontext: true
                    right:
                      value:
                        simple: 8.8.8.8
                accessor: Scan.Hosts.Hostname
            iscontext: true
          right:
            value:
              simple: dns.google
    view: |-
      {
        "position": {
          "x": 970,
          "y": 375
        }
      }
    note: false
    timertriggers: []
    ignoreworker: false
view: |-
  {
    "linkLabelsPosition": {
      "2_4_no": 0.26,
      "6_3_yes": 0.63
    },
    "paper": {
      "dimensions": {
        "height": 810,
        "width": 1180,
        "x": 170,
        "y": 50
      }
    }
  }
inputs: []
outputs: []
{'fraction_non_alphanumeric': 0.1133956386292835, 'fraction_numerical': 0.08411214953271028, 'mean_word_length': 1.4779252855819698, 'pattern_counts': {'":': 69, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 2, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '6870379', 'n_tokens_mistral': 3187, 'n_tokens_neox': 2863, 'n_words': 633}