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

Failure when saving signatures with Rizzo #19

Closed
CreepNT opened this issue Apr 30, 2021 · 7 comments
Closed

Failure when saving signatures with Rizzo #19

CreepNT opened this issue Apr 30, 2021 · 7 comments
Assignees
Labels
bug Something isn't working

Comments

@CreepNT
Copy link

CreepNT commented Apr 30, 2021

When trying to save signatures from a PS2 ELF, located in a shared project, the script appears to run for a while then crashes with the following error :

RizzoSave.py> Running...
Building Rizzo signatures, this may take a few minutes...
Traceback (most recent call last):
  File "C:\Users\CreepNT\ghidra_scripts\RizzoSave.py", line 15, in <module>
    rizz = rizzo.Rizzo(currentProgram)
  File "__pyclasspath__/utils/rizzo.py", line 290, in __init__
  File "__pyclasspath__/utils/rizzo.py", line 612, in _generate
  File "__pyclasspath__/utils/rizzo.py", line 589, in _hash_function
  File "__pyclasspath__/utils/rizzo.py", line 556, in _hash_block
AttributeError: 'NoneType' object has no attribute 'isData'
RizzoSave.py> Finished!

As I would expect, no signature files are exported after this crash.

Ghidra Version : 9.2.2
Scripts located in C:\Users\CreepNT\ghidra_scripts

Any idea what could be cause this failure ? Maybe I'm missing a library ?

@fuzzywalls
Copy link
Collaborator

You shouldn’t be missing any libraries as all the scripts are self contained. Any chance you could attach the ELF in question or give me a link to it? I’ll look into it tonight (or more likely) early next week

@fuzzywalls fuzzywalls self-assigned this Apr 30, 2021
@fuzzywalls fuzzywalls added the bug Something isn't working label Apr 30, 2021
@CreepNT
Copy link
Author

CreepNT commented Apr 30, 2021

Sure enough, thanks a lot for having a look.
SCUS_974.65

@CreepNT
Copy link
Author

CreepNT commented Apr 30, 2021

A thought just crossed my head :
since this is a PS2 ELF, I had to use a plugin that adds a format (namely Ghidra-EmotionEngine).

Could the issue be related to this ?

@fuzzywalls
Copy link
Collaborator

It could. I’ll include it in my testing, thanks.

@fuzzywalls
Copy link
Collaborator

@CreepNT I did some digging into the problem. I think it stems from a bad function in the Ghidra-EmotionEngine project, and put a ticket in for them to fix it (if it is actually a problem) here. In the mean time I made a fix to Rizzo that will allow you to use it as is. It shouldn't be a problem unless they fix the ticket I submitted, at that point you will probably need to regenerate your Rizzo signatures.

@CreepNT
Copy link
Author

CreepNT commented May 3, 2021

Just tried the updated version and it worked perfectly.
Thanks a for taking time to pinpoint and fix the issue.

@fuzzywalls
Copy link
Collaborator

No problem, thanks for letting me know

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants