Put flip
somewhere in your $PATH
and chmod a+x
it.
Copy fuck
into ~/.bashrc
.
/* | |
* This program is free software: you can redistribute it and/or modify | |
* it under the terms of the GNU General Public License as published by | |
* the Free Software Foundation, either version 3 of the License, or | |
* (at your option) any later version. | |
*/ | |
#include <arpa/inet.h> | |
#include <linux/if_packet.h> | |
#include <stdio.h> |
#!/bin/sh | |
# Convert a raw binary image into an ELF file suitable for loading into a disassembler | |
cat > raw$$.ld <<EOF | |
SECTIONS | |
{ | |
EOF | |
echo " . = $3;" >> raw$$.ld |
package org.jf.InstrumentationTest; | |
import com.google.common.collect.Lists; | |
import org.jf.dexlib2.DexFileFactory; | |
import org.jf.dexlib2.Opcode; | |
import org.jf.dexlib2.builder.MutableMethodImplementation; | |
import org.jf.dexlib2.builder.instruction.BuilderInstruction11x; | |
import org.jf.dexlib2.builder.instruction.BuilderInstruction21c; | |
import org.jf.dexlib2.builder.instruction.BuilderInstruction35c; | |
import org.jf.dexlib2.iface.ClassDef; |
/* | |
Pintool to detect API hooks in a process | |
c0d3inj3cT | |
*/ | |
#include <stdio.h> | |
#include <iostream> | |
#include "pin.H" | |
int i=0; |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <string.h> | |
/* | |
* MCrypt API available online: | |
* http://linux.die.net/man/3/mcrypt | |
*/ | |
#include <mcrypt.h> |
#include <stdio.h> | |
#include <stdlib.h> | |
#include <assert.h> | |
#include <signal.h> | |
#include <errno.h> | |
#include <fcntl.h> | |
#include <stddef.h> | |
#include <sys/syscall.h> | |
#include <sys/types.h> | |
#include <sys/stat.h> |
$ gcc house_of_orange.c -o house_of_orange | |
house_of_orange.c: In function ‘main’: | |
house_of_orange.c:39:29: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
*(void **)(p1+0x80+0x8) = 0x61; /* fake size to set main_arena->bins[10] */ | |
^ | |
house_of_orange.c:42:30: warning: assignment makes pointer from integer without a cast [-Wint-conversion] | |
*(void **)(p1+0x80+0x30) = -1; | |
^ | |
$ ./house_of_orange |