bootleg / ret-sync

ret-sync is a set of plugins that helps to synchronize a debugging session (WinDbg/GDB/LLDB/OllyDbg2/x64dbg) with IDA/Ghidra/Binary Ninja disassemblers.
GNU General Public License v3.0
2.05k stars 263 forks source link

Building ret-sync for Ghidra 10.3.1 #108

Open saidelike opened 1 year ago

saidelike commented 1 year ago

See https://github.com/NationalSecurityAgency/ghidra/issues/4962

With the below changes, it builds fine:

C:\ret-sync>git diff --cached
diff --git a/ext_ghidra/src/main/help/help/shared/Frontpage.css b/ext_ghidra/src/main/help/help/shared/DefaultStyle.css
similarity index 100%
rename from ext_ghidra/src/main/help/help/shared/Frontpage.css
rename to ext_ghidra/src/main/help/help/shared/DefaultStyle.css
diff --git a/ext_ghidra/src/main/help/help/topics/retsync/help.html b/ext_ghidra/src/main/help/help/topics/retsync/help.html
index 8f858d2..1f9d6a1 100644
--- a/ext_ghidra/src/main/help/help/topics/retsync/help.html
+++ b/ext_ghidra/src/main/help/help/topics/retsync/help.html
@@ -10,7 +10,7 @@
     <META name="ProgId" content="FrontPage.Editor.Document">

     <TITLE>Skeleton Help File for a Module</TITLE>
-    <LINK rel="stylesheet" type="text/css" href="../../shared/Frontpage.css">
+    <LINK rel="stylesheet" type="text/css" href="help/shared/DefaultStyle.css">
   </HEAD>

   <BODY>
n3x77 commented 1 year ago

Thanks @saidelike for the hint, also works ion current ghidra version 10.3.2.

sud0why commented 1 year ago

Thanks too!

SweDevDoesTech commented 1 year ago

Thanks!

ognz commented 11 months ago

Thank you so much, @saidelike ! Confirmed working on Ghidra 10.5 DEV (20231213).

Ebiroll commented 10 months ago

Also works for ghidra_11.0_PUBLIC

rblakeslee commented 8 months ago

Also works for ghidra_11.0_PUBLIC

I tried over and over on ubuntu to compile this with the changes, and no matter what it kept failing at the help file, with errors like this:

Exception in thread "main" ghidra.util.exception.AssertException: Errors parsing HTML file: help.html Incorrect stylesheet defined - none match help/shared/DefaultStyle.css in file /home/box/ret-sync/ext_ghidra/src/main/help/help/topics/retsync/help.html Discovered stylesheets: [/home/box/ret-sync/ext_ghidra/src/main/help/help/shared/DefaultStyle.css]

DefaultStyle is referenced in the HTML, renamed in the shared folder, and it says it discovered it, and fails anyway. I'm at my wits end of this, so I just forced it to run the 10.2 version that I could find pre-built. I would prefer to have it compile, so if anyone has any ideas as to what's going on...

Ebiroll commented 7 months ago

Also works for ghidra_11.0_PUBLIC

I tried over and over on ubuntu to compile this with the changes, and no matter what it kept failing at the help file, with errors like this:

Exception in thread "main" ghidra.util.exception.AssertException: Errors parsing HTML file: help.html Incorrect stylesheet defined - none match help/shared/DefaultStyle.css in file /home/box/ret-sync/ext_ghidra/src/main/help/help/topics/retsync/help.html Discovered stylesheets: [/home/box/ret-sync/ext_ghidra/src/main/help/help/shared/DefaultStyle.css]

Do not forget the important step, rename from ext_ghidra/src/main/help/help/shared/Frontpage.css to ext_ghidra/src/main/help/help/shared/DefaultStyle.css . I used Alpine in WSL2. Also note that I edited Extensions/Ghidra/Skeleton/src/main/help/help/topics/skeleton/help.html