mirror of
https://github.com/NationalSecurityAgency/ghidra.git
synced 2026-05-29 22:35:38 +08:00
GP-4009 Introduced BSim functionality including support for postgresql,
elasticsearch and h2 databases. Added BSim correlator to Version Tracking.
This commit is contained in:
Executable
+25
@@ -0,0 +1,25 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Command-line script for interacting with a BSim database
|
||||
|
||||
# maximum heap memory (may be increased)
|
||||
MAXMEM=768M
|
||||
|
||||
# launch mode (fg, bg, debug, debug-suspend)
|
||||
LAUNCH_MODE=fg
|
||||
|
||||
#set debug port for debug mode if used
|
||||
|
||||
OS=`uname -s`
|
||||
|
||||
SED=/bin/sed
|
||||
if [ "$OS" = "Darwin" ]; then
|
||||
SED=/usr/bin/sed
|
||||
fi
|
||||
|
||||
LAUNCH_DIR=`echo $0 | $SED -e 's/[^\/]*$//'`
|
||||
if [ "$LAUNCH_DIR" = "" ]; then
|
||||
LAUNCH_DIR="./";
|
||||
fi
|
||||
|
||||
${LAUNCH_DIR}launch.sh $LAUNCH_MODE jdk "BSim" $MAXMEM "" ghidra.features.bsim.query.ingest.BSimLaunchable "$@"
|
||||
Executable
+30
@@ -0,0 +1,30 @@
|
||||
#!/bin/bash
|
||||
#
|
||||
# Command-line script for controlling (start/stop) the BSim database
|
||||
|
||||
# maximum heap memory (may be increased)
|
||||
MAXMEM=768M
|
||||
|
||||
# launch mode (fg, bg, debug, debug-suspend)
|
||||
LAUNCH_MODE=fg
|
||||
|
||||
#set debug port for debug mode if used
|
||||
|
||||
OS=`uname -s`
|
||||
MACHINE=`uname -m`
|
||||
|
||||
SED=/bin/sed
|
||||
if [ "$OS" = "Darwin" ]; then
|
||||
SED=/usr/bin/sed
|
||||
fi
|
||||
|
||||
LAUNCH_DIR=`echo $0 | $SED -e 's/[^\/]*$//'`
|
||||
if [ "$LAUNCH_DIR" = "" ]; then
|
||||
LAUNCH_DIR="./";
|
||||
fi
|
||||
|
||||
# Some JVM's with class data sharing enabled have issues with BSim starting with Ghidra's custom
|
||||
# classloader, so we will disable sharing
|
||||
VMARG_LIST="-Xshare:off"
|
||||
|
||||
${LAUNCH_DIR}launch.sh $LAUNCH_MODE jdk "BSimControl" $MAXMEM "${VMARG_LIST}" ghidra.features.bsim.query.BSimControlLaunchable "$@"
|
||||
Reference in New Issue
Block a user