Skip to content

Add hash types to ioc translation settings #7

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
Nov 14, 2023
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -11,9 +11,11 @@ export const DropdownIocSettingsMenu: FC = () => {
iocTypesFields,
exceptionsField,
iocsPerQueryField,
hashTypesFields,
onChangeIocTypes,
onChangeExceptions,
onChangeIocsPerQuery,
onChangeHashTypes,
iocTypeErrorMessage,
} = useIocSettingsMenu();

Expand All @@ -35,6 +37,18 @@ export const DropdownIocSettingsMenu: FC = () => {
)
}
</div>
<div className="ioc-settings-menu__label m-b-10">
<Label label="Hash Type"/>
</div>
<div className="ioc-settings-menu-list m-b-14" onChange={onChangeHashTypes}>
{
hashTypesFields.map((field) => (
<div className="ioc-settings-menu-list__item m-r-16 m-b-6" key={field.name}>
<Checkbox label={field.label} checked={field.checked} name={field.name}/>
</div>
))
}
</div>
<div className="ioc-settings-menu__label m-b-10">
<Label label="IOCs per query" />
</div>
Expand Down
9 changes: 8 additions & 1 deletion uncoder-os/src/components/TextEditor/TextEditor.sass
Original file line number Diff line number Diff line change
Expand Up @@ -40,4 +40,11 @@
.ace_editor
&.ace_autocomplete
width: 500px

.ace_scroller
padding: 0
.ace_text-layer
width: calc(100% - 14px)
.ace_scrollbar
&.ace_scrollbar-v,
&.ace_scrollbar-h
+scrollbars
9 changes: 7 additions & 2 deletions uncoder-os/src/reduxData/iocSettings/iocSettings.ts
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
import type { CaseReducer, PayloadAction } from '@reduxjs/toolkit';
import { createSelector, createSlice } from '@reduxjs/toolkit';
import { IocSettingsStateType, RootState } from '../RootStore';
import { BasicIocType, IocParsingRulesType } from '../../types/iocsTypes';
import { BasicIocType, HashIocType, IocParsingRulesType } from '../../types/iocsTypes';

type IocSettingsReducers = {
setIocPerQuery: CaseReducer<IocSettingsStateType, PayloadAction<number>>;
Expand All @@ -22,7 +22,12 @@ const initialState: IocSettingsStateType = {
BasicIocType.Url,
BasicIocType.Hash,
],
includeHashTypes: [],
includeHashTypes: [
HashIocType.Md5,
HashIocType.Sha1,
HashIocType.Sha256,
HashIocType.Sha512,
],
exceptions: '',
iocParsingRules: [
IocParsingRulesType.RemovePrivateAndReservedIps,
Expand Down
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy