Compare commits

...

4 Commits

Author SHA1 Message Date
Guus Waals 1bbe4bf3c7 Separate Eclipse folder cause otherwise vscode fucks up 2025-06-02 11:28:31 +08:00
Guus Waals 1835eecb49 Clean classpath 2025-06-02 11:07:11 +08:00
Guus Waals 7186b95de4 Add ignore 2025-06-02 10:56:02 +08:00
Guus Waals 3c6c7a6f65 Move java src 2025-06-02 10:53:30 +08:00
31 changed files with 18 additions and 29 deletions

View File

@ -24,6 +24,7 @@
<classpathentry kind="src" path="Ghidra VersionTracking scripts"/> <classpathentry kind="src" path="Ghidra VersionTracking scripts"/>
<classpathentry kind="src" path="Ghidra WildcardAssembler scripts"/> <classpathentry kind="src" path="Ghidra WildcardAssembler scripts"/>
<classpathentry kind="src" path="Ghidra XEXLoaderWV scripts"/> <classpathentry kind="src" path="Ghidra XEXLoaderWV scripts"/>
<classpathentry kind="src" path="Home scripts"/>
<classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/> <classpathentry kind="con" path="org.eclipse.jdt.junit.JUNIT_CONTAINER/4"/>
<classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-21.0.7.6-hotspot"/> <classpathentry kind="con" path="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/jdk-21.0.7.6-hotspot"/>
<classpathentry kind="lib" path="C:/Projects/ghidra_11.3.2_PUBLIC/Ghidra/Processors/68000/lib/68000.jar" sourcepath="C:/Projects/ghidra_11.3.2_PUBLIC/Ghidra/Processors/68000/lib/68000-src.zip"> <classpathentry kind="lib" path="C:/Projects/ghidra_11.3.2_PUBLIC/Ghidra/Processors/68000/lib/68000.jar" sourcepath="C:/Projects/ghidra_11.3.2_PUBLIC/Ghidra/Processors/68000/lib/68000-src.zip">

1
GhidraScripts/Eclipse/.gitignore vendored Normal file
View File

@ -0,0 +1 @@
bin/

View File

@ -140,5 +140,21 @@
<type>2</type> <type>2</type>
<location>C:/Users/Guus/AppData/Roaming/ghidra/ghidra_11.3.2_PUBLIC/Extensions/XEXLoaderWV/ghidra_scripts</location> <location>C:/Users/Guus/AppData/Roaming/ghidra/ghidra_11.3.2_PUBLIC/Extensions/XEXLoaderWV/ghidra_scripts</location>
</link> </link>
<link>
<name>Home scripts</name>
<type>2</type>
<location>C:/Users/Guus/ghidra_scripts</location>
</link>
</linkedResources> </linkedResources>
<filteredResources>
<filter>
<id>1748833253221</id>
<name></name>
<type>30</type>
<matcher>
<id>org.eclipse.core.resources.regexFilterMatcher</id>
<arguments>node_modules|\.git|__CREATED_BY_JAVA_LANGUAGE_SERVER__</arguments>
</matcher>
</filter>
</filteredResources>
</projectDescription> </projectDescription>

View File

@ -1 +0,0 @@
bin

View File

@ -1,28 +0,0 @@
// @category _Reman3
// @menupath Reman3.Test
// @importpackage org.sqlite
import java.util.List;
import ghidra.app.script.GhidraScript;
import re3lib.FunctionDatabase;
import re3lib.RemanConfig;
public class Test extends GhidraScript {
@Override
public void run() throws Exception {
RemanConfig.INSTANCE = new RemanConfig(this);
// Example SQLite usage
try (FunctionDatabase db = new FunctionDatabase(this)) {
List<FunctionDatabase.FunctionEntry> entries = db.loadAllEntries();
for (FunctionDatabase.FunctionEntry entry : entries) {
println("entry.name: " + entry.name + " entry.address: " + entry.address + " entry.type: " + entry.type
+ " calling_convention: " + entry.callingConvention + " return_type: " + entry.returnType);
if (!entry.parameterNames.isEmpty()) {
println(" parameters: " + entry.parameterNames + " | types: " + entry.parameterTypes);
}
}
}
}
}