OTRF / OSSEM

Open Source Security Events Metadata (OSSEM)
MIT License
1.24k stars 215 forks source link

getDictionaryName Does not parse dictionary filenames #128

Open m3rcury3 opened 2 weeks ago

m3rcury3 commented 2 weeks ago

The method ossem.getDictionaryName does not parse dictionary filenames. Possible because of Github pages format change. It looks for the string ' <span class="css-truncate css-truncate-target d-block width-fit"' to start parsing but this string is not in the page so it returns blank results.

Steps to reproduce:

# Import ossem and pandas:
from openhunt import ossem
import pandas as pd
pd.set_option('display.max_colwidth', None)

# Get dictionary names (Should not return zero if it works):
security_auditing_events = ossem.getDictionaryName('Windows','Security')
print(len(security_auditing_events), " dictionaries' names collected!!")
0  dictionaries' names collected!!