mirror of
https://github.com/Li4n0/revsuit.git
synced 2026-09-21 22:30:46 +08:00
1 line
14 KiB
JavaScript
1 line
14 KiB
JavaScript
(window["webpackJsonp"]=window["webpackJsonp"]||[]).push([["chunk-27186dd0"],{"057f":function(t,e,r){var n=r("fc6a"),o=r("241c").f,a={}.toString,i="object"==typeof window&&window&&Object.getOwnPropertyNames?Object.getOwnPropertyNames(window):[],u=function(t){try{return o(t)}catch(e){return i.slice()}};t.exports.f=function(t){return i&&"[object Window]"==a.call(t)?u(t):o(n(t))}},"159b":function(t,e,r){var n=r("da84"),o=r("fdbc"),a=r("17c2"),i=r("9112");for(var u in o){var c=n[u],f=c&&c.prototype;if(f&&f.forEach!==a)try{i(f,"forEach",a)}catch(l){f.forEach=a}}},"17c2":function(t,e,r){"use strict";var n=r("b727").forEach,o=r("a640"),a=o("forEach");t.exports=a?[].forEach:function(t){return n(this,t,arguments.length>1?arguments[1]:void 0)}},2084:function(t,e,r){"use strict";var n=function(){var t=this,e=t.$createElement,r=t._self._c||e;return r("div",[r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{span:24}},[r("a-form-model-item",{attrs:{label:"Name",rules:t.rules.name,prop:"name"}},[r("a-input",{attrs:{placeholder:"Please enter rule name",readOnly:t.readOnly},model:{value:t.form.name,callback:function(e){t.$set(t.form,"name",e)},expression:"form.name"}})],1)],1)],1),r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{span:24}},[r("a-form-model-item",{attrs:{rules:t.rules.flagFormat,prop:"flag_format"}},[r("span",{attrs:{slot:"label"},slot:"label"},[t._v(" Flag Format "),r("a-tooltip",{attrs:{title:"Basic usage:\n 1. Only when the request's "+t.flagField+" contains content that satisfies the flag format, the request will be captured.\n 2. Use regular expression syntax.\n 3. The character '*' means to capture all requests.\n Advanced usage:\n 1. When the regex uses grouping without group name, the platform will only notify the user or push to the client when the first group appears for the first time.\n 2. When the regex uses grouping with group name, you can get these submatches through template variables and use them in other fields of the rule."}},[r("a-icon",{attrs:{type:"question-circle-o"}})],1)],1),r("a-input",{staticStyle:{width:"100%"},attrs:{placeholder:"Please enter flag format",readOnly:t.readOnly},model:{value:t.form.flag_format,callback:function(e){t.$set(t.form,"flag_format",e)},expression:"form.flag_format"}})],1)],1)],1),r("a-row",{attrs:{gutter:24}},[r("a-col",{attrs:{span:24}},[r("a-form-model-item",{attrs:{prop:"rank"}},[r("span",{attrs:{slot:"label"},slot:"label"},[t._v(" Rank "),r("a-tooltip",{attrs:{title:"When request match multiple rules, high-rank rules will be matched first"}},[r("a-icon",{attrs:{type:"question-circle-o"}})],1)],1),r("a-input-number",{directives:[{name:"decorator",rawName:"v-decorator",value:["rank"],expression:"['rank']"}],staticStyle:{width:"100%"},attrs:{disabled:t.readOnly,placeholder:"0"},model:{value:t.form.rank,callback:function(e){t.$set(t.form,"rank",e)},expression:"form.rank"}})],1)],1)],1),r("a-row",{attrs:{gutter:16}},[r("a-col",{attrs:{span:12}},[r("a-form-model-item",[r("div",{staticClass:"ant-form-item-label"},[r("label",{attrs:{for:"push-to-client"}},[t._v("Push to Client "),r("a-tooltip",{attrs:{placement:"topLeft",title:"Whether push to client when capture flag with this rule."}},[r("a-icon",{attrs:{type:"question-circle"}})],1)],1)]),r("a-switch",{attrs:{id:"push-to-client",disabled:t.readOnly},model:{value:t.form.push_to_client,callback:function(e){t.$set(t.form,"push_to_client",e)},expression:"form.push_to_client"}})],1)],1),r("a-col",{attrs:{span:12}},[r("a-form-model-item",[r("div",{staticClass:"ant-form-item-label"},[r("label",{attrs:{for:"notice"}},[t._v("Notice "),r("a-tooltip",{attrs:{placement:"topLeft",title:"Whether notice with bot when capture flag with this rule."}},[r("a-icon",{attrs:{type:"question-circle"}})],1)],1)]),r("a-switch",{attrs:{id:"notice",disabled:t.readOnly},model:{value:t.form.notice,callback:function(e){t.$set(t.form,"notice",e)},expression:"form.notice"}})],1)],1)],1)],1)},o=[],a={name:"BasicRule",data:function(){return{rules:{name:[{required:!0,message:"Please input rule name",trigger:"blur"}],flagFormat:[{required:!0,message:"Please input flag format",trigger:"blur"}]}}},props:["form","readOnly","flagField"]},i=a,u=r("2877"),c=Object(u["a"])(i,n,o,!1,null,"a62f3176",null);e["a"]=c.exports},"34c6":function(t,e,r){"use strict";r.d(e,"i",(function(){return o})),r.d(e,"o",(function(){return a})),r.d(e,"c",(function(){return i})),r.d(e,"g",(function(){return u})),r.d(e,"m",(function(){return c})),r.d(e,"a",(function(){return f})),r.d(e,"k",(function(){return l})),r.d(e,"q",(function(){return s})),r.d(e,"e",(function(){return d})),r.d(e,"l",(function(){return p})),r.d(e,"r",(function(){return m})),r.d(e,"f",(function(){return h})),r.d(e,"j",(function(){return b})),r.d(e,"p",(function(){return g})),r.d(e,"d",(function(){return y})),r.d(e,"h",(function(){return v})),r.d(e,"n",(function(){return O})),r.d(e,"b",(function(){return w}));var n=r("365c");function o(t){return Object(n["a"])({url:"/rule/http",params:t,method:"get"})}function a(t){return Object(n["a"])({url:"/rule/http",data:t,method:"post"})}function i(t){return Object(n["a"])({url:"/rule/http",data:t,method:"delete"})}function u(t){return Object(n["a"])({url:"/rule/dns",params:t,method:"get"})}function c(t){return Object(n["a"])({url:"/rule/dns",data:t,method:"post"})}function f(t){return Object(n["a"])({url:"/rule/dns",data:t,method:"delete"})}function l(t){return Object(n["a"])({url:"/rule/mysql",params:t,method:"get"})}function s(t){return Object(n["a"])({url:"/rule/mysql",data:t,method:"post"})}function d(t){return Object(n["a"])({url:"/rule/mysql",data:t,method:"delete"})}function p(t){return Object(n["a"])({url:"/rule/rmi",params:t,method:"get"})}function m(t){return Object(n["a"])({url:"/rule/rmi",data:t,method:"post"})}function h(t){return Object(n["a"])({url:"/rule/rmi",data:t,method:"delete"})}function b(t){return Object(n["a"])({url:"/rule/ldap",params:t,method:"get"})}function g(t){return Object(n["a"])({url:"/rule/ldap",data:t,method:"post"})}function y(t){return Object(n["a"])({url:"/rule/ldap",data:t,method:"delete"})}function v(t){return Object(n["a"])({url:"/rule/ftp",params:t,method:"get"})}function O(t){return Object(n["a"])({url:"/rule/ftp",data:t,method:"post"})}function w(t){return Object(n["a"])({url:"/rule/ftp",data:t,method:"delete"})}},"4de4":function(t,e,r){"use strict";var n=r("23e7"),o=r("b727").filter,a=r("1dde"),i=a("filter");n({target:"Array",proto:!0,forced:!i},{filter:function(t){return o(this,t,arguments.length>1?arguments[1]:void 0)}})},5530:function(t,e,r){"use strict";r.d(e,"a",(function(){return a}));r("b64b"),r("a4d3"),r("4de4"),r("e439"),r("159b"),r("dbb4");function n(t,e,r){return e in t?Object.defineProperty(t,e,{value:r,enumerable:!0,configurable:!0,writable:!0}):t[e]=r,t}function o(t,e){var r=Object.keys(t);if(Object.getOwnPropertySymbols){var n=Object.getOwnPropertySymbols(t);e&&(n=n.filter((function(e){return Object.getOwnPropertyDescriptor(t,e).enumerable}))),r.push.apply(r,n)}return r}function a(t){for(var e=1;e<arguments.length;e++){var r=null!=arguments[e]?arguments[e]:{};e%2?o(Object(r),!0).forEach((function(e){n(t,e,r[e])})):Object.getOwnPropertyDescriptors?Object.defineProperties(t,Object.getOwnPropertyDescriptors(r)):o(Object(r)).forEach((function(e){Object.defineProperty(t,e,Object.getOwnPropertyDescriptor(r,e))}))}return t}},"65f0":function(t,e,r){var n=r("861d"),o=r("e8b5"),a=r("b622"),i=a("species");t.exports=function(t,e){var r;return o(t)&&(r=t.constructor,"function"!=typeof r||r!==Array&&!o(r.prototype)?n(r)&&(r=r[i],null===r&&(r=void 0)):r=void 0),new(void 0===r?Array:r)(0===e?0:e)}},"746f":function(t,e,r){var n=r("428f"),o=r("5135"),a=r("e5383"),i=r("9bf2").f;t.exports=function(t){var e=n.Symbol||(n.Symbol={});o(e,t)||i(e,t,{value:a.f(t)})}},a434:function(t,e,r){"use strict";var n=r("23e7"),o=r("23cb"),a=r("a691"),i=r("50c4"),u=r("7b0b"),c=r("65f0"),f=r("8418"),l=r("1dde"),s=l("splice"),d=Math.max,p=Math.min,m=9007199254740991,h="Maximum allowed length exceeded";n({target:"Array",proto:!0,forced:!s},{splice:function(t,e){var r,n,l,s,b,g,y=u(this),v=i(y.length),O=o(t,v),w=arguments.length;if(0===w?r=n=0:1===w?(r=0,n=v-O):(r=w-2,n=p(d(a(e),0),v-O)),v+r-n>m)throw TypeError(h);for(l=c(y,n),s=0;s<n;s++)b=O+s,b in y&&f(l,s,y[b]);if(l.length=n,r<n){for(s=O;s<v-n;s++)b=s+n,g=s+r,b in y?y[g]=y[b]:delete y[g];for(s=v;s>v-n+r;s--)delete y[s-1]}else if(r>n)for(s=v-n;s>O;s--)b=s+n-1,g=s+r-1,b in y?y[g]=y[b]:delete y[g];for(s=0;s<r;s++)y[s+O]=arguments[s+2];return y.length=v-n+r,l}})},a4d3:function(t,e,r){"use strict";var n=r("23e7"),o=r("da84"),a=r("d066"),i=r("c430"),u=r("83ab"),c=r("4930"),f=r("fdbf"),l=r("d039"),s=r("5135"),d=r("e8b5"),p=r("861d"),m=r("825a"),h=r("7b0b"),b=r("fc6a"),g=r("c04e"),y=r("5c6c"),v=r("7c73"),O=r("df75"),w=r("241c"),j=r("057f"),P=r("7418"),k=r("06cf"),x=r("9bf2"),S=r("d1e7"),_=r("9112"),E=r("6eeb"),q=r("5692"),F=r("f772"),N=r("d012"),D=r("90e3"),W=r("b622"),$=r("e5383"),A=r("746f"),C=r("d44e"),J=r("69f3"),T=r("b727").forEach,M=F("hidden"),B="Symbol",I="prototype",L=W("toPrimitive"),R=J.set,Q=J.getterFor(B),U=Object[I],z=o.Symbol,G=a("JSON","stringify"),H=k.f,K=x.f,V=j.f,X=S.f,Y=q("symbols"),Z=q("op-symbols"),tt=q("string-to-symbol-registry"),et=q("symbol-to-string-registry"),rt=q("wks"),nt=o.QObject,ot=!nt||!nt[I]||!nt[I].findChild,at=u&&l((function(){return 7!=v(K({},"a",{get:function(){return K(this,"a",{value:7}).a}})).a}))?function(t,e,r){var n=H(U,e);n&&delete U[e],K(t,e,r),n&&t!==U&&K(U,e,n)}:K,it=function(t,e){var r=Y[t]=v(z[I]);return R(r,{type:B,tag:t,description:e}),u||(r.description=e),r},ut=f?function(t){return"symbol"==typeof t}:function(t){return Object(t)instanceof z},ct=function(t,e,r){t===U&&ct(Z,e,r),m(t);var n=g(e,!0);return m(r),s(Y,n)?(r.enumerable?(s(t,M)&&t[M][n]&&(t[M][n]=!1),r=v(r,{enumerable:y(0,!1)})):(s(t,M)||K(t,M,y(1,{})),t[M][n]=!0),at(t,n,r)):K(t,n,r)},ft=function(t,e){m(t);var r=b(e),n=O(r).concat(mt(r));return T(n,(function(e){u&&!st.call(r,e)||ct(t,e,r[e])})),t},lt=function(t,e){return void 0===e?v(t):ft(v(t),e)},st=function(t){var e=g(t,!0),r=X.call(this,e);return!(this===U&&s(Y,e)&&!s(Z,e))&&(!(r||!s(this,e)||!s(Y,e)||s(this,M)&&this[M][e])||r)},dt=function(t,e){var r=b(t),n=g(e,!0);if(r!==U||!s(Y,n)||s(Z,n)){var o=H(r,n);return!o||!s(Y,n)||s(r,M)&&r[M][n]||(o.enumerable=!0),o}},pt=function(t){var e=V(b(t)),r=[];return T(e,(function(t){s(Y,t)||s(N,t)||r.push(t)})),r},mt=function(t){var e=t===U,r=V(e?Z:b(t)),n=[];return T(r,(function(t){!s(Y,t)||e&&!s(U,t)||n.push(Y[t])})),n};if(c||(z=function(){if(this instanceof z)throw TypeError("Symbol is not a constructor");var t=arguments.length&&void 0!==arguments[0]?String(arguments[0]):void 0,e=D(t),r=function(t){this===U&&r.call(Z,t),s(this,M)&&s(this[M],e)&&(this[M][e]=!1),at(this,e,y(1,t))};return u&&ot&&at(U,e,{configurable:!0,set:r}),it(e,t)},E(z[I],"toString",(function(){return Q(this).tag})),E(z,"withoutSetter",(function(t){return it(D(t),t)})),S.f=st,x.f=ct,k.f=dt,w.f=j.f=pt,P.f=mt,$.f=function(t){return it(W(t),t)},u&&(K(z[I],"description",{configurable:!0,get:function(){return Q(this).description}}),i||E(U,"propertyIsEnumerable",st,{unsafe:!0}))),n({global:!0,wrap:!0,forced:!c,sham:!c},{Symbol:z}),T(O(rt),(function(t){A(t)})),n({target:B,stat:!0,forced:!c},{for:function(t){var e=String(t);if(s(tt,e))return tt[e];var r=z(e);return tt[e]=r,et[r]=e,r},keyFor:function(t){if(!ut(t))throw TypeError(t+" is not a symbol");if(s(et,t))return et[t]},useSetter:function(){ot=!0},useSimple:function(){ot=!1}}),n({target:"Object",stat:!0,forced:!c,sham:!u},{create:lt,defineProperty:ct,defineProperties:ft,getOwnPropertyDescriptor:dt}),n({target:"Object",stat:!0,forced:!c},{getOwnPropertyNames:pt,getOwnPropertySymbols:mt}),n({target:"Object",stat:!0,forced:l((function(){P.f(1)}))},{getOwnPropertySymbols:function(t){return P.f(h(t))}}),G){var ht=!c||l((function(){var t=z();return"[null]"!=G([t])||"{}"!=G({a:t})||"{}"!=G(Object(t))}));n({target:"JSON",stat:!0,forced:ht},{stringify:function(t,e,r){var n,o=[t],a=1;while(arguments.length>a)o.push(arguments[a++]);if(n=e,(p(e)||void 0!==t)&&!ut(t))return d(e)||(e=function(t,e){if("function"==typeof n&&(e=n.call(this,t,e)),!ut(e))return e}),o[1]=e,G.apply(null,o)}})}z[I][L]||_(z[I],L,z[I].valueOf),C(z,B),N[M]=!0},a640:function(t,e,r){"use strict";var n=r("d039");t.exports=function(t,e){var r=[][t];return!!r&&n((function(){r.call(null,e||function(){throw 1},1)}))}},b64b:function(t,e,r){var n=r("23e7"),o=r("7b0b"),a=r("df75"),i=r("d039"),u=i((function(){a(1)}));n({target:"Object",stat:!0,forced:u},{keys:function(t){return a(o(t))}})},b727:function(t,e,r){var n=r("0366"),o=r("44ad"),a=r("7b0b"),i=r("50c4"),u=r("65f0"),c=[].push,f=function(t){var e=1==t,r=2==t,f=3==t,l=4==t,s=6==t,d=7==t,p=5==t||s;return function(m,h,b,g){for(var y,v,O=a(m),w=o(O),j=n(h,b,3),P=i(w.length),k=0,x=g||u,S=e?x(m,P):r||d?x(m,0):void 0;P>k;k++)if((p||k in w)&&(y=w[k],v=j(y,k,O),t))if(e)S[k]=v;else if(v)switch(t){case 3:return!0;case 5:return y;case 6:return k;case 2:c.call(S,y)}else switch(t){case 4:return!1;case 7:c.call(S,y)}return s?-1:f||l?l:S}};t.exports={forEach:f(0),map:f(1),filter:f(2),some:f(3),every:f(4),find:f(5),findIndex:f(6),filterOut:f(7)}},dbb4:function(t,e,r){var n=r("23e7"),o=r("83ab"),a=r("56ef"),i=r("fc6a"),u=r("06cf"),c=r("8418");n({target:"Object",stat:!0,sham:!o},{getOwnPropertyDescriptors:function(t){var e,r,n=i(t),o=u.f,f=a(n),l={},s=0;while(f.length>s)r=o(n,e=f[s++]),void 0!==r&&c(l,e,r);return l}})},e439:function(t,e,r){var n=r("23e7"),o=r("d039"),a=r("fc6a"),i=r("06cf").f,u=r("83ab"),c=o((function(){i(1)})),f=!u||c;n({target:"Object",stat:!0,forced:f,sham:!u},{getOwnPropertyDescriptor:function(t,e){return i(a(t),e)}})},e5383:function(t,e,r){var n=r("b622");e.f=n}}]); |