mirror of
https://github.com/geohot/qira
synced 2025-03-13 10:33:30 +03:00
windows plugin built by friendly googler
This commit is contained in:
parent
99558d20f4
commit
6a2ec78214
BIN
ida/bin/qira_ida66_windows.plw
Normal file
BIN
ida/bin/qira_ida66_windows.plw
Normal file
Binary file not shown.
@ -7,13 +7,13 @@ if [[ "$unamestr" == 'Linux' ]]; then
|
||||
IDAROOT=~/ida-6.6
|
||||
OUTPUT="qira.plx"
|
||||
OUTPUT64="qira.plx64"
|
||||
ln -sf linux_libwebsockets.a libwebsockets.a
|
||||
ln -sf libs/linux_libwebsockets.a libwebsockets.a
|
||||
elif [[ "$unamestr" == 'Darwin' ]]; then
|
||||
SDKROOT=~/idasrc
|
||||
IDAROOT="/Applications/IDA Pro 6.6/idaq.app/Contents/MacOS/"
|
||||
OUTPUT="qira.pmc"
|
||||
OUTPUT64="qira.pmc64"
|
||||
ln -sf mac_libwebsockets.a libwebsockets.a
|
||||
ln -sf libs/mac_libwebsockets.a libwebsockets.a
|
||||
fi
|
||||
|
||||
# build 32
|
||||
|
@ -6,7 +6,7 @@
|
||||
//#define DEBUG
|
||||
|
||||
// ***************** WEBSOCKETS *******************
|
||||
#include <libwebsockets.h>
|
||||
#include "libwebsockets.h"
|
||||
|
||||
static int callback_http(struct libwebsocket_context* context,
|
||||
struct libwebsocket* wsi,
|
||||
@ -85,7 +85,11 @@ static void update_address(const char *type, ea_t addr) {
|
||||
ws_send(tmp);
|
||||
}
|
||||
|
||||
#ifdef _WIN32
|
||||
static int __stdcall hook(void *user_data, int event_id, va_list va) {
|
||||
#else
|
||||
static int hook(void *user_data, int event_id, va_list va) {
|
||||
#endif
|
||||
static ea_t old_addr = 0;
|
||||
ea_t addr;
|
||||
if (event_id == view_curpos) {
|
||||
@ -145,7 +149,7 @@ int websocket_thread(void *) {
|
||||
|
||||
void start_websocket_thread() {
|
||||
websockets_running = 1;
|
||||
websockets_thread = qthread_create(websocket_thread, NULL);
|
||||
websockets_thread = qthread_create((qthread_cb_t)websocket_thread, NULL);
|
||||
}
|
||||
|
||||
void exit_websocket_thread() {
|
||||
@ -155,19 +159,19 @@ void exit_websocket_thread() {
|
||||
|
||||
// ***************** IDAPLUGIN BOILERPLATE *******************
|
||||
|
||||
int IDAP_init(void) {
|
||||
int idaapi IDAP_init(void) {
|
||||
hook_to_notification_point(HT_VIEW, hook, NULL);
|
||||
start_websocket_thread();
|
||||
return PLUGIN_KEEP;
|
||||
}
|
||||
|
||||
void IDAP_term(void) {
|
||||
void idaapi IDAP_term(void) {
|
||||
unhook_from_notification_point(HT_VIEW, hook);
|
||||
exit_websocket_thread();
|
||||
return;
|
||||
}
|
||||
|
||||
void IDAP_run(int arg) {
|
||||
void idaapi IDAP_run(int arg) {
|
||||
msg("installing book\n");
|
||||
return;
|
||||
}
|
||||
|
Loading…
x
Reference in New Issue
Block a user