Skip to content

Instantly share code, notes, and snippets.

@syjcnss
Last active August 11, 2020 11:14
Show Gist options
  • Save syjcnss/b95c9b46e997f706afe954ba8630f87e to your computer and use it in GitHub Desktop.
Save syjcnss/b95c9b46e997f706afe954ba8630f87e to your computer and use it in GitHub Desktop.
#!/bin/bash
IDA_PATH=/opt/idapro-7.4/
base=`basename $0`
fn=$1
if [ "$#" -ne 1 ]; then
exe=$IDA_PATH/$base
else
if [ -L $1 ]; then
fn=`readlink $1`
fi
if file $fn | grep -q '64-bit'; then
exe=$IDA_PATH/ida64
elif file $fn | grep -q '32-bit'; then
exe=$IDA_PATH/ida
else
exe=$IDA_PATH/$base
fi
fi
nohup $exe $fn &>/dev/null &
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment