Skip to content

Instantly share code, notes, and snippets.

$ rasm2 -a arm -b 16 -D e8b1d0f80090b9f80cc0d9f808900cea010c09ebcc09d9f800c09cea010f02d1
0x00000000 2 e8b1 cbz r0, 0x3e
0x00000002 4 d0f80090 ldr.w sb, [r0]
0x00000006 4 b9f80cc0 ldrh.w ip, [sb, 0xc]
0x0000000a 4 d9f80890 ldr.w sb, [sb, 8]
0x0000000e 4 0cea010c and.w ip, ip, r1
0x00000012 4 09ebcc09 add.w sb, sb, ip, lsl 3
0x00000016 4 d9f800c0 ldr.w ip, [sb]
0x0000001a 4 9cea010f teq.w ip, r1
0x0000001e 2 02d1 bne 0x26
extern crate libc;
use libc::{ c_void };
use std::env;
fn atoi(k: &str) -> i32 {
match k.parse::<i32>() {
Ok(val) => val,
Err(_) => 0
}
/* sdb-nan.js - pancake@nopcode.org // 2015 */
#include <nan.h>
#include <sdb.h>
using namespace v8;
class Database : public node::ObjectWrap {
public:
// static void Init(Handle<Object> exports);
// 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);
$ 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
pair:scc pancake$ make
scc build options:
CFLAGS = -std=c99
LDFLAGS = -s
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
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
@radare
radare / gist:756ca69a44fa38d05448
Created July 28, 2015 16:30
Hashes of the Android Riskware infected APKs
$ shasum -a 256 *.apk
2dd4654628b87baba7f1be281b5411cf297567554ff65bb5b418317e8c125a05 SystemLockMarket.apk
33b590ba1e064c5f19b536d40ba2719bf34f6884fa397f062e9b9e4ee4d9be0a com.skymobi.pay.opplugin_V2006.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
@radare
radare / gist:2cbdddfb0f23f0663357
Created September 9, 2015 13:42
rust/cargo -vV
[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)
# Template file for 'swift'
pkgname=swift
version=2.2
revision=1
build_style=cmake
hostmakedepends="cmake pkg-config"
makedepends="ninja cmake icu swig clang python perl"
short_desc=" The Swift Programming Language"
maintainer="pancake <pancake@nopcode.org>"
license="Apache-2.0"