mirror of
https://github.com/geohot/qira
synced 2025-03-13 02:23:07 +03:00
ida plugin works for mac
This commit is contained in:
parent
c45f780f8b
commit
e292329d00
5
.gitignore
vendored
5
.gitignore
vendored
@ -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
|
||||
|
18
ida/build.sh
18
ida/build.sh
@ -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
1197
ida/libwebsockets.h
Normal file
File diff suppressed because it is too large
Load Diff
BIN
ida/mac_libwebsockets.a
Normal file
BIN
ida/mac_libwebsockets.a
Normal file
Binary file not shown.
BIN
ida/qira_ida66_mac.pmc
Executable file
BIN
ida/qira_ida66_mac.pmc
Executable file
Binary file not shown.
Loading…
x
Reference in New Issue
Block a user