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
P1kachu / installation.sh
Created Jan 6, 2018
Installing FFMPEG + FFPYPLAYER + KIVY on Raspberry Pi 3 (Raspbian jessie)
View installation.sh
#!/bin/sh
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 https://github.com/matham/ffpyplayer/blob/master/.travis.yml#L20
# Other steps required: Increasing the GPU memory (see https://github.com/kivy/kivy/issues/4662)
@P1kachu
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
P1kachu / mmap.py
Created Jan 22, 2017
ROP mmap + read
View mmap.py
#!/usr/bin/env python3
import sys
from v0lt import *
MMAP_SIZE = 0x1000
PERM_RWX = 0x7
def check_stack():
'''
@P1kachu
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
P1kachu / angr-add.md
Last active Jun 6, 2016
Things to add/fix in angr's documentation and code
View angr-add.md

angr-doc

Useful

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

Missing

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

Unclear

@P1kachu
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
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
P1kachu / hex_to_shellcode.sh
Last active Jun 27, 2019
Hexdump to shellcode
View hex_to_shellcode.sh
#!/bin/bash
# Translate hexdump output to ready_to_send shellcode
# C'EST PAS OPTI
# MAIS JE M'EN FOUS
to_shellcode()
{
hexdump -x $1
@P1kachu
P1kachu / commiter.sh
Created Aug 13, 2015
Random commit message
View commiter.sh
curl http://whatthecommit.com/ 2> /dev/null | sed '40q;d'| cut -c 4-
View P1kachu.txt
$$$$$
$NNN$$$:
$$$N $$$7 7$$$$$$$
$$>>>>$$$$$$$ NNN$
:$$$::::::::>>>NOO$
$: >$$$$
C> $777
$:Q: $ $$$$$$$
$:H: :H $?????$?
You can’t perform that action at this time.