/* * @Author: 曹文丽 caowenli@yuan-info.com * @Date: 2023-09-18 14:42:27 * @LastEditors: 曹文丽 caowenli@yuan-info.com * @LastEditTime: 2023-09-18 16:50:37 * @FilePath: \yuan-asset-module-browser\src\views\riskDetect\riskIdentify\addTask\hostScan.ts * @Description: 这是默认设置,请设置`customMade`, 打开koroFileHeader查看配置 进行设置: https://github.com/OBKoro1/koro1FileHeader/wiki/%E9%85%8D%E7%BD%AE */ import { reactive } from 'vue'; export const column = [ { prop: 'ip', label: 'IP地址', minWidth: '80px', }, { prop: 'protocol', label: '登录协议', minWidth: '80px', }, { prop: 'port', label: '登录端口', minWidth: '80px', }, { prop: 'username', label: '用户名', minWidth: '80px', }, { prop: 'hidePwd', label: '密码', minWidth: '80px', }, { prop: 'oparation', label: '操作', width: '140px', align: 'center', buttons: [ { title: '编辑', eventName: 'editEvent', }, { title: '删除', eventName: 'deleteEvent', }, ], }, ]; export const hostScanColumn = reactive([ { title: '基本信息', }, { key: 'name', type: 'text', label: '任务名称', clearable: true, rules: true, }, { key: 'name', type: 'radio', label: '目标地址', options: [ { key: '自定义', value: '', }, { key: '资产库', value: '', }, ], clearable: true, rules: true, }, { key: 'textarea', type: 'textarea', label: ' ', clearable: true, },{ slotName:'yaTargetAddress' }, { key: '', type: 'select', options: [], label: '所属部门', clearable: true, }, { key: '', type: 'select', options: [], label: '网络域', clearable: true, }, { key: '', type: 'select', options: [], label: '扫描引擎', clearable: true, }, { key: 'type', type: 'select', label: '执行方式', options: [], clearable: true, slotName: 'carryOutType', rules: true, }, { key: '', type: 'select', options: [], label: '扫描策略', clearable: true, rules: true, }, { key: 'weakPassEnable', label: '口令猜测', slotName: 'weakGuess', }, { key: 'generateReportEnable', label: '仅生成扫描报告', slotName: 'generateReport', }, { key: 'loginCheckEnable', label: '登录检查', slotName: 'loginCheck', }, { key: 'loginCheckConfigConfigList', slotName: 'loginCheckTable', }, { title: '高级设置', }, { key: '', type: 'select', options: [], label: '扫描模式', clearable: true, rules: true, }, { key: 'scanDepth', type: 'select', label: '扫描深度', clearable: true, options: [], tooltip: '值越大,插件获取的信息可能就越多,但是扫描时间就会越长', rules: true, }, { key: 'plugTimeout', type: 'input', label: '插件超时限制', isType: 'number', clearable: true, tooltip: '单个插件在指定时间内如果未正常结束将会被调入引擎被终止,(单位:s)', rules: [{ pattern: '^(?:[1-9]|[1-9]\\d|1\\d{2}|300)$', message: '范围在1-300', trigger: 'blur' }], }, { key: 'socketTimeout', type: 'input', label: 'Socket超时限制', isType: 'number', clearable: true, rules: [{ pattern: '^(?:[1-9]|[1-9]\\d|1\\d{2}|60)$', message: '范围在1-60', trigger: 'blur' }], value: 5, tooltip: '从网络层读数据时等待的最大超时值.局域网建议5秒,ADSL建议15秒,此选项对扫描速度和准确度有较大影响,(单位:s)', },{ key: 'opensshRemoteEnable', label: 'OpenSSH远程版本扫描', type: 'switch', tooltip: '启用,表示对OpenSSH进行远程版本扫描;不启用,表示对OpenSSH不进行远程版本扫描', }, { key: 'ntpRemoteEnable', label: 'NTP远程版本扫描', type: 'switch', tooltip: '启用,表示对NTP进行远程版本扫描;不启用,表示对NTP不进行远程版本扫描', }, ]);