TCP Port Scan

Parameters

NameTypeDescriptionValue
tool_idIntegerThe id of this tool70
targetStringThe IP address or hostname that will be scanned
do_service_detectStringDetect service version (optional)- on (default)
- off
do_os_detectStringDetect operating system (optional)- on
- off (default)
do_tracerouteStringDo traceroute (optional)- on
- off (default)
check_aliveStringUse host discovery to check if target is alive (optional)- on (default)
- off
port_typeStringPort type- common_ports (default)
- port_range
- port_list
commonmsStringType of common ports. Used when port_type is set to common_ports- Top 10 ports
- Top 100 ports (default)
- Top 1000 ports
- Top 5000 ports
start_portIntegerStart port used when port_type is set to port_range
end_portIntegerEnd port used when port_type is set to port_range
list_of_portsStringComma separated list of ports. Used when port_type is set to port_listExample: 22,80,443

Start scan examples

{
  "op": "start_scan",
  "tool_id": 70,
  "target": "demo.pentest-tools.com",
  "tool_params": {
    "do_service_detect": "off",
    "do_os_detect": "on",
    "do_traceroute": "on",
    "check_alive": "on",
    "port_type": "port_list",
    "list_of_ports": "22,80,443"
  }
}
{
  "op": "start_scan_by_targetid",
  "tool_id": 70,
  "target_id": 89237845,
  "tool_params": {
    "do_service_detect": "on",
    "do_os_detect": "on",
    "do_traceroute": "off",
    "check_alive": "on",
    "port_type": "port_range",
    "start_port": 1,
    "end_port": 65535
  }
}