// GhidraScript: print little-endian dwords as hex, signed integers, and floats. // Usage: DumpData.java 0x006fcbf0 32 import ghidra.app.script.GhidraScript; import ghidra.program.model.address.Address; public class DumpData extends GhidraScript { @Override public void run() throws Exception { String[] args = getScriptArgs(); if (args == null || args.length != 2) { printerr("DumpData: needs address and dword count"); return; } Address base = toAddr(Long.decode(args[0])); int count = Integer.decode(args[1]); for (int i = 0; i < count; ++i) { Address address = base.add(i * 4L); int value = getInt(address); println(address + " 0x" + String.format("%08x", value) + " int=" + value + " float=" + Float.intBitsToFloat(value)); } } }