Skip to content

Instantly share code, notes, and snippets.

@zerotypic
zerotypic / idapython_asyncio.py
Last active March 11, 2022 12:38
Get asyncio working in IDAPython
# Insert this into your idapythonrc.py file.
from PyQt5.QtWidgets import QApplication
import qasync
import asyncio
qapp = QApplication.instance()
# Requires qasync from here: https://github.com/zerotypic/qasync/tree/evloop_already_running, if not already merged
loop = qasync.QEventLoop(qapp, already_running=True)
asyncio.set_event_loop(loop)
@esterTion
esterTion / coneshell_extract_metadata.cpp
Last active May 25, 2021 12:59
Extract metadata from ConeShell (Cygames) processed binary
#include <cstdio>
#include <iostream>
#include <cstdint>
using namespace std;
void writeReverse(FILE* f, uint32_t num)
{
char* buf[4];
*(uint32_t*)buf = 0xFFFFFFFF - num;
fwrite(buf, 4, 1, f);
@nickwph
nickwph / aosp-jack-error-fix.md
Created October 13, 2015 20:00
Error when Building AOSP

if you encounter this error

out/host/linux-x86/bin/jack: line 131: 31049 Killed                  $SERVER_PRG $SERVER_PORT_SERVICE $SERVER_PORT_ADMIN $SERVER_COUNT $SERVER_NB_COMPILE $SERVER_TIMEOUT >> $SERVER_LOG 2>&1
ERROR: Cannot launch Jack server
make: *** [out/target/common/obj/JAVA_LIBRARIES/framework_intermediates/with-local/classes.dex] Error 41
make: *** Waiting for unfinished jobs....

its because ~/.jack has an incorrect permission you can fix it with