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

soc-faker logs windows eventlog (errors out) #33

Open
CryptoJones opened this issue May 12, 2023 · 0 comments
Open

soc-faker logs windows eventlog (errors out) #33

CryptoJones opened this issue May 12, 2023 · 0 comments

Comments

@CryptoJones
Copy link

running soc-faker logs windows eventlog doesn't work. Tracedump is as follows;
Test on Python 3.6, 3.10, and 3.17 on Windows Server 2016 and Windows Server 2022
Using Pip-installed and github source versions of soc-faker

C:\Users\Administrator\Downloads>soc-faker logs windows eventlog
Traceback (most recent call last):
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 196, in _run_module_as_main
return run_code(code, main_globals, None,
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\runpy.py", line 86, in run_code
exec(code, run_globals)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\Scripts\soc-faker.exe_main
.py", line 7, in
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\socfaker_main
.py", line 5, in main
fire.Fire(SocFaker())
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 141, in Fire
component_trace = _Fire(component, args, parsed_flag_args, context, name)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 466, in _Fire
component, remaining_args = _CallAndUpdateTrace(
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\fire\core.py", line 681, in _CallAndUpdateTrace
component = fn(*varargs, **kwargs)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\socfaker\windows.py", line 18, in eventlog
return WindowsEventLog(json=json).get(count=count, computer_name=computer_name, os_version=os_version)
File "C:\Users\Administrator\AppData\Local\Programs\Python\Python310\lib\site-packages\socfaker\windowseventlog.py", line 41, in get
md_file.rsplit('/', 1)[1].split('-')[1].strip('.md'),
IndexError: list index out of range

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

No branches or pull requests

1 participant