Skip to content

Instantly share code, notes, and snippets.

View xerpi's full-sized avatar

Sergi・セルジ xerpi

View GitHub Profile
#!/usr/bin/env python3
import sys
import re
def usage():
print("idc-offset by xerpi")
print("Usage:\n\t" + sys.argv[0] + " new_text_addr new_data_addr")
def patch_idc(idc, new_text_addr, new_data_addr):
@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 <[email protected]>
Date: Wed, 19 Dec 2018 19:04:27 +0100
Subject: [PATCH] arm: Add initial PSVita support
Signed-off-by: Sergi Granell <[email protected]>
---
arch/arm/Kconfig | 2 ++
arch/arm/Kconfig.debug | 23 ++++++++++---
arch/arm/Makefile | 1 +
https://github.com/xerpi/GhidraVitaLoader
@xerpi
xerpi / .config
Last active September 27, 2023 20:32
Buildroot .config PSVita Linux
#
# Automatically generated file; DO NOT EDIT.
# Buildroot 2023.08-458-g05fbb29322 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 / PSVita_Linux_build_instructions.md
Last active May 4, 2025 08:53
PSVita Linux build instructions
#!/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"
@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 / 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
@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 / 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";