1
2
3
4
5
6
7
8
9
10
11
12
@echo off
SET OFFSET=0
:START
FOR /F "tokens=*" %%i in ('"od -j%OFFSET% -N16 -w16 -t x1 eboot.elf | cut -c 8- |sed 's/ //g'"') do SET KEY=%%i
ECHO Trying %KEY%
scetool.exe -d engine_ps3.sprx selfout.elf -l %KEY% >nul
echo Working with offset: %OFFSET%
set /a OFFSET+=1
IF EXIST selfout.elf GOTO END
goto START
:end
echo Done! Key used was: %KEY%