Skip to content

Instantly share code, notes, and snippets.

~/pyenv/sources/2.7.3 ~
x Python-2.7.3/
x Python-2.7.3/PC/
x Python-2.7.3/PC/py.ico
x Python-2.7.3/PC/testpy.py
x Python-2.7.3/PC/pyconfig.h
x Python-2.7.3/PC/_msi.c
x Python-2.7.3/PC/pyc.ico
x Python-2.7.3/PC/icons.mak
x Python-2.7.3/PC/frozen_dllmain.c
@s1341
s1341 / gist:f1ae2e0079dc5f3500c3
Created March 24, 2015 10:26
qnx toolchain for frida
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
@s1341
s1341 / gist:8df970eec5450b5e36bf
Created April 28, 2015 14:10
call_in_process
#include <errno.h>
#include <fcntl.h>
#include <stdarg.h>
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
#include <sys/debug.h>
#include <sys/procfs.h>
#include <unistd.h>
This file has been truncated, but you can view the full file.
/GumJS/Script/invalid_script_should_return_null: DUK [DD] duk_heap_alloc.c:941 (duk_heap_alloc): HEAP: INIT STRINGS
[DDD] duk_heap_alloc.c:394 (duk__init_heap_strings): intern built-in string 0
[DDD] duk_util_hashprime.c:68 (duk_util_get_hash_prime): size=0, curr=23
[DDD] duk_util_hashprime.c:68 (duk_util_get_hash_prime): size=23, curr=23
[DDD] duk_heap_stringtable.c:651 (duk__resize_strtab_raw_probe): attempt to resize stringtable: 17 entries, 68 bytes, 0 used, 0% load -> 23 entries, 92 bytes, 0 used, 0% load
[DD] duk_heap_stringtable.c:727 (duk__resize_strtab_raw_probe): resized stringtable: 17 entries, 68 bytes, 0 used, 0% load -> 23 entries, 92 bytes, 0 used, 0% load
[DDD] duk_heap_stringtable.c:99 (duk__alloc_init_hstring): interned string, hash=0x572d699b, blen=6, clen=6, has_arridx=0, has_extdata=0
[DDD] duk_heap_stringtable.c:498 (duk__insert_hstring_probe): insert hit (null): 4
[DDD] duk_heap_alloc.c:415 (duk__init_heap_strings): interned: "Logger"/0
[DDD] duk_heap_alloc.c:394 (duk__init_heap_strings
@s1341
s1341 / stalker-arm64x.cxx
Created June 9, 2021 04:04
failing tests for frida unwind issue
/*
* Copyright (C) 2008-2010 Ole André Vadla Ravnås <oleavr@nowsecure.com>
*
* Licence: wxWindows Library Licence, Version 3.1
*/
#include "stalker-arm64-fixture.c"
#include <functional>
#define PRINT_BACKTRACES 1
@s1341
s1341 / default.nix
Created July 19, 2022 03:48
Updated realmd derivation
{ stdenv
, fetchFromGitLab
, openldap
, libkrb5
, packagekit
, polkit
, libxslt
, intltool
, glib
, pkg-config
@s1341
s1341 / t48.py
Created November 10, 2022 14:49
import binascii
import struct
import hexdump
import glob
from collections import namedtuple, OrderedDict
def xorbytes(a, b):
c = bytearray()
for i in range(len(a)):
building Nix...
building the system configuration...
these 3750 derivations will be built:
/nix/store/28y54fghbhcc12rvd48a8ayv5x0cg345-bootstrap-stage1-stdenv-linux.drv
/nix/store/3f9s2xxjz3yz90n0d0j2cfkgndgc2j1f-bootstrap-stage0-stdenv-linux.drv
/nix/store/92j3l663vmsd71hdn2y9hq4r3mqz2mrc-bootstrap-stage0-glibc-bootstrap.drv
/nix/store/yzdsm4k0n9cyy2n6vcqgxwxlgfbwqfkv-bootstrap-stage0-binutils-wrapper-.drv
/nix/store/j5kj3vy9n8r6d5ygn4ipbfyjy9rq6d36-bootstrap-stage1-gcc-wrapper-.drv
/nix/store/c6ww9cinvfj8p9c1adj0s366gr2j5k41-bootstrap-stage1-stdenv-linux.drv
/nix/store/j1fnf3p2yrfirncmhckgx1l60ziq5gyb-zlib-1.2.13.drv
error:
… while evaluating the attribute 'buildInputs' of the derivation 'nix-shell-x86_64-w64-mingw32'
at /nix/store/49hikfbih9n03lfggqc6axlvb1ax7wl2-nixos/nixos/pkgs/stdenv/generic/make-derivation.nix:302:7:
301| // (lib.optionalAttrs (attrs ? name || (attrs ? pname && attrs ? version)) {
302| name =
| ^
303| let
with import <nixpkgs> {
crossSystem = {
config = "x86_64-w64-mingw32";
# libc = "msvcrt";
# useLLVM = true;
};
overlays = [
(import (builtins.fetchTarball "https://github.com/oxalica/rust-overlay/archive/master.tar.gz"))
];
};