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

Failed to load target #40

Closed
AlastairCrowley opened this issue Dec 12, 2023 · 4 comments
Closed

Failed to load target #40

AlastairCrowley opened this issue Dec 12, 2023 · 4 comments

Comments

@AlastairCrowley
Copy link

Hi,
i recently started trying dissect but i get error messages all the time. My command was:

target-query /mnt/SCHARDT.001 -f hostname,domain,os,version,ips -d ';'
2023-12-12T13:19:53.452782Z [error ] Unable to import dissect.target.plugins.filesystem.yara [dissect.target.plugin]
2023-12-12T13:19:53.605162Z [error ] /mnt/SCHARDT.001: Failed to load target with loader RawLoader('/mnt/SCHARDT.001')

TargetError: Failed to load target: /mnt/SCHARDT.001

Traceback (most recent call last):
File "/usr/local/bin/target-query", line 8, in
sys.exit(main())
^^^^^^
File "/usr/local/lib/python3.11/dist-packages/dissect/target/tools/utils.py", line 250, in wrapper
return func(*args, **kwargs)
^^^^^^^^^^^^^^^^^^^^^
File "/usr/local/lib/python3.11/dist-packages/dissect/target/tools/query.py", line 243, in main
for target in Target.open_all(args.targets, args.children):
File "/usr/local/lib/python3.11/dist-packages/dissect/target/target.py", line 307, in open_all
raise TargetError(f"Failed to find any loader for targets: {paths}")
dissect.target.exceptions.TargetError: Failed to find any loader for targets: ['/mnt/SCHARDT.001']

Do you have any ideas, what I'm doing wrong?
Thanks for your help.

p.s.: There is a longer and more detailed error output if you need it.

@DissectBot
Copy link

Hi @AlastairCrowley

Did you also download the rest of the SCHARDT files? Because they are also needed.

@AlastairCrowley
Copy link
Author

Ok, that was the problem. Thank you.
Now i only have one more problem. Maybe you could help me with that one too.
I still get the error message:

[error ] Unable to import dissect.target.plugins.filesystem.yara [dissect.target.plugin]

@DissectBot
Copy link

DissectBot commented Dec 12, 2023

You can ignore that warning if you do not need yara. If you need it you can install the yara-python package.
Running your command with -vv (or more) should show you the error message more detailed.

@AlastairCrowley
Copy link
Author

Ok, thank you very much for your fast support.

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

2 participants