1 line
32 KiB
Plaintext
1 line
32 KiB
Plaintext
{"version":3,"sources":["webpack:///./src/views/report.vue?5ba0","webpack:///./src/views/report.vue","webpack:///src/views/report.vue","webpack:///./src/views/report.vue?5d61","webpack:///./src/views/report.vue?7f56"],"names":["render","_vm","this","_c","_self","results","grep_keyword","staticClass","domProps","_s","$t","on","$event","new_capture","_v","show_report","alerts","high","length","nb","$i18n","messages","locale","report","numbers","moderate","low","staticStyle","device","name","pcap","SHA1","split","detection_methods","_l","alert","key","message","id","add_whitelist","host","title","description","uncategorized_records","_e","record","ip_dst","Object","keys","protocols","map","join","domains","port","whitelisted_records","attrs","save_capture","$router","push","staticRenderFns","data","props","methods","records","Array","capture_token","String","console","log","router","replace","params","axios","get","timeout","then","catch","error","kw","level","idx","found","forEach","a","indexOf","get_detection_methods","iocs","heuristics","active","EventBus","$emit","get_records","r","suspicious","whitelisted","created","component"],"mappings":"kHAAA,W,uDCAIA,EAAS,WAAkB,IAAIC,EAAIC,KAAKC,EAAGF,EAAIG,MAAMD,GAAG,OAAOA,EAAG,MAAM,CAAEF,EAAII,QAASF,EAAG,MAAM,CAAEF,EAAIK,aAAa,cAAe,QAASH,EAAG,MAAM,CAACI,YAAY,gBAAgB,CAACJ,EAAG,MAAM,CAACI,YAAY,UAAU,CAACJ,EAAG,KAAK,CAACI,YAAY,gBAAgBC,SAAS,CAAC,UAAYP,EAAIQ,GAAGR,EAAIS,GAAG,8BAA8BP,EAAG,SAAS,CAACI,YAAY,2BAA2BI,GAAG,CAAC,MAAQ,SAASC,GAAQ,OAAOX,EAAIY,iBAAiB,CAACZ,EAAIa,GAAGb,EAAIQ,GAAGR,EAAIS,GAAG,gCAAgCP,EAAG,SAAS,CAACI,YAAY,sBAAsBI,GAAG,CAAC,MAAQ,SAASC,GAAQX,EAAIc,aAAY,EAAKd,EAAII,SAAQ,KAAU,CAACJ,EAAIa,GAAGb,EAAIQ,GAAGR,EAAIS,GAAG,mCAAoCT,EAAIe,OAAOC,KAAKC,Q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AI,IAAAC,IAAA,6BAAAC,QAAA,MACAC,KAAA,KAAAN,OAAAX,KAAA,CAAA7B,KAAA,kBACA+C,MAAAC,IAAAV,QAAAC,IAAAS,MAEAvE,aAAA,SAAAwE,EAAAC,GACA,IAEA,IAAAC,EACAC,EAFA,aAAAjE,OAAA+D,GAAA7D,SAGA,KAAAF,OAAA+D,GAAAG,QAAAC,IACAH,EAAAG,EAAA1C,MAAA2C,QAAAN,GACAG,MAAAD,EAAA,KAEAC,GAIA,MAAAJ,GAAAV,QAAAC,IAAAS,KAEAQ,sBAAA,WACA,KAAApD,mBAAA,QAAA6B,QAAAwB,KAAA,UAAA5E,GAAA,kCAAAA,GAAA,wBACA,KAAAuB,mBAAA,QAAA6B,QAAAyB,WAAA,UAAA7E,GAAA,kCAAAA,GAAA,wBACA,KAAAuB,mBAAA,QAAA6B,QAAA0B,OAAA,UAAA9E,GAAA,8BAAAA,GAAA,qBAEA6B,cAAA,SAAAC,GACAiD,cAAAC,MAAA,qCAAAlD,KAEAmD,YAAA,WACA,KAAA5B,QAAAmB,QAAAU,IACAA,EAAAC,YAAAD,EAAAE,YAEAF,EAAAE,aACA,KAAAxC,oBAAAI,KAAAkC,GAFA,KAAAjD,sBAAAe,KAAAkC,OAOAG,QAAA,WACA5B,QAAAC,IAAA,mCACA,KAAAiB,wBACA,KAAAM,gBC3NgV,I,wBCQ5UK,EAAY,eACd,EACAhG,EACA2D,GACA,EACA,KACA,KACA,MAIa,aAAAqC,E","file":"js/chunk-06fe3877.28d75c61.js","sourcesContent":["export * from \"-!../../node_modules/mini-css-extract-plugin/dist/loader.js??ref--7-oneOf-1-0!../../node_modules/css-loader/dist/cjs.js??ref--7-oneOf-1-1!../../node_modules/vue-loader/lib/loaders/stylePostLoader.js!../../node_modules/postcss-loader/src/index.js??ref--7-oneOf-1-2!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./report.vue?vue&type=style&index=0&id=02720b47&prod&lang=css&\"","var render = function render(){var _vm=this,_c=_vm._self._c;return _c('div',[(_vm.results)?_c('div',[(_vm.grep_keyword('STALKERWARE', 'high'))?_c('div',{staticClass:\"high-wrapper\"},[_c('div',{staticClass:\"center\"},[_c('h1',{staticClass:\"warning-title\",domProps:{\"innerHTML\":_vm._s(_vm.$t('report.stalkerware_msg'))}}),_c('button',{staticClass:\"btn btn-report-low-light\",on:{\"click\":function($event){return _vm.new_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))]),_c('button',{staticClass:\"btn btn-report-high\",on:{\"click\":function($event){_vm.show_report=true;_vm.results=false;}}},[_vm._v(_vm._s(_vm.$t(\"report.show_full_report\")))])])]):(_vm.alerts.high.length >= 1)?_c('div',{staticClass:\"high-wrapper\"},[_c('div',{staticClass:\"center\"},[_c('h1',{staticClass:\"warning-title\",domProps:{\"innerHTML\":_vm._s(_vm.$t('report.high_msg', { nb: _vm.$i18n.messages[_vm.$i18n.locale].report.numbers[_vm.alerts.high.length] }))}}),_c('button',{staticClass:\"btn btn-report-low-light\",on:{\"click\":function($event){return _vm.new_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))]),_c('button',{staticClass:\"btn btn-report-high\",on:{\"click\":function($event){_vm.show_report=true;_vm.results=false;}}},[_vm._v(_vm._s(_vm.$t(\"report.show_full_report\")))])])]):(_vm.alerts.moderate.length >= 1)?_c('div',{staticClass:\"med-wrapper\"},[_c('div',{staticClass:\"center\"},[_c('h1',{staticClass:\"warning-title\",domProps:{\"innerHTML\":_vm._s(_vm.$t('report.moderate_msg', { nb: _vm.$i18n.messages[_vm.$i18n.locale].report.numbers[_vm.alerts.moderate.length] }))}}),_c('button',{staticClass:\"btn btn-report-low-light\",on:{\"click\":function($event){return _vm.new_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))]),_c('button',{staticClass:\"btn btn-report-moderate\",on:{\"click\":function($event){_vm.show_report=true;_vm.results=false;}}},[_vm._v(_vm._s(_vm.$t(\"report.show_full_report\")))])])]):(_vm.alerts.low.length >= 1)?_c('div',{staticClass:\"low-wrapper\"},[_c('div',{staticClass:\"center\"},[_c('h1',{staticClass:\"warning-title\",domProps:{\"innerHTML\":_vm._s(_vm.$t('report.low_msg', { nb: _vm.$i18n.messages[_vm.$i18n.locale].report.numbers[_vm.alerts.low.length] }))}}),_c('button',{staticClass:\"btn btn-report-low-light\",on:{\"click\":function($event){return _vm.new_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))]),_c('button',{staticClass:\"btn btn-report-low\",on:{\"click\":function($event){_vm.show_report=true;_vm.results=false;}}},[_vm._v(_vm._s(_vm.$t(\"report.show_full_report\")))])])]):_c('div',{staticClass:\"none-wrapper\"},[_c('div',{staticClass:\"center\"},[_c('h1',{staticClass:\"warning-title\",domProps:{\"innerHTML\":_vm._s(_vm.$t('report.fine_msg'))}}),_c('button',{staticClass:\"btn btn-report-low-light\",on:{\"click\":function($event){_vm.show_report=true;_vm.results=false;}}},[_vm._v(_vm._s(_vm.$t(\"report.show_full_report\")))]),_c('button',{staticClass:\"btn btn-report-low\",on:{\"click\":function($event){return _vm.new_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))])])])]):(_vm.show_report)?_c('div',{staticClass:\"wrapper\"},[_c('div',{staticClass:\"report-wrapper\"},[_c('div',{staticClass:\"device-ctx\"},[_c('h3',{staticStyle:{\"margin\":\"0\",\"padding-left\":\"10px\"}},[_vm._v(_vm._s(_vm.$t(\"report.report_of\"))+\" \"+_vm._s(_vm.device.name))]),_c('div',{staticClass:\"device-ctx-legend\"},[_vm._v(\" \"+_vm._s(_vm.$t(\"report.pcap_sha1\"))+\" \"+_vm._s(_vm.pcap.SHA1)),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t(\"report.capture_started\"))+\" \"+_vm._s(_vm.pcap[\"First packet time\"].split(\",\")[0])),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t(\"report.capture_ended\"))+\" \"+_vm._s(_vm.pcap[\"Last packet time\"].split(\",\")[0])),_c('br'),_vm._v(\" \"+_vm._s(_vm.$t(\"report.detection_methods\"))+\" \"+_vm._s(_vm.detection_methods)+\" \")])]),(_vm.alerts.length>0)?_c('div',[_c('ul',{staticClass:\"alerts\"},[_vm._l((_vm.alerts.high),function(alert){return _c('li',{key:alert.message,staticClass:\"alert\"},[_c('div',{staticClass:\"alert-header\"},[_c('span',{staticClass:\"high-label\"},[_vm._v(_vm._s(_vm.$t(\"report.high\")))]),_c('span',{staticClass:\"alert-id\"},[_vm._v(_vm._s(alert.id))]),_c('span',{staticClass:\"btn-whitelist\",on:{\"click\":function($event){return _vm.add_whitelist(alert.host)}}},[_vm._v(\"Add to the whitelist\")])]),_c('div',{staticClass:\"alert-body\"},[_c('span',{staticClass:\"title\"},[_vm._v(_vm._s(alert.title))]),_c('p',{staticClass:\"description\"},[_vm._v(_vm._s(alert.description))])])])}),_vm._l((_vm.alerts.moderate),function(alert){return _c('li',{key:alert.message,staticClass:\"alert\"},[_c('div',{staticClass:\"alert-header\"},[_c('span',{staticClass:\"moderate-label\"},[_vm._v(_vm._s(_vm.$t(\"report.moderate\")))]),_c('span',{staticClass:\"alert-id\"},[_vm._v(_vm._s(alert.id))]),_c('span',{staticClass:\"btn-whitelist\",on:{\"click\":function($event){return _vm.add_whitelist(alert.host)}}},[_vm._v(\"Add to the whitelist\")])]),_c('div',{staticClass:\"alert-body\"},[_c('span',{staticClass:\"title\"},[_vm._v(_vm._s(alert.title))]),_c('p',{staticClass:\"description\"},[_vm._v(_vm._s(alert.description))])])])}),_vm._l((_vm.alerts.low),function(alert){return _c('li',{key:alert.message,staticClass:\"alert\"},[_c('div',{staticClass:\"alert-header\"},[_c('span',{staticClass:\"moderate-label\"},[_vm._v(_vm._s(_vm.$t(\"report.low\")))]),_c('span',{staticClass:\"alert-id\"},[_vm._v(_vm._s(alert.id))]),_c('span',{staticClass:\"btn-whitelist\",on:{\"click\":function($event){return _vm.add_whitelist(alert.host)}}},[_vm._v(\"Add to the whitelist\")])]),_c('div',{staticClass:\"alert-body\"},[_c('span',{staticClass:\"title\"},[_vm._v(_vm._s(alert.title))]),_c('p',{staticClass:\"description\"},[_vm._v(_vm._s(alert.description))])])])})],2)]):_c('div',{staticClass:\"no-alerts-to-show\"},[_c('span',{staticClass:\"main-text\"},[_vm._v(_vm._s(_vm.$t(\"report.no_alerts_title\")))]),_c('span',{staticClass:\"second-text\"},[_vm._v(_vm._s(_vm.$t(\"report.no_alerts_subtext\")))])]),(_vm.uncategorized_records.length>0)?_c('h5',{staticClass:\"title-report\"},[_vm._v(_vm._s(_vm.$t(\"report.uncat_coms_table\")))]):_vm._e(),(_vm.uncategorized_records.length>0)?_c('div',[_c('table',{staticClass:\"table-uncat\"},[_c('thead',[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"report.protocol\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.domain_name\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.ip_address\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.port\")))])])]),_vm._l((_vm.uncategorized_records),function(record){return _c('tr',{key:record.ip_dst},[_c('td',[_vm._v(_vm._s(Object.keys(record.protocols).map(key => record.protocols[key].name).join(\", \")))]),_c('td',{on:{\"click\":function($event){return _vm.add_whitelist(record.domains[0])}}},[_vm._v(_vm._s(record.domains.join(\", \")))]),_c('td',{on:{\"click\":function($event){return _vm.add_whitelist(record.ip_dst)}}},[_vm._v(_vm._s(record.ip_dst))]),_c('td',[_vm._v(_vm._s(Object.keys(record.protocols).map(key => record.protocols[key].port).join(\", \")))])])})],2)]):_vm._e(),(_vm.whitelisted_records.length>0)?_c('h5',{staticClass:\"title-report\"},[_vm._v(_vm._s(_vm.$t(\"report.whitelisted_coms_table\")))]):_vm._e(),(_vm.whitelisted_records.length>0)?_c('div',[_c('table',{staticClass:\"table-uncat\"},[_c('thead',[_c('tr',[_c('td',[_vm._v(_vm._s(_vm.$t(\"report.protocol\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.domain_name\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.ip_address\")))]),_c('td',[_vm._v(_vm._s(_vm.$t(\"report.port\")))])])]),_vm._l((_vm.whitelisted_records),function(record){return _c('tr',{key:record.ip_dst},[_c('td',[_vm._v(_vm._s(Object.keys(record.protocols).map(key => record.protocols[key].name).join(\", \")))]),_c('td',[_vm._v(_vm._s(record.domains.join(\", \")))]),_c('td',[_vm._v(_vm._s(record.ip_dst))]),_c('td',[_vm._v(_vm._s(Object.keys(record.protocols).map(key => record.protocols[key].port).join(\", \")))])])})],2)]):_vm._e(),_c('div',{attrs:{\"id\":\"controls-analysis\"}},[_c('div',{staticClass:\"column col-6\"},[_c('button',{staticClass:\"btn btn btn-primary width-100\",on:{\"click\":function($event){return _vm.save_capture()}}},[_vm._v(_vm._s(_vm.$t(\"report.save\")))])]),_c('div',{staticClass:\"column col-6\"},[_c('button',{staticClass:\"btn width-100\",on:{\"click\":function($event){return _vm.$router.push('generate-ap')}}},[_vm._v(_vm._s(_vm.$t(\"report.start_new_capture\")))])])])])]):_vm._e()])\n}\nvar staticRenderFns = []\n\nexport { render, staticRenderFns }","<template>\r\n <div>\r\n <div v-if=\"results\">\r\n <div v-if=\"grep_keyword('STALKERWARE', 'high')\" class=\"high-wrapper\">\r\n <div class=\"center\">\r\n <h1 class=\"warning-title\" v-html=\"$t('report.stalkerware_msg')\"></h1>\r\n <button class=\"btn btn-report-low-light\" v-on:click=\"new_capture()\">{{ $t(\"report.start_new_capture\") }}</button>\r\n <button class=\"btn btn-report-high\" @click=\"show_report=true;results=false;\">{{ $t(\"report.show_full_report\") }}</button>\r\n </div>\r\n </div>\r\n <div v-else-if=\"alerts.high.length >= 1\" class=\"high-wrapper\">\r\n <div class=\"center\">\r\n <h1 class=\"warning-title\" v-html=\"$t('report.high_msg', { nb: $i18n.messages[$i18n.locale].report.numbers[alerts.high.length] })\"></h1>\r\n <button class=\"btn btn-report-low-light\" v-on:click=\"new_capture()\">{{ $t(\"report.start_new_capture\") }}</button>\r\n <button class=\"btn btn-report-high\" @click=\"show_report=true;results=false;\">{{ $t(\"report.show_full_report\") }}</button>\r\n </div>\r\n </div>\r\n <div v-else-if=\"alerts.moderate.length >= 1\" class=\"med-wrapper\">\r\n <div class=\"center\">\r\n <h1 class=\"warning-title\" v-html=\"$t('report.moderate_msg', { nb: $i18n.messages[$i18n.locale].report.numbers[alerts.moderate.length] })\"></h1>\r\n <button class=\"btn btn-report-low-light\" v-on:click=\"new_capture()\">{{ $t(\"report.start_new_capture\") }}</button>\r\n <button class=\"btn btn-report-moderate\" @click=\"show_report=true;results=false;\">{{ $t(\"report.show_full_report\") }}</button>\r\n </div>\r\n </div>\r\n <div v-else-if=\"alerts.low.length >= 1\" class=\"low-wrapper\">\r\n <div class=\"center\">\r\n <h1 class=\"warning-title\" v-html=\"$t('report.low_msg', { nb: $i18n.messages[$i18n.locale].report.numbers[alerts.low.length] })\"></h1>\r\n <button class=\"btn btn-report-low-light\" v-on:click=\"new_capture()\">{{ $t(\"report.start_new_capture\") }}</button>\r\n <button class=\"btn btn-report-low\" @click=\"show_report=true;results=false;\">{{ $t(\"report.show_full_report\") }}</button>\r\n </div>\r\n </div>\r\n <div v-else class=\"none-wrapper\">\r\n <div class=\"center\">\r\n <h1 class=\"warning-title\" v-html=\"$t('report.fine_msg')\"></h1>\r\n <button class=\"btn btn-report-low-light\" @click=\"show_report=true;results=false;\">{{ $t(\"report.show_full_report\") }}</button>\r\n <button class=\"btn btn-report-low\" v-on:click=\"new_capture()\">{{ $t(\"report.start_new_capture\") }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n <div v-else-if=\"show_report\" class=\"wrapper\">\r\n <div class=\"report-wrapper\">\r\n <div class=\"device-ctx\">\r\n <h3 style=\"margin: 0; padding-left:10px;\">{{ $t(\"report.report_of\") }} {{device.name}}</h3>\r\n <div class=\"device-ctx-legend\">\r\n {{ $t(\"report.pcap_sha1\") }} {{ pcap.SHA1 }}<br />\r\n {{ $t(\"report.capture_started\") }} {{ pcap[\"First packet time\"].split(\",\")[0] }}<br />\r\n {{ $t(\"report.capture_ended\") }} {{ pcap[\"Last packet time\"].split(\",\")[0] }}<br />\r\n {{ $t(\"report.detection_methods\") }} {{ detection_methods }}\r\n </div>\r\n </div>\r\n <div v-if=\"alerts.length>0\">\r\n <ul class=\"alerts\">\r\n <li class=\"alert\" v-for=\"alert in alerts.high\" :key=\"alert.message\">\r\n <div class=\"alert-header\">\r\n <span class=\"high-label\">{{ $t(\"report.high\") }}</span>\r\n <span class=\"alert-id\">{{ alert.id }}</span> \r\n <span class=\"btn-whitelist\" v-on:click=\"add_whitelist(alert.host)\">Add to the whitelist</span>\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">{{ alert.title }}</span>\r\n <p class=\"description\">{{ alert.description }}</p>\r\n </div>\r\n </li>\r\n <li class=\"alert\" v-for=\"alert in alerts.moderate\" :key=\"alert.message\">\r\n <div class=\"alert-header\">\r\n <span class=\"moderate-label\">{{ $t(\"report.moderate\") }}</span>\r\n <span class=\"alert-id\">{{ alert.id }}</span> \r\n <span class=\"btn-whitelist\" v-on:click=\"add_whitelist(alert.host)\">Add to the whitelist</span>\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">{{ alert.title }}</span>\r\n <p class=\"description\">{{ alert.description }}</p>\r\n </div>\r\n </li>\r\n <li class=\"alert\" v-for=\"alert in alerts.low\" :key=\"alert.message\">\r\n <div class=\"alert-header\">\r\n <span class=\"moderate-label\">{{ $t(\"report.low\") }}</span>\r\n <span class=\"alert-id\">{{ alert.id }}</span> \r\n <span class=\"btn-whitelist\" v-on:click=\"add_whitelist(alert.host)\">Add to the whitelist</span>\r\n </div>\r\n <div class=\"alert-body\">\r\n <span class=\"title\">{{ alert.title }}</span>\r\n <p class=\"description\">{{ alert.description }}</p>\r\n </div>\r\n </li>\r\n </ul>\r\n </div>\r\n <div class=\"no-alerts-to-show\" v-else>\r\n <span class=\"main-text\">{{ $t(\"report.no_alerts_title\") }}</span>\r\n <span class=\"second-text\">{{ $t(\"report.no_alerts_subtext\") }}</span>\r\n </div>\r\n <h5 class=\"title-report\" v-if=\"uncategorized_records.length>0\">{{ $t(\"report.uncat_coms_table\") }}</h5>\r\n <div v-if=\"uncategorized_records.length>0\">\r\n <table class=\"table-uncat\">\r\n <thead>\r\n <tr>\r\n <td>{{ $t(\"report.protocol\") }}</td>\r\n <td>{{ $t(\"report.domain_name\") }}</td>\r\n <td>{{ $t(\"report.ip_address\") }}</td>\r\n <td>{{ $t(\"report.port\") }}</td>\r\n </tr>\r\n </thead>\r\n <tr v-for=\"record in uncategorized_records\" :key=\"record.ip_dst\">\r\n <td>{{ Object.keys(record.protocols).map(key => record.protocols[key].name).join(\", \") }}</td>\r\n <td v-on:click=\"add_whitelist(record.domains[0])\">{{ record.domains.join(\", \") }}</td>\r\n <td v-on:click=\"add_whitelist(record.ip_dst)\">{{ record.ip_dst }}</td>\r\n <td>{{ Object.keys(record.protocols).map(key => record.protocols[key].port).join(\", \") }}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <h5 class=\"title-report\" v-if=\"whitelisted_records.length>0\">{{ $t(\"report.whitelisted_coms_table\") }}</h5>\r\n <div v-if=\"whitelisted_records.length>0\">\r\n <table class=\"table-uncat\">\r\n <thead>\r\n <tr>\r\n <td>{{ $t(\"report.protocol\") }}</td>\r\n <td>{{ $t(\"report.domain_name\") }}</td>\r\n <td>{{ $t(\"report.ip_address\") }}</td>\r\n <td>{{ $t(\"report.port\") }}</td>\r\n </tr>\r\n </thead>\r\n <tr v-for=\"record in whitelisted_records\" :key=\"record.ip_dst\">\r\n <td>{{ Object.keys(record.protocols).map(key => record.protocols[key].name).join(\", \") }}</td>\r\n <td>{{ record.domains.join(\", \") }}</td>\r\n <td>{{ record.ip_dst }}</td>\r\n <td>{{ Object.keys(record.protocols).map(key => record.protocols[key].port).join(\", \") }}</td>\r\n </tr>\r\n </table>\r\n </div>\r\n <div id=\"controls-analysis\">\r\n <div class=\"column col-6\">\r\n <button class=\"btn btn btn-primary width-100\" v-on:click=\"save_capture()\">{{ $t(\"report.save\") }}</button>\r\n </div>\r\n <div class=\"column col-6\">\r\n <button class=\"btn width-100\" @click=\"$router.push('generate-ap')\">{{ $t(\"report.start_new_capture\") }}</button>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n </div>\r\n</template>\r\n\r\n\r\n<style>\r\n#app {\r\n overflow-y: visible;\r\n} \r\n</style>\r\n\r\n<script>\r\nimport router from '../router'\r\nimport axios from 'axios'\r\nimport { EventBus } from \"../main.js\"\r\n\r\nexport default {\r\n name: 'report', \r\n data() {\r\n return {\r\n results: true,\r\n detection_methods: \"\",\r\n uncategorized_records: [],\r\n whitelisted_records: []\r\n }\r\n },\r\n props: {\r\n device: Object,\r\n methods: Object,\r\n pcap: Object,\r\n records: Array,\r\n alerts: Array,\r\n capture_token: String\r\n },\r\n methods: {\r\n save_capture: function() {\r\n console.log(\"[report.vue] Saving the capture\");\r\n router.replace({ name: 'save-capture', params: { capture_token: this.capture_token } });\r\n },\r\n new_capture: function() {\r\n console.log(\"[report.vue] Deleting the capture and creating a new AP\");\r\n axios.get('/api/misc/delete-captures', { timeout: 30000 })\r\n .then(() => { router.push({ name: 'generate-ap' }) })\r\n .catch(error => { console.log(error) })\r\n },\r\n grep_keyword: function(kw, level){\r\n try {\r\n if(this.alerts[level].length){\r\n var idx;\r\n var found;\r\n this.alerts[level].forEach((a) => { \r\n idx = a.title.indexOf(kw)\r\n if(!found) found = idx>0;\r\n }); \r\n return found; \r\n } else {\r\n return false;\r\n }\r\n } catch (error){ console.log(error); }\r\n },\r\n get_detection_methods: function(){\r\n this.detection_methods += (this.methods.iocs == true)? `☑ ${this.$t(\"report.indicators\")} ` : `☐ ${this.$t(\"report.indicators\")} `\r\n this.detection_methods += (this.methods.heuristics == true)? `☑ ${this.$t(\"report.heuristics\")} ` : `☐ ${this.$t(\"report.heuristics\")} `\r\n this.detection_methods += (this.methods.active == true)? `☑ ${this.$t(\"report.active\")} ` : `☐ ${this.$t(\"report.active\")} `\r\n },\r\n add_whitelist: function(host){\r\n EventBus.$emit(\"showModal\", {\"action\" : \"whitelist\", \"host\" : host})\r\n },\r\n get_records: function(){\r\n this.records.forEach( r => {\r\n if (!r.suspicious && !r.whitelisted){\r\n this.uncategorized_records.push(r);\r\n } else if (r.whitelisted){\r\n this.whitelisted_records.push(r);\r\n }\r\n })\r\n }\r\n },\r\n created: function() {\r\n console.log(\"[report.vue] Showing report.vue\");\r\n this.get_detection_methods();\r\n this.get_records();\r\n }\r\n}\r\n</script>\r\n","import mod from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./report.vue?vue&type=script&lang=js&\"; export default mod; export * from \"-!../../node_modules/cache-loader/dist/cjs.js??ref--13-0!../../node_modules/thread-loader/dist/cjs.js!../../node_modules/babel-loader/lib/index.js!../../node_modules/cache-loader/dist/cjs.js??ref--1-0!../../node_modules/vue-loader/lib/index.js??vue-loader-options!./report.vue?vue&type=script&lang=js&\"","import { render, staticRenderFns } from \"./report.vue?vue&type=template&id=02720b47&\"\nimport script from \"./report.vue?vue&type=script&lang=js&\"\nexport * from \"./report.vue?vue&type=script&lang=js&\"\nimport style0 from \"./report.vue?vue&type=style&index=0&id=02720b47&prod&lang=css&\"\n\n\n/* normalize component */\nimport normalizer from \"!../../node_modules/vue-loader/lib/runtime/componentNormalizer.js\"\nvar component = normalizer(\n script,\n render,\n staticRenderFns,\n false,\n null,\n null,\n null\n \n)\n\nexport default component.exports"],"sourceRoot":""} |