Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
D
DCSG2900-ThreatTotal
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Requirements
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Locked files
Build
Pipelines
Jobs
Pipeline schedules
Test cases
Artifacts
Deploy
Releases
Package registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Code review analytics
Issue analytics
Insights
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
Johannes Barstad
DCSG2900-ThreatTotal
Commits
d4c84aff
Commit
d4c84aff
authored
3 years ago
by
Odin K. Henriksen
Browse files
Options
Downloads
Patches
Plain Diff
Output of tags and content in different languages bug fix
parent
05c2efcb
No related branches found
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
threat-total/src/components/source.js
+1
-1
1 addition, 1 deletion
threat-total/src/components/source.js
utils/validation.go
+3
-3
3 additions, 3 deletions
utils/validation.go
with
4 additions
and
4 deletions
threat-total/src/components/source.js
+
1
−
1
View file @
d4c84aff
...
@@ -57,7 +57,7 @@ if (props.Data === "") {
...
@@ -57,7 +57,7 @@ if (props.Data === "") {
<
/div
>
<
/div
>
<
/div
>
<
/div
>
<
div
className
=
""
>
<
div
className
=
""
>
<
p
>
Tags
:
{
props
.
Data
.
en
.
tags
}
<
/p
>
<
p
>
Tags
:
{
t
(
"
tags
"
)
}
<
/p
>
<
p
>
{
t
(
"
shortForm
"
)}
{
t
(
"
content
"
)}
<
/p
>
<
p
>
{
t
(
"
shortForm
"
)}
{
t
(
"
content
"
)}
<
/p
>
<
/div>
<
/div>
<
/div
>
<
/div
>
...
...
This diff is collapsed.
Click to expand it.
utils/validation.go
+
3
−
3
View file @
d4c84aff
...
@@ -156,7 +156,7 @@ func SetResponseObjectAlienVaultHash(jsonResponse AlienVaultHash, response *Fron
...
@@ -156,7 +156,7 @@ func SetResponseObjectAlienVaultHash(jsonResponse AlienVaultHash, response *Fron
response
.
EN
.
Status
=
"Safe"
response
.
EN
.
Status
=
"Safe"
response
.
EN
.
Content
=
"We have no information indicating that this file is malicious."
response
.
EN
.
Content
=
"We have no information indicating that this file is malicious."
response
.
NO
.
Content
=
"Trygg"
response
.
NO
.
Status
=
"Trygg"
response
.
NO
.
Content
=
"Vi har ingen informasjon som tyder på at dette er en ondsinnet fil."
response
.
NO
.
Content
=
"Vi har ingen informasjon som tyder på at dette er en ondsinnet fil."
}
else
{
}
else
{
response
.
EN
.
Status
=
"Risk"
response
.
EN
.
Status
=
"Risk"
...
@@ -197,11 +197,11 @@ func SetResponseObjectHybridAnalysisHash(jsonResponse HybridAnalysishash, respon
...
@@ -197,11 +197,11 @@ func SetResponseObjectHybridAnalysisHash(jsonResponse HybridAnalysishash, respon
response
.
NO
.
Status
=
"Trygg"
response
.
NO
.
Status
=
"Trygg"
response
.
NO
.
Content
=
"I henhold til informasjon gitt av HybridAnalysis tilsier ikke denne filen noen trussel."
response
.
NO
.
Content
=
"I henhold til informasjon gitt av HybridAnalysis tilsier ikke denne filen noen trussel."
}
else
{
}
else
{
response
.
EN
.
Status
=
"Unknown"
//Denne må byttes til at den er ukjent // grå farge elns på frontend.
response
.
EN
.
Status
=
"Unknown"
response
.
EN
.
Content
=
"This file hash is not known to Hybrid Analysis."
response
.
EN
.
Content
=
"This file hash is not known to Hybrid Analysis."
response
.
NO
.
Status
=
"Ukjent"
response
.
NO
.
Status
=
"Ukjent"
response
.
NO
.
Status
=
"Denne filhashen er ukjent for Hybrid Analysis."
response
.
NO
.
Content
=
"Denne filhashen er ukjent for Hybrid Analysis."
}
}
fmt
.
Println
(
jsonResponse
[
0
]
.
Verdict
)
fmt
.
Println
(
jsonResponse
[
0
]
.
Verdict
)
// Set the filename field if known
// Set the filename field if known
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment