Skip to content

Instantly share code, notes, and snippets.

View xerpi's full-sized avatar

Sergi Granell・セルジ xerpi

View GitHub Profile
@xerpi
xerpi / json2yml.py
Created November 10, 2017 08:35
Vita NIDs json2yml.py
#!/usr/bin/python3
import sys
import json
def main():
if len(sys.argv) < 2:
print("Usage:\n\t", sys.argv[0], "db.json")
exit(1)
@xerpi
xerpi / .config
Last active September 19, 2021 00:50
Buildroot .config Nintendo 3DS Linux
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2020.11-312-gfd5eeabac0 Configuration
#
BR2_HAVE_DOT_CONFIG=y
BR2_HOST_GCC_AT_LEAST_4_9=y
BR2_HOST_GCC_AT_LEAST_5=y
BR2_HOST_GCC_AT_LEAST_6=y
BR2_HOST_GCC_AT_LEAST_7=y
BR2_HOST_GCC_AT_LEAST_8=y
@xerpi
xerpi / SceCompat.c
Last active July 31, 2021 14:36
PSVita Reverse Engineering
/*
* SceKermit (MIPS side):
* - https://gist.github.com/TheOfficialFloW/4fdec09e53a7c93a0d07d9e3e982dff4#file-kermit-c-L145
* - https://github.com/Total-Noob/kermit_reverse/blob/master/main.c
*/
/*
* Initial state:
* MIPS ARM
* Consumer ready = true Producer ready = true
@xerpi
xerpi / nidreader.py
Last active July 2, 2021 18:42
PS3 NID reader
#!/usr/bin/env python3
import sys
import construct
from collections import namedtuple
from elftools.elf.elffile import ELFFile
from elftools.elf.relocation import RelocationSection
from construct import Struct, Int8ub, Int16ub, Int32ub, PaddedString, CString, Array
@xerpi
xerpi / 1-54inchlcd.dto
Last active May 15, 2021 14:52
1.54" LCD Raspberry Pi Zero
/dts-v1/;
/plugin/;
/ {
compatible = "brcm,bcm2835", "brcm,bcm2708", "brcm,bcm2709";
fragment@0 {
target = <&spi0>;
__overlay__ {
status = "okay";
@xerpi
xerpi / nidattack.c
Created March 28, 2021 22:13
nidattack with OpenMP support
/*
SHA1 dictionary attack program v2.0 (c) 2005 adresd
based on original by djhuevo
hash searchtable and other mods by adresd
performance checked by gorim
added OpenMP support by xerpi
compile with:
@xerpi
xerpi / cellCamera.s
Last active September 10, 2020 07:04
PSL1GHT v3 samples
.section ".rodata.sceResident", "a"
version:
.long 0x0
name:
.asciz "cellCamera"
.section ".lib.stub", "a"
.long 0x2c000001
.short 0x9
.short 0
#!/bin/bash
last=$(curl -s "ftp://${PSVITAIP}:1337/ux0:/data/" | grep psp2core | tail -1 | cut -d ' ' -f 9)
curl -s "ftp://${PSVITAIP}:1337/ux0:/data/$last" --output "$last"
echo "$last"
https://github.com/xerpi/GhidraVitaLoader
@xerpi
xerpi / 0001-arm-Add-initial-PSVita-support.patch
Created December 19, 2018 18:10
Linux PSVita initial support (over Linux 62393dbcbe0f3001691e4bd479a25beb5941f2ed)
From ecba9fec7aa4bac172addd78a468a87b06b5b0da Mon Sep 17 00:00:00 2001
From: Sergi Granell <xerpi.g.12@gmail.com>
Date: Wed, 19 Dec 2018 19:04:27 +0100
Subject: [PATCH] arm: Add initial PSVita support
Signed-off-by: Sergi Granell <xerpi.g.12@gmail.com>
---
arch/arm/Kconfig | 2 ++
arch/arm/Kconfig.debug | 23 ++++++++++---
arch/arm/Makefile | 1 +