Skip to content

Instantly share code, notes, and snippets.

#!/usr/bin/perl -w
use strict;
use Getopt::Long;
my @showopts = ();
my %shows = ("topic" => 0, "durability" => 0, "localdisc" => 0, "remotedisc" => 0, "user" => 1, "ack" => 0, "throttle" => 0, "block" => 0, "rematch" => 0, "in" => 1, "out" => 1, "partition" => 0, "builtin" => 0, "mtreader" => 0, "limit" => 1, "warn" => 1, "tstamp" => 0, "topic-filter" => 0, "compact" => 0, "alldest" => 0, "qos" => 0);
my $topic_filter = '.';
my $topic_xfilter = '$^';
my $data_filter = '.?';
Things done to qnx toolchain:
1. Compile libiconv:
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 CC=/opt/qnx650/host/linux/x86/usr/bin/arm-unknown-nto-qnx6.5.0-gcc ./configure --host=arm-unknown-nto-qnx6.5.0 --prefix=`pwd`/../install
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make install
2. Compile gettext:
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 CC=/opt/qnx650/host/linux/x86/usr/bin/arm-unknown-nto-qnx6.5.0-gcc ./configure --host=arm-unknown-nto-qnx6.5.0 --prefix=`pwd`/../install
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make
QNX_HOST=/opt/qnx650/host QNX_TARGET=/opt/qnx650/target/qnx6 make install
@aohwang
aohwang / mlil_slice.py
Created October 28, 2018 14:42 — forked from joshwatson/mlil_slice.py
MLIL Slicing in Binary Ninja
from binaryninja import HighlightStandardColor, PluginCommand
def do_backward_slice(instruction, function):
# switch to SSA form (this does nothing if it's already SSA).
instruction_queue = set([instruction.ssa_form.instr_index])
visited_instructions = set()
variables = set()