Skip to content

Instantly share code, notes, and snippets.

Working on ECUs and speed limiters

Stanislas Lejay P1kachu

Working on ECUs and speed limiters
Block or report user

Report or block P1kachu

Hide content and notifications from this user.

Learn more about blocking users

Contact Support about this user’s behavior.

Learn more about reporting abuse

Report abuse
View GitHub Profile
P1kachu /
Created Jan 6, 2018
Installing FFMPEG + FFPYPLAYER + KIVY on Raspberry Pi 3 (Raspbian jessie)
set -x
set -e
# Notes:
# This is how I was able to get a working kivy + ffpyplayer on my Rpi 3 (I can launch a mp4 video, at least)
# This script was not ran on a fresh distribution, so details might change.
# It was mainly copied from
# Other steps required: Increasing the GPU memory (see
P1kachu / memosploit.ipynb
Last active Mar 6, 2017
First shot at exploiting memo (BKP2017 - pwn 300) (ipynb with gdb and py without)
View memosploit.ipynb
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
P1kachu /
Created Jan 22, 2017
ROP mmap + read
#!/usr/bin/env python3
import sys
from v0lt import *
MMAP_SIZE = 0x1000
PERM_RWX = 0x7
def check_stack():
P1kachu / calling_printf_osx.c
Created Nov 24, 2016
Calling printf in OSX - The overkill way
View calling_printf_osx.c
#include <string.h>
#include <stdlib.h>
#include <unistd.h>
#include <mach-o/dyld.h>
#include <mach-o/nlist.h>
#include <mach-o/dyld_images.h>
#include <mach/mach_vm.h>
/* Dyld is the OSX Dynamic Linker
* /usr/include//mach-o/loader.h
P1kachu /
Last active Jun 6, 2016
Things to add/fix in angr's documentation and code



  • Basic blocks are broken on calls, unlike IDA
  • Pruned path are quite useless


  • Lots of pathgroup init parameters
  • Analysis techniques and heuristics used in CFGFast (there is a TODO already)


P1kachu / print_errno.h
Last active Feb 13, 2016
Errno printer (C/C++)
View print_errno.h
#include <errno.h>
#include <string.h>
#define NONE "\033[0m"
#define RED "\033[31m"
# define print_errno() \
{ \
if (errno) \
{ \
P1kachu / shell_me_maybe.c
Created Nov 18, 2015
Test shellcode (C)
View shell_me_maybe.c
#include <stdio.h>
#include <stdlib.h>
#include <string.h>
int main(void)
const char shelly[] = ""; // Your shellcode
printf("Length: %lu\n", strlen(shelly));
P1kachu /
Last active Jun 27, 2019
Hexdump to shellcode
# Translate hexdump output to ready_to_send shellcode
hexdump -x $1
P1kachu /
Created Aug 13, 2015
Random commit message
curl 2> /dev/null | sed '40q;d'| cut -c 4-
View P1kachu.txt
$$$N $$$7 7$$$$$$$
$$>>>>$$$$$$$ NNN$
$: >$$$$
C> $777
$:Q: $ $$$$$$$
$:H: :H $?????$?
You can’t perform that action at this time.