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

Report HTML file has no results and no *.brick files are created after brick run #3

Open
nstarke opened this issue Sep 21, 2021 · 1 comment

Comments

@nstarke
Copy link
Contributor

nstarke commented Sep 21, 2021

Hello,
I ran brick against a UEFI image I pulled using chipsec, and I'm seeing that the brick script runs successfully, but there are 0 results in the outputted html file. I also don't see any *.brick files being created. This seemed odd that there were no results at all, so I thought I would ask for guidance on where the *.brick files are written to the filesystem so I can debug the issue myself. Thanks for your help.

@nstarke
Copy link
Contributor Author

nstarke commented Sep 21, 2021

I was able to get past this problem by making a small patch:

diff --git a/brick/ida/utils/brick_utils.py b/brick/ida/utils/brick_utils.py
index b40fb67..4535a0d 100644
--- a/brick/ida/utils/brick_utils.py
+++ b/brick/ida/utils/brick_utils.py
@@ -98,9 +98,9 @@ def temp_env():
     finally:
         os.environ = original_env
 
-try:
-    from builtins import execfile
-except NameError:
-    def execfile(fn, globals=None, locals=None):
-        return exec(open(fn).read(), globals, locals)
+# try:
+#     from builtins import execfile
+# except NameError:
+def execfile(fn, globals=None, locals=None):
+    return exec(open(fn).read(), globals, locals)
         
\ No newline at end of file

After applying this patch I see the brick files are created.

If this is a desired change I am happy to create a PR. If not, I will close this issue. Thanks!

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