ida plugin works for mac

This commit is contained in:
George Hotz 2014-07-04 23:29:22 -07:00
parent c45f780f8b
commit e292329d00
6 changed files with 1213 additions and 7 deletions

5
.gitignore vendored
View File

@ -4,8 +4,9 @@ web/.meteor/local
tests/a.out
tests/*.o
*.pyc
ida_plugin/*.o
ida_plugin/qira.plx
ida/*.o
ida/qira.plx
ida/libwebsockets.a
tests/idb
qiradb/qiradb
old/qiradb/qiradb

View File

@ -1,13 +1,21 @@
#!/bin/sh
set -e
SDKROOT=~/build/idasdk66
IDAROOT=~/ida-6.6
unamestr=$(uname)
if [[ "$unamestr" == 'Linux' ]]; then
SDKROOT=~/build/idasdk66
IDAROOT=~/ida-6.6
ln -sf linux_libwebsockets.a libwebsockets.a
elif [[ "$unamestr" == 'Darwin' ]]; then
SDKROOT=~/idasrc
IDAROOT="/Applications/IDA Pro 6.6/idaq.app/Contents/MacOS/"
ln -sf mac_libwebsockets.a libwebsockets.a
fi
g++ template.cpp -m32 -fPIC -D__IDP__ -D__PLUGIN__ -c -D__LINUX__ -I$SDKROOT/include
g++ -m32 --shared template.o -L$IDAROOT -lida -o qira.plx libwebsockets.a -lcrypto -lz -lssl -lpthread
g++ template.cpp -m32 -fPIC -D__IDP__ -D__PLUGIN__ -c -D__LINUX__ -I . -I$SDKROOT/include
g++ -m32 --shared template.o "-L$IDAROOT" -lida -o qira.plx libwebsockets.a -lcrypto -lz -lssl -lpthread
sha1sum qira.plx
if [ "$(diff qira.plx $IDAROOT/plugins/qira.plx)" != "" ]; then
if [ "$(diff qira.plx "$IDAROOT/plugins/qira.plx")" != "" ]; then
echo "copying plugin"
cp qira.plx $IDAROOT/plugins
fi

1197
ida/libwebsockets.h Normal file

File diff suppressed because it is too large Load Diff

BIN
ida/mac_libwebsockets.a Normal file

Binary file not shown.

BIN
ida/qira_ida66_mac.pmc Executable file

Binary file not shown.