mihari 5.2.3 → 5.2.4
Sign up to get free protection for your applications and to get access to all the features.
- checksums.yaml +4 -4
- data/build_frontend.sh +1 -9
- data/frontend/.browserslistrc +3 -0
- data/frontend/.eslintrc.js +33 -0
- data/frontend/.gitignore +25 -0
- data/frontend/README.md +3 -0
- data/frontend/babel.config.js +3 -0
- data/frontend/index.html +21 -0
- data/frontend/jest.config.js +9 -0
- data/frontend/package-lock.json +13216 -0
- data/frontend/package.json +54 -0
- data/frontend/public/favicon.ico +0 -0
- data/frontend/scripts/swagger_doc_to_yaml.rb +23 -0
- data/frontend/src/App.vue +27 -0
- data/frontend/src/api-helper.ts +113 -0
- data/frontend/src/api.ts +105 -0
- data/frontend/src/components/ErrorMessage.vue +32 -0
- data/frontend/src/components/Loading.vue +15 -0
- data/frontend/src/components/Navbar.vue +59 -0
- data/frontend/src/components/Pagination.vue +126 -0
- data/frontend/src/components/alert/Alert.vue +92 -0
- data/frontend/src/components/alert/Alerts.vue +66 -0
- data/frontend/src/components/alert/AlertsWithPagination.vue +91 -0
- data/frontend/src/components/alert/AlertsWrapper.vue +141 -0
- data/frontend/src/components/alert/Form.vue +185 -0
- data/frontend/src/components/artifact/AS.vue +29 -0
- data/frontend/src/components/artifact/Artifact.vue +321 -0
- data/frontend/src/components/artifact/ArtifactTag.vue +70 -0
- data/frontend/src/components/artifact/ArtifactTags.vue +29 -0
- data/frontend/src/components/artifact/ArtifactWrapper.vue +62 -0
- data/frontend/src/components/artifact/CPEs.vue +23 -0
- data/frontend/src/components/artifact/DnsRecords.vue +38 -0
- data/frontend/src/components/artifact/Ports.vue +23 -0
- data/frontend/src/components/artifact/ReverseDnsNames.vue +31 -0
- data/frontend/src/components/artifact/Tags.vue +29 -0
- data/frontend/src/components/artifact/WhoisRecord.vue +49 -0
- data/frontend/src/components/config/Configs.vue +68 -0
- data/frontend/src/components/config/ConfigsWrapper.vue +40 -0
- data/frontend/src/components/link/Link.vue +32 -0
- data/frontend/src/components/link/Links.vue +47 -0
- data/frontend/src/components/rule/EditRule.vue +74 -0
- data/frontend/src/components/rule/EditRuleWrapper.vue +56 -0
- data/frontend/src/components/rule/Form.vue +160 -0
- data/frontend/src/components/rule/InputForm.vue +80 -0
- data/frontend/src/components/rule/NewRule.vue +60 -0
- data/frontend/src/components/rule/Rule.vue +108 -0
- data/frontend/src/components/rule/RuleWrapper.vue +62 -0
- data/frontend/src/components/rule/Rules.vue +88 -0
- data/frontend/src/components/rule/RulesWrapper.vue +130 -0
- data/frontend/src/components/rule/YAML.vue +47 -0
- data/frontend/src/components/tag/Tag.vue +73 -0
- data/frontend/src/components/tag/Tags.vue +37 -0
- data/frontend/src/countries.ts +350 -0
- data/frontend/src/index.ts +23 -0
- data/frontend/src/links/anyrun.ts +19 -0
- data/frontend/src/links/base.ts +14 -0
- data/frontend/src/links/censys.ts +20 -0
- data/frontend/src/links/crtsh.ts +20 -0
- data/frontend/src/links/dnslytics.ts +38 -0
- data/frontend/src/links/greynoise.ts +20 -0
- data/frontend/src/links/index.ts +40 -0
- data/frontend/src/links/intezer.ts +20 -0
- data/frontend/src/links/otx.ts +33 -0
- data/frontend/src/links/securitytrails.ts +38 -0
- data/frontend/src/links/shodan.ts +20 -0
- data/frontend/src/links/urlscan.ts +50 -0
- data/frontend/src/links/virustotal.ts +72 -0
- data/frontend/src/main.ts +11 -0
- data/frontend/src/router/index.ts +57 -0
- data/frontend/src/rule.ts +14 -0
- data/frontend/src/shims-vue.d.ts +6 -0
- data/frontend/src/swagger.yaml +737 -0
- data/frontend/src/types.ts +188 -0
- data/frontend/src/utils.ts +60 -0
- data/frontend/src/views/Alerts.vue +20 -0
- data/frontend/src/views/Artifact.vue +44 -0
- data/frontend/src/views/Configs.vue +20 -0
- data/frontend/src/views/EditRule.vue +44 -0
- data/frontend/src/views/NewRule.vue +26 -0
- data/frontend/src/views/Rule.vue +44 -0
- data/frontend/src/views/Rules.vue +20 -0
- data/frontend/tests/unit/utils.spec.ts +7 -0
- data/frontend/tsconfig.json +40 -0
- data/frontend/vite.config.js +24 -0
- data/lefthook.yml +10 -0
- data/lib/mihari/analyzers/base.rb +22 -5
- data/lib/mihari/analyzers/rule.rb +8 -29
- data/lib/mihari/commands/search.rb +16 -7
- data/lib/mihari/entities/rule.rb +1 -1
- data/lib/mihari/entities/tag.rb +1 -1
- data/lib/mihari/schemas/analyzer.rb +2 -7
- data/lib/mihari/schemas/rule.rb +1 -1
- data/lib/mihari/structs/config.rb +39 -16
- data/lib/mihari/structs/rule.rb +1 -1
- data/lib/mihari/version.rb +1 -1
- data/lib/mihari/web/public/assets/index-ac4e5ffa.js +50 -0
- data/lib/mihari/web/public/index.html +1 -1
- data/mihari.gemspec +5 -5
- metadata +97 -16
- data/.gitmodules +0 -0
- data/.overcommit.yml +0 -12
- data/lib/mihari/web/public/assets/index-cbe1734c.js +0 -50
checksums.yaml
CHANGED
@@ -1,7 +1,7 @@
|
|
1
1
|
---
|
2
2
|
SHA256:
|
3
|
-
metadata.gz:
|
4
|
-
data.tar.gz:
|
3
|
+
metadata.gz: af8606455171a48a892d634755c4aff3c7778b101aba5110ffdec248ea558e0c
|
4
|
+
data.tar.gz: 884ae738ee31ae3ec4fc4326bcc556492b5790e78652007cb6d013bf2f8e77e8
|
5
5
|
SHA512:
|
6
|
-
metadata.gz:
|
7
|
-
data.tar.gz:
|
6
|
+
metadata.gz: 4a1f8c7a513339aa1d50c79100f8db1d3f1d74889158f7726582c23fdd42afe4577e4a4a1509540b0fae5a1c68a1b1d19255cb107b9085b465805caca46c2d61
|
7
|
+
data.tar.gz: 4eb80ab4c57abb29ef09feffbd4ef303b655e7182f9149ddb5e625514ad0d585da39aa01cf1f1cc8494f8320e32bdf07b1aed5ea1e08cf250449b5d210e18675
|
data/build_frontend.sh
CHANGED
@@ -2,18 +2,10 @@
|
|
2
2
|
|
3
3
|
CURRENT_DIR=${PWD}
|
4
4
|
|
5
|
-
|
6
|
-
mkdir -p tmp
|
7
|
-
cd tmp
|
8
|
-
git clone https://github.com/ninoseki/mihari-frontend.git
|
9
|
-
|
10
|
-
cd mihari-frontend
|
5
|
+
cd frontend
|
11
6
|
npm install
|
12
7
|
npm run build
|
13
8
|
|
14
9
|
trash -r ${CURRENT_DIR}/lib/mihari/web/public/
|
15
10
|
mkdir -p ${CURRENT_DIR}/lib/mihari/web/public/
|
16
11
|
cp -r dist/* ${CURRENT_DIR}/lib/mihari/web/public
|
17
|
-
|
18
|
-
# remove tmp dir
|
19
|
-
rm -rf ${CURRENT_DIR}/tmp/mihari-frontend
|
@@ -0,0 +1,33 @@
|
|
1
|
+
module.exports = {
|
2
|
+
root: true,
|
3
|
+
env: {
|
4
|
+
node: true,
|
5
|
+
},
|
6
|
+
plugins: ["simple-import-sort"],
|
7
|
+
extends: [
|
8
|
+
"plugin:vue/vue3-essential",
|
9
|
+
"eslint:recommended",
|
10
|
+
"@vue/typescript/recommended",
|
11
|
+
"plugin:prettier/recommended",
|
12
|
+
],
|
13
|
+
parserOptions: {
|
14
|
+
ecmaVersion: 2020,
|
15
|
+
},
|
16
|
+
rules: {
|
17
|
+
"no-console": process.env.NODE_ENV === "production" ? "warn" : "off",
|
18
|
+
"no-debugger": process.env.NODE_ENV === "production" ? "warn" : "off",
|
19
|
+
"simple-import-sort/imports": "error",
|
20
|
+
"simple-import-sort/exports": "error",
|
21
|
+
},
|
22
|
+
overrides: [
|
23
|
+
{
|
24
|
+
files: [
|
25
|
+
"**/__tests__/*.{j,t}s?(x)",
|
26
|
+
"**/tests/unit/**/*.spec.{j,t}s?(x)",
|
27
|
+
],
|
28
|
+
env: {
|
29
|
+
jest: true,
|
30
|
+
},
|
31
|
+
},
|
32
|
+
],
|
33
|
+
};
|
data/frontend/.gitignore
ADDED
@@ -0,0 +1,25 @@
|
|
1
|
+
.DS_Store
|
2
|
+
node_modules
|
3
|
+
/dist
|
4
|
+
|
5
|
+
|
6
|
+
# local env files
|
7
|
+
.env.local
|
8
|
+
.env.*.local
|
9
|
+
|
10
|
+
# Log files
|
11
|
+
npm-debug.log*
|
12
|
+
yarn-debug.log*
|
13
|
+
yarn-error.log*
|
14
|
+
pnpm-debug.log*
|
15
|
+
|
16
|
+
# Editor directories and files
|
17
|
+
.idea
|
18
|
+
.vscode
|
19
|
+
*.suo
|
20
|
+
*.ntvs*
|
21
|
+
*.njsproj
|
22
|
+
*.sln
|
23
|
+
*.sw?
|
24
|
+
|
25
|
+
public/redoc-static.html
|
data/frontend/README.md
ADDED
data/frontend/index.html
ADDED
@@ -0,0 +1,21 @@
|
|
1
|
+
<!DOCTYPE html>
|
2
|
+
<html lang="en">
|
3
|
+
<head>
|
4
|
+
<meta charset="utf-8" />
|
5
|
+
<meta http-equiv="X-UA-Compatible" content="IE=edge" />
|
6
|
+
<meta name="viewport" content="width=device-width,initial-scale=1.0" />
|
7
|
+
<link rel="icon" href="/favicon.ico" />
|
8
|
+
<title>Mihari</title>
|
9
|
+
</head>
|
10
|
+
<body>
|
11
|
+
<noscript>
|
12
|
+
<strong
|
13
|
+
>We're sorry but Mihari doesn't work properly without JavaScript
|
14
|
+
enabled. Please enable it to continue.</strong
|
15
|
+
>
|
16
|
+
</noscript>
|
17
|
+
<div id="app"></div>
|
18
|
+
<script type="module" src="/src/main.ts"></script>
|
19
|
+
<!-- built files will be auto injected -->
|
20
|
+
</body>
|
21
|
+
</html>
|