ScopeSentry/static/assets/SubdomainTakeover-C_aLGT86.js

2 lines
4.6 KiB
JavaScript
Raw Normal View History

2024-07-20 11:19:39 +00:00
import{d as e,K as t,r as a,s as o,e as l,E as s,o as i,c as r,a as p,w as n,N as m,F as u,l as d,_ as c}from"./index-C75x1W_q.js";import{u as j}from"./useTable-Csp4_-i9.js";import{E as g}from"./el-card-B54lVHaN.js";import{E as h}from"./el-select-DpD7cK3l.js";import"./el-tag-sJbhYsGb.js";import"./el-popper-B4X-nZEc.js";import{E as b,a as f}from"./el-col-DgdPSEMf.js";import{_ as x}from"./Table.vue_vue_type_script_lang-a6bm3afC.js";import{u as v}from"./useCrudSchemas-CGM66xm5.js";import{p as _}from"./index-CLMYWd3G.js";import y from"./Csearch-Cn4_Fwzz.js";import"./useInput-CL83Kqek.js";import"./index-BjT9vIQp.js";import"./isEqual-BHgupMbx.js";import"./debounce-B1dqoIRt.js";import"./el-table-column-DCN4Lp6f.js";import"./el-checkbox-DNn0VEEC.js";import"./isArrayLikeObject-f_cYQsBX.js";import"./raf-C1Ndsx6C.js";import"./el-tooltip-l0sNRNKZ.js";import"./el-image-viewer-18KIcjBl.js";import"./tsxHelper-eKzA9uIm.js";import"./el-dropdown-item-lD4tMeV-.js";import"./castArray-CbnyB5vx.js";import"./refs-B1ngtnm_.js";import"./index-BOnf2JCp.js";import"./tree-BfZhwLPs.js";import"./index-CU1g1Qmh.js";import"./ContentWrap.vue_vue_type_script_setup_true_lang-BM7LKSVD.js";import"./el-text-BJjANnhE.js";import"./el-divider-CiB4UXSP.js";import"./el-tree-select-BKG-9Xvi.js";import"./index-Dv5KR0Js.js";import"./Dialog.vue_vue_type_style_index_0_lang-B4Mgj1gO.js";import"./useIcon-DN_g2XQA.js";import"./exportData.vue_vue_type_script_setup_true_lang-BS9zc1Vf.js";import"./el-tab-pane-XI1GbNMj.js";import"./el-form-BuKnlznG.js";import"./el-radio-group-Bvqq9Jha.js";import"./el-space-nKvlQ490.js";const S=c(e({__name:"SubdomainTakeover",props:{projectList:{}},setup(e){const{t:c}=d(),S=[{keyword:"domain",example:'domain="example.com"',explain:c("searchHelp.domain")},{keyword:"type",example:'type="github"',explain:c("searchHelp.subdomainType")},{keyword:"value",example:'value="exapmle.github.com"',explain:c("searchHelp.subdoaminValue")},{keyword:"response",example:'response="404 Not Found"',explain:c("searchHelp.body")},{keyword:"project",example:'project="Hackerone"',explain:c("searchHelp.project")}];t((()=>{E(),window.addEventListener("resize",E)}));const w=a(0),E=()=>{const e=window.innerHeight||document.documentElement.clientHeight;w.value=.7*e},k=a(""),z=e=>{k.value=e,I()},L=o([{field:"selection",type:"selection",minWidth:"55"},{field:"index",label:c("tableDemo.index"),type:"index",minWidth:"30"},{field:"host",label:"Domain",minWidth:"300"},{field:"value",label:c("subdomain.recordValue"),minWidth:"400"},{field:"type",label:"Type",minWidth:"200"},{field:"response",label:"Response",minWidth:"300",formatter:(e,t,a)=>l(s,{"max-height":"100"},{default:()=>[l("div",{style:"whiteSpace: 'pre-line'"},[a])]})}]),{allSchemas:H}=v(L),{tableRegister:T,tableState:A,tableMethods:C}=j({fetchDataApi:async()=>{const{currentPage:e,pageSize:t}=A,a=await _(k.value,e.value,t.value,M);return{list:a.data.list,total:a.data.total}},immediate:!1}),{loading:P,dataList:W,total:D,currentPage:R,pageSize:U}=A;U.value=20;const{getList:I,getElTableExpose:N}=C;function F(){return{background:"var(--el-fill-color-light)"}}const M=o({}),O=(e,t)=>{Object.assign(M,t),k.value=e,I()};return(e,t)=>(i(),r(u,null,[l(y,{getList:p(I),handleSearch:z,searchKeywordsData:S,index:"SubdoaminTakerResult",getElTableExpose:p(N),projectList:e.$props.projectList,handleFilterSearch:O},null,8,["getList","getElTableExpose","projectList"]),l(p(f),null,{default:n((()=>[l(p(b),null,{default:n((()=>[l(p(g),{style:{height:"min-content"}},{default:n((()=>[l(p(x),{pageSize:p(U),"onUpdate:pageSize":t[0]||(t[0]=e=>m(U)?U.value=e:null),currentPage:p(R),"onUpdate:currentPage":t[1]||(t[1]=e=>m(R)?R.value=e:null),columns:p(H).tableColumns,data:p(W),stripe:"","max-height":w.value,border:!0,loading:p(P),resizable:!0,onRegister:p(T),headerCellStyle:F,"tooltip-options":{offset:1,showArrow:!1,effect:"dark",enterable:!1,showAfter:0,popperOptions:{},popperClass:"test",placement:"bottom",hideAfter:0,disabled:!0},style:{fontFamily:"-apple-system,BlinkMacSystemFont,Segoe UI,Roboto,Helvetica Neue,Arial,Noto Sans,sans-serif,Apple Col