Skip to content

Instantly share code, notes, and snippets.

radare / gist:f0e26fbfeba327729e2778c9ca08d40a
Created Apr 14, 2016
python r2pipe script to enumerate all branches (calls and jumps)
View gist:f0e26fbfeba327729e2778c9ca08d40a
# ejecutar asi: r2 -qi /bin/ls
import r2pipe
r2 =
r2.cmd('s $S @ entry0') # ir al principio de la seccion de codigo
# direccion minima y maxima de la seccion de codigo
addr = int(r2.cmd('?v $S'), 16)
addr_end = int(r2.cmd('?v $S + $SS'), 16)
View gist:9403b4fb103b1b589387
# Template file for 'swift'
hostmakedepends="cmake pkg-config"
makedepends="ninja cmake icu swig clang python perl"
short_desc=" The Swift Programming Language"
maintainer="pancake <>"
View gist:2cbdddfb0f23f0663357
[pancake@koega radare2]$ rustc -vV
rustc 1.2.0-dev
binary: rustc
commit-hash: unknown
commit-date: unknown
host: x86_64-unknown-linux-gnu
release: 1.2.0-dev
[pancake@koega radare2]$ rustc -vV^C
[pancake@koega radare2]$ cargo -vV
cargo 0.4.0 (built 2015-08-17)
radare / gist:756ca69a44fa38d05448
Created Jul 28, 2015
Hashes of the Android Riskware infected APKs
View gist:756ca69a44fa38d05448
$ shasum -a 256 *.apk
2dd4654628b87baba7f1be281b5411cf297567554ff65bb5b418317e8c125a05 SystemLockMarket.apk
ea313d9d30679a2e9deff027ec90ec94f717787f40d79c17cc1d80539a1dce22 exam.fengyan.hunlianceshi-1.apk
f3b21690472edadbbcf1b0a87a25bbf1331e2f4607346e157753146e126bdda2 time1423014301478.apk
a78dc4a49a7421c406f0b4a14cd5fb527073ef2e427fb97ba0716fc7430de293 time1423014301480.apk
b6489c86dec2ba6275021d3cfa5e1c5a350fbcdc58c3ad867e0359e6a9835c0e time1423014301482.apk
e68a6e608bbfb97e9cf48e7e9fbcef077e5ad523ec9f480d55bbd56e864550db time1423014301483.apk
ec34c3fed8b2992e44316cc22826cbae931cf3e268dec324e70053c8346d39a5 time1423014301486.apk
9dbc15095c6194408f66bdaef32ed8f455cb913859403a82b989d251e1a5a670 time1423014301490.apk
View gist:a2cb01acfdee42a330ec
p_format.c: In function ‘r_print_format_register’:
p_format.c:895:63: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
if (!SEEVALUE) p->printf("%s : 0x%08"PFMT64x"\n", ri->name, p->get_register_value (p->reg, ri));
p_format.c:895:63: note: expected ‘struct RRegItem *’ but argument is of type ‘const struct RRegItem *’
p_format.c:896:38: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
else p->printf("0x%08"PFMT64x"\n", p->get_register_value (p->reg, ri));
p_format.c:896:38: note: expected ‘struct RRegItem *’ but argument is of type ‘const struct RRegItem *’
p_format.c:898:21: warning: passing argument 2 of ‘p->get_register_value’ discards ‘const’ qualifier from pointer target type
View gist:c996911b4f5f74046329
pair:scc pancake$ make
scc build options:
CFLAGS = -std=c99
CC = cc
cc -c -o die.o die.c
cc -c -o xcalloc.o xcalloc.c
cc -c -o xmalloc.o xmalloc.c
cc -c -o xrealloc.o xrealloc.c
cc -c -o xstrdup.o xstrdup.c
View gist:139df033dfafa8b86171
$ du -hs *.pdf
288K bs3c2k9.pdf
356K bs3c-nibble.pdf
780K condret-r2talk.pdf
264K lacon2k10-nibble.pdf
268K lacon2k10-pancake.pdf
1.8M lacon2k11.pdf
264K lacon-radare-2008.pdf
476K map-r1.pdf
256K map-r2.pdf
View gist:36d2f7df5bc19ef8063f
// this file is included when compiling src/bin/*.rs or tests
// maybe we shouldn't define 'main' here
extern crate radeco;
use std::env;
use radeco::frontend::esil;
fn parse_verbose<'a> (p: &mut esil::Parser, expression: &'a String) {
let expstr = expression.as_str();
println!("< {}", expression);
View gist:9d871b76835cd9ba9123
/* sdb-nan.js - // 2015 */
#include <nan.h>
#include <sdb.h>
using namespace v8;
class Database : public node::ObjectWrap {
// static void Init(Handle<Object> exports);
View gist:abb168ed43947b80529c
extern crate libc;
use libc::{ c_void };
use std::env;
fn atoi(k: &str) -> i32 {
match k.parse::<i32>() {
Ok(val) => val,
Err(_) => 0