[go: nahoru, domu]

Skip to content
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

bash2 compatible array #8

Merged
merged 2 commits into from
Feb 20, 2021
Merged

bash2 compatible array #8

merged 2 commits into from
Feb 20, 2021

Conversation

ruppde
Copy link
Contributor
@ruppde ruppde commented Jan 26, 2021

uses a pseudo hash function to speed up hash-ioc search. only useful for lots of iocs

takes 15 sec on my machine to read the signature base iocs (which could be speed up by converting them beforehand and storing them diretly in hash-iocs.txt, but then runs about twice as fast.

uses a pseudo hash function to speed up hash-ioc search. only useful for lots of iocs

takes 15 sec on my machine to read the signature base iocs (which could be speed up by converting them beforehand and storing them diretly in hash-iocs.txt, but then runs about twice as fast.
lots faster, this works at least back to bash 2.01.1
@ruppde
Copy link
Contributor Author
ruppde commented Jan 27, 2021

now this is usable, found that even bash2 can do echo $((0xffffffff)) so pseudo hash is now the first hex digits converted to decimal. faster in all occasions and doesn't slow down this much with big hash-iocs.txt

@ruppde ruppde changed the title experimantal, bash2 compatible array bash2 compatible array Feb 2, 2021
@Neo23x0 Neo23x0 merged commit fcde372 into Neo23x0:master Feb 20, 2021
@ruppde
Copy link
Contributor Author
ruppde commented Feb 20, 2021

The big advantage of this array is, that you can now include the complete signature-base hash-iocs.txt without slowing fenrir down to a crawl:
default hash-iocs.txt (98 lines)
real 1m47,146s

signature-base hash-iocs.txt (9621 lines)
real 2m4,212s

signature-base hash-iocs.txt with old fenrir:
real 7m59,527s

measured with:
time ./fenrir.sh ../stuff

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants