forked from bytedance/Elkeid
-
Notifications
You must be signed in to change notification settings - Fork 0
/
4f0b1b.43.min.js
1 lines (1 loc) · 13 KB
/
4f0b1b.43.min.js
1
(window.webpackJsonp=window.webpackJsonp||[]).push([[43,82,96],{117:function(e,t,r){"use strict";r.r(t);var n=r(5),a=r.n(n),o=r(4),i=r.n(o),u=r(210),c=r.n(u),l=r(0),p=r.n(l),s=r(86),m=r.n(s),b=r(568),d=(r(299),r(74)),f=r(75),v=(r(300),r(211)),y="/data00/webprojectdev/hids_open/src/components/common/type-select-input/index.tsx";function O(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function g(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?O(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):O(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var j=v.a.Option,w=function(e){var t,r,n=e.options,a=e.filter,o=e.onChange,i=e.style;return p.a.createElement(d.a,{style:g({width:360},i),value:null==a?void 0:a.input,onChange:function(e){o(g(g({},a),{},{input:e}))},suffix:p.a.createElement(f.a,{__source:{fileName:y,lineNumber:27,columnNumber:15}}),addBefore:p.a.createElement(v.a,{placeholder:"请选择",style:{width:90},value:null==a?void 0:a.type,onChange:function(e){o({type:e,input:""})},__source:{fileName:y,lineNumber:29,columnNumber:9}},n.map((function(e){return p.a.createElement(j,{value:e.value,key:e.value,__source:{fileName:y,lineNumber:38,columnNumber:13}},e.label)}))),placeholder:"请搜索".concat(null!==(t=null===(r=n.find((function(e){return e.value===(null==a?void 0:a.type)})))||void 0===r?void 0:r.label)&&void 0!==t?t:""),__source:{fileName:y,lineNumber:21,columnNumber:5}})},h=r(553),N=r(516),P=r.n(N),_="/data00/webprojectdev/hids_open/src/pages/host-list-detail/asset-fingerprint/common-finger-module/index.tsx",D=["typeInputFilter","onTypeInputFilterChange","options","data","updateTime"];function S(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function T(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?S(Object(r),!0).forEach((function(t){i()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):S(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}var x=m.a.bind(P.a);t.default=function(e){var t=e.typeInputFilter,r=e.onTypeInputFilterChange,n=e.options,o=e.data,i=e.updateTime,u=c()(e,D);return p.a.createElement("div",{className:x("container"),__source:{fileName:_,lineNumber:30,columnNumber:5}},p.a.createElement("div",{className:x("util"),__source:{fileName:_,lineNumber:31,columnNumber:7}},p.a.createElement(w,{options:n,filter:t,onChange:r,__source:{fileName:_,lineNumber:32,columnNumber:9}}),p.a.createElement("div",{__source:{fileName:_,lineNumber:37,columnNumber:9}},p.a.createElement("span",{className:x("update-time-title"),__source:{fileName:_,lineNumber:38,columnNumber:11}},"更新时间:"),p.a.createElement("span",{className:x("update-time"),__source:{fileName:_,lineNumber:39,columnNumber:11}},Object(h.a)(i)))),p.a.createElement(b.a,a()({},u,{rowKey:"index",style:{marginTop:14},data:null==o?void 0:o.map((function(e,t){return T(T({},e),{},{index:t})})),__source:{fileName:_,lineNumber:42,columnNumber:7}})))}},139:function(e,t,r){"use strict";r.r(t);var n=r(5),a=r.n(n),o=r(41),i=r.n(o),u=r(4),c=r.n(u),l=r(20),p=r.n(l),s=r(26),m=r.n(s),b=r(0),d=r.n(b),f=r(602),v=r(554),y=r.n(v),O=r(563),g=r(117),j=r(301),w=r(558),h="/data00/webprojectdev/hids_open/src/pages/host-list-detail/asset-fingerprint/software/index.tsx";function N(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function P(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?N(Object(r),!0).forEach((function(t){c()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):N(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.default=function(e){var t,r,n=e.tabTotalNum,o=e.onChangeTabTotalNum,u=Object(b.useState)({type:j.SoftwareSelectType.name,input:""}),l=p()(u,2),s=l[0],v=l[1],N=Object(b.useState)(),_=p()(N,2),D=_[0],S=_[1],T=null===(t=y.a.parse(location.search))||void 0===t?void 0:t.agentId;var x=Object(f.a)(function(){var e=i()(m.a.mark((function e(t){var r,a,i,u,l,p,b,d,f,v,y;return m.a.wrap((function(e){for(;;)switch(e.prev=e.next){case 0:if(r=t.current,a=t.pageSize,i=t.filters,!T){e.next=10;break}return e.next=4,Object(w.DescribeSoftwareFingerprint)({data:P(P({},(m=void 0,O=void 0,g=void 0,O=null==s?void 0:s.type,g=null==s?void 0:s.input,O&&g?(m={},c()(m,O,g),c()(m,"agent_id",T),m):{agent_id:T})),null!=i&&null!==(u=i.type)&&void 0!==u&&u.length?{type:null==i||null===(l=i.type)||void 0===l?void 0:l[0]}:{}),params:{page:r,page_size:a}});case 4:return f=e.sent,v=f.data,y=f.page_info,o(P(P({},n),{},{software:null!==(p=null==y?void 0:y.total)&&void 0!==p?p:0})),S(null==v?void 0:v.update_time),e.abrupt("return",{list:null!==(b=null==v?void 0:v.list)&&void 0!==b?b:[],total:null!==(d=null==y?void 0:y.total)&&void 0!==d?d:0});case 10:case"end":return e.stop()}var m,O,g}),e)})));return function(t){return e.apply(this,arguments)}}(),{debounceInterval:300,resetDeps:[s.input],auto:!0}),E=x.tableProps,I=x.filters,C=[{title:"软件名称",dataIndex:"name",width:"33%",render:function(e){return e?d.a.createElement(O.a,{content:e,__source:{fileName:h,lineNumber:82,columnNumber:39}}):"-"}},{title:"类型",dataIndex:"type",width:"33%",filterMultiple:!1,filters:[{text:w.SoftwareType.dpkg,value:w.SoftwareType.dpkg},{text:w.SoftwareType.pypi,value:w.SoftwareType.pypi},{text:w.SoftwareType.rpm,value:w.SoftwareType.rpm},{text:w.SoftwareType.jar,value:w.SoftwareType.jar}],filteredValue:null!==(r=null==I?void 0:I.type)&&void 0!==r?r:[],render:function(e){return e?d.a.createElement(O.a,{content:e,__source:{fileName:h,lineNumber:108,columnNumber:39}}):"-"}},{title:"版本",dataIndex:"version",width:"33%",render:function(e){return e?d.a.createElement(O.a,{content:e,__source:{fileName:h,lineNumber:114,columnNumber:39}}):"-"}}];return d.a.createElement(g.default,a()({},E,{updateTime:D,options:j.softwareSelectOptions,columns:C,typeInputFilter:s,onTypeInputFilterChange:function(e){v(e)},__source:{fileName:h,lineNumber:119,columnNumber:5}}))}},301:function(e,t,r){"use strict";var n;r.r(t),r.d(t,"CronSelectType",(function(){return n})),r.d(t,"cronSelectOptions",(function(){return o})),r.d(t,"PortSelectType",(function(){return a})),r.d(t,"portSelectOptions",(function(){return u})),r.d(t,"ProcessSelectType",(function(){return i})),r.d(t,"processSelectOptions",(function(){return l})),r.d(t,"ServiceSelectType",(function(){return c})),r.d(t,"serviceSelectOptions",(function(){return s})),r.d(t,"SoftwareSelectType",(function(){return p})),r.d(t,"softwareSelectOptions",(function(){return b})),r.d(t,"UserSelectType",(function(){return m})),r.d(t,"userSelectOptions",(function(){return d})),function(e){e.command="command",e.path="path",e.username="username"}(n||(n={}));var a,o=[{label:"任务命令",value:n.command},{label:"文件路径",value:n.path},{label:"用户名",value:n.username}];!function(e){e.sport="sport",e.sip="sip",e.pid="pid",e.comm="comm",e.cmdline="cmdline",e.uid="uid",e.username="username"}(a||(a={}));var i,u=[{label:"端口号",value:a.sport},{label:"监听IP",value:a.sip},{label:"进程ID",value:a.pid},{label:"进程名",value:a.comm},{label:"进程命令行",value:a.cmdline},{label:"用户ID",value:a.uid},{label:"用户名",value:a.username}];!function(e){e.pid="pid",e.comm="comm",e.cmdline="cmdline",e.exe="exe",e.uid="uid",e.username="username",e.ppid="ppid"}(i||(i={}));var c,l=[{label:"进程ID",value:i.pid},{label:"进程名",value:i.comm},{label:"进程命令行",value:i.cmdline},{label:"进程路径",value:i.exe},{label:"用户ID",value:i.uid},{label:"用户名",value:i.username},{label:"父进程ID",value:i.ppid}];!function(e){e.name="name",e.type="type"}(c||(c={}));var p,s=[{label:"服务名称",value:c.name},{label:"类型",value:c.type}];!function(e){e.name="name",e.version="version"}(p||(p={}));var m,b=[{label:"软件名称",value:p.name},{label:"版本",value:p.version}];!function(e){e.uid="uid",e.username="username",e.gid="gid",e.group_name="group_name"}(m||(m={}));var d=[{label:"用户ID",value:m.uid},{label:"用户名",value:m.username},{label:"用户组ID",value:m.gid},{label:"用户组名",value:m.group_name}]},516:function(e,t,r){e.exports={container:"container-9bfb104b19",util:"util-6f49c9e0b7","update-time-title":"update-time-title-53259fbb47","update-time":"update-time-70c96595af"}},553:function(e,t,r){"use strict";r.d(t,"a",(function(){return o}));var n=r(566),a=r.n(n);function o(e){var t=arguments.length>1&&void 0!==arguments[1]?arguments[1]:"YYYY-MM-DD HH:mm:ss";return e?a.a.unix(e).format(t):"-"}},558:function(e,t,r){"use strict";r.r(t),r.d(t,"PortType",(function(){return n})),r.d(t,"DescribePortFingerprint",(function(){return i})),r.d(t,"DescribeProcessFingerprint",(function(){return u})),r.d(t,"DescribeUserFingerprint",(function(){return c})),r.d(t,"DescribeCronFingerprint",(function(){return l})),r.d(t,"DescribeServiceFingerprint",(function(){return p})),r.d(t,"SoftwareType",(function(){return o})),r.d(t,"DescribeSoftwareFingerprint",(function(){return s}));var n,a=r(40);!function(e){e[e.TCP=6]="TCP",e[e.UDP=17]="UDP"}(n||(n={}));var o,i=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostPort",data:t,params:r},"获取端口资产指纹列表信息")},u=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostProcess",data:t,params:r},"获取进程资产指纹列表信息")},c=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostUser",data:t,params:r},"获取系统用户资产指纹列表信息")},l=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostCron",data:t,params:r},"获取定时任务资产指纹列表信息")},p=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostService",data:t,params:r},"获取系统服务资产指纹列表信息")};!function(e){e.dpkg="dpkg",e.rpm="rpm",e.pypi="pypi",e.jar="jar"}(o||(o={}));var s=function(e){var t=e.data,r=e.params;return Object(a.b)({method:"post",url:"/api/v6/asset-center/DescribeHostSoftware",data:t,params:r},"获取系统软件指纹列表信息")}},563:function(e,t,r){"use strict";r(302);var n=r(121),a=r(4),o=r.n(a),i=r(0),u=r.n(i),c="/data00/webprojectdev/hids_open/src/components/common/ellipsis-box/index.tsx";function l(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function p(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?l(Object(r),!0).forEach((function(t){o()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):l(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t=e.content,r=e.style;return u.a.createElement(n.a.Paragraph,{style:p({marginBottom:0},r),ellipsis:{rows:1,showTooltip:{type:"tooltip",props:{content:u.a.createElement("span",{style:{wordBreak:"break-all"},__source:{fileName:c,lineNumber:17,columnNumber:29}},t)}}},key:t,__source:{fileName:c,lineNumber:11,columnNumber:5}},t)}},568:function(e,t,r){"use strict";r(581);var n=r(582),a=r(5),o=r.n(a),i=r(4),u=r.n(i),c=r(210),l=r.n(c),p=r(0),s=r.n(p),m=["onChange","pagination"];function b(e,t){var r=Object.keys(e);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(e);t&&(n=n.filter((function(t){return Object.getOwnPropertyDescriptor(e,t).enumerable}))),r.push.apply(r,n)}return r}function d(e){for(var t=1;t<arguments.length;t++){var r=null!=arguments[t]?arguments[t]:{};t%2?b(Object(r),!0).forEach((function(t){u()(e,t,r[t])})):Object.getOwnPropertyDescriptors?Object.defineProperties(e,Object.getOwnPropertyDescriptors(r)):b(Object(r)).forEach((function(t){Object.defineProperty(e,t,Object.getOwnPropertyDescriptor(r,t))}))}return e}t.a=function(e){var t=e.onChange,r=e.pagination,a=l()(e,m);return s.a.createElement(n.a,o()({onChange:function(e,r,n,a){"filter"===a.action||"sort"===a.action?t(d(d({},e),{},{current:1}),r,n,a):t(e,r,n,a)},border:!1,pagination:(null==r?void 0:r.total)>10&&d(d({},r),{},{sizeCanChange:!0,sizeOptions:[10,20,50,100]})},a,{__source:{fileName:"/data00/webprojectdev/hids_open/src/components/common/table/index.tsx",lineNumber:6,columnNumber:5}}))}}}]);