From f98177e3ae9b71ed9c82808aea73c0f1f37199a9 Mon Sep 17 00:00:00 2001 From: Teeoo Date: Tue, 14 Dec 2021 14:24:14 +0800 Subject: [PATCH] =?UTF-8?q?:ok=5Fhand:=20review(mitm):=20=E6=8B=86?= =?UTF-8?q?=E5=88=86=E7=BB=84=E4=BB=B6?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/mitm/mitm.ts | 18 ++ src/components/mitm/mitm.vue | 108 ++++++++++++ src/pages/mitm.vue | 318 ++++++++++++++++++----------------- 3 files changed, 294 insertions(+), 150 deletions(-) create mode 100644 src/components/mitm/mitm.ts create mode 100644 src/components/mitm/mitm.vue diff --git a/src/components/mitm/mitm.ts b/src/components/mitm/mitm.ts new file mode 100644 index 0000000..04c2bac --- /dev/null +++ b/src/components/mitm/mitm.ts @@ -0,0 +1,18 @@ +export interface Mitm { + host: Host[]; + enable: boolean; + crtinfo: Crtinfo; +} + +export interface Host { + host: string; + enable: boolean; + note?: string; +} + +export interface Crtinfo { + rescode: number; + commonName: string; + notBefore: string; + notAfter: string; +} diff --git a/src/components/mitm/mitm.vue b/src/components/mitm/mitm.vue new file mode 100644 index 0000000..845d557 --- /dev/null +++ b/src/components/mitm/mitm.vue @@ -0,0 +1,108 @@ + + diff --git a/src/pages/mitm.vue b/src/pages/mitm.vue index 59aa929..d0f22c1 100644 --- a/src/pages/mitm.vue +++ b/src/pages/mitm.vue @@ -1,180 +1,184 @@ - -