-
-
Save syjcnss/b95c9b46e997f706afe954ba8630f87e to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/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