Skip to content

Instantly share code, notes, and snippets.

Avatar

ercoppa ercoppa

View GitHub Profile
@ercoppa
ercoppa / 80-keychron.rules
Last active Mar 26, 2021
K2 Keychron Ubuntu 18.04
View 80-keychron.rules
SUBSYSTEMS=="input", ATTRS{name}=="Keychron K2", RUN+="/bin/sh -c 'echo 0 > /sys/module/hid_apple/parameters/fnmode'"
@ercoppa
ercoppa / angr-on-BIAR-1.6.5
Last active Nov 26, 2018
angr on BIAR-1.6.5
View angr-on-BIAR-1.6.5
biar@pfp-VirtualBox:~$ python2 -m pip install --user pip
biar@pfp-VirtualBox:~$ python -m pip install --user angr
@ercoppa
ercoppa / Makefile
Last active Dec 18, 2017
angr issue #777
View Makefile
all:
gcc -o main-i386 main.c -m32
mips-linux-gnu-gcc -o main-mips main.c
clean:
-rm main-i386 main-mips
gen:
objdump -d main-i386 | grep '<avoid>' | cut -f1 -d' ' | head -n 1 > avoid-i386.txt
objdump -d main-mips | grep '<avoid>' | cut -f1 -d' ' | head -n 1 > avoid-mips.txt
View build.md
  1. wget http://gcc.parentingamerica.com/releases/gcc-5.5.0/gcc-5.5.0.tar.xz
  2. untar and cd
  3. ./contrib/download_prerequisites
  4. cd .. && mkdir gcc-build && cd gcc-build && ../gcc-5.5.0/configure --prefix=pwd/inst --disable-multilib
  5. unset LIBRARY_PATH CPATH C_INCLUDE_PATH PKG_CONFIG_PATH CPLUS_INCLUDE_PATH INCLUDE
  6. make -j3
View build-KLEE-uclib.sh
```
export PATH=/home/ercoppa/Desktop/code/llvm-3.4-cmake/bin:$PATH
./configure --make-llvm-lib
make
```
@ercoppa
ercoppa / symbolic_code.s
Last active Nov 15, 2016
Example of symbolic code
View symbolic_code.s
.globl foo
.text
foo:
movl 4(%esp), %eax # load arg0 into eax
leal (foo_real), %ecx
jmp *%ecx
.data
@ercoppa
ercoppa / Apache Hadoop (local mode) without SSH
Last active Mar 17, 2021 — forked from anonymous/start-dfs.sh
Apache Hadoop (local mode) without SSH
View Apache Hadoop (local mode) without SSH
cd ~/hadoop/sbin/
# save old scripts
mv start-dfs.sh start-dfs.sh.orig
mv start-yarn.sh start-yarn.sh.orig
mv stop-dfs.sh stop-dfs.sh.orig
mv stop-yarn.sh stop-yarn.sh.orig
touch start-dfs.sh && chmod +x start-dfs.sh
touch start-yarn.sh && chmod +x start-yarn.sh