Skip to content

Instantly share code, notes, and snippets.

View r2-0.9.6
#Radare2 0.9.6 release
### 2013-11-11 . CODENAME "SANDYCREAM"
http://www.radare.org/
![r2 screenshot](http://xvilka.me/r2-r2.png)
## In numbers!
* 1 man
* 8 months
@radare
radare / gist:7422577
Created Nov 11, 2013
haxm kernel module crash. 100% usage of syslogd
View gist:7422577
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: Panic:load_vmcs fail on vcpu_set_regs: 1
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_host_cr4_vmxe: 1
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_host_cr4 1626e0
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmxon_err 1
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmxon_addr 7c39f000
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmxon_err_type1 1
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmxon_err_type2 0
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmxon_err_type3 0
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmclear_err 0
Nov 12 00:33:45 pancakes-MacBook-Air kernel[0]: haxm_error: log_vmptrld_err 0
@radare
radare / gist:7425345
Created Nov 12, 2013
building shlr/crc32
View gist:7425345
Undefined symbols for architecture x86_64:
"_crc32", referenced from:
__zip_filerange_crc in zip_filerange_crc.o
_crc_read in zip_source_crc.o
_decrypt in zip_source_pkware.o
__zip_string_crc32 in zip_string.o
(maybe you meant: __zip_string_crc32)
"_deflate", referenced from:
_compress_read in zip_source_deflate.o
(maybe you meant: _zip_source_deflate)
View voidstrap.sh
#!/bin/sh
# voidstrap - bootstrap xbps from any *nix
# author: pancake - 2013
if [ -z "$1" ]; then
echo "Usage: voidstrap.sh /path/to/new/root"
exit 1
fi
VOIDROOT="$1"
VOIDPKG=base-chroot
@radare
radare / void-android.sh
Created Nov 13, 2013
script to install voidlinux on android/firefoxos devices via adb
View void-android.sh
#!/bin/sh
# TODO
# - check free disk
# - check return values for every command
V=/data/void
DNS=8.8.8.8
URL=http://xbps.nopcode.org/rootfs/
ROOTFS=void-raspberrypi-rootfs-20130811.tar.xz
View gist:9450383
** CID 1191329: Unchecked return value from library (CHECKED_RETURN)
/shlr/gdb/src/core.c: 414 in send_ack()
** CID 1191328: Unchecked return value from library (CHECKED_RETURN)
/shlr/gdb/src/core.c: 370 in send_vcont()
** CID 1191327: Unchecked return value from library (CHECKED_RETURN)
/shlr/gdb/src/core.c: 214 in gdbr_read_registers()
View fxos-mail-logcat
I/Gonk ( 125): Setting nice for pid 1184 to 1
I/Gonk ( 125): Changed nice for pid 1184 from 18 to 1.
I/Gecko ( 125): [Parent 125] WARNING: waitpid failed pid:1184 errno:10: file /home/geeksphone/FOS/peak/gecko/ipc/chromium/src/base/process_util_posix.cc, line 254
I/Gonk ( 125): Setting nice for pid 349 to 18
I/Gonk ( 125): Changed nice for pid 349 from 1 to 18.
D/wpa_supplicant( 1304): RTM_NEWLINK: operstate=1 ifi_flags=0x11043 ([UP][RUNNING][LOWER_UP])
D/wpa_supplicant( 1304): RTM_NEWLINK, IFLA_IFNAME: Interface 'wlan0' added
D/wpa_supplicant( 1304): nl80211: if_removed already cleared - ignore event
I/GeckoDump( 1184): LOG: pushCard for type: message_list
@radare
radare / RMeta.Add optimization
Last active Aug 29, 2015
RMeta.add optimization (too many strings in sdb array)
View RMeta.Add optimization
pancakes-iPhone:~ root# echo q | time r2 iOSApp
-- I love gradients.
26.39 real 24.83 user 0.00 sys
pancakes-iPhone:~ root# dpkg -i radare2_0.9.8.git5_iphoneos-arm.deb
(Reading database ... 11662 files and directories currently installed.)
Preparing to replace radare2 0.9.8.git4 (using radare2_0.9.8.git5_iphoneos-arm.deb) ...
Unpacking replacement radare2 ...
Setting up radare2 (0.9.8.git5) ...
pancakes-iPhone:~ root# echo q | time r2 iOSApp
-- This computer has gone to sleep.
View capstonecrash
[0x00000000]> e asm.arch=arm
[0x00000000]> e asm.bits=32
[0x00000000]> wx 00108100
[0x00000000]> pd 1
==15855== Use of uninitialised value of size 8
==15855== at 0x5EFF3FE: _ARM_getInstruction (in /var/lib/jenkins/workspace/radare2/libr/anal/libr_anal.so)
==15855== by 0x5F00642: ARM_getInstruction (in /var/lib/jenkins/workspace/radare2/libr/anal/libr_anal.so)
==15855== by 0x5ECEBF1: cs_disasm_ex (cs.c:469)
==15855== by 0x71EEFC0: disassemble (asm_arm_cs.c:31)
==15855== by 0x7264B67: r_asm_disassemble (asm.c:307)