View gist:3a2e77c8176d4b72432a40b146528c56
//dont wait an app from me, here source perhaps it can help to get all pieces togeher, now all is up to you
#include <stdio.h>
#include <stdlib.h>
#include <kernel.h>
#include <system_service.h>
#include <orbis2d.h>
#include <orbisPad.h>
#include <orbisAudio.h>
View gist:3261e5376cc5745c8f37e6ff3f9fae6b
/*
* liborbis sample
* Copyright (C) 2015,2016,2017,2018 Antonio Jose Ramos Marquez (aka bigboss) @psxdev on twitter
* Repository https://github.com/psxdev/liborbis
*/
#include <stdio.h>
#include <stdlib.h>
View gist:494131a49802d638efff6bd66a316950
$ ./ps4sh
ps4sh version 1.0
/Users/bigboss/.ps4shrc: No such file or directory
log: [HOST][INFO]: [PS4SH] Ready
log: [PS4][INFO]: debugnet initialized
log: [PS4][INFO]: Copyright (C) 2010,2016 Antonio Jose Ramos Marquez aka bigboss @psxdev
log: [PS4][INFO]: ready to have a lot of fun...
log: [PS4][INFO]: [PS4LINK] Server request thread UID: 0x816209C0
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_requests_sock: 14
View gist:9b3c77c7d35534b81b66b76682690bbc
log: [PS4][INFO]: debugnet initialized
log: [PS4][INFO]: Copyright (C) 2010,2016 Antonio Jose Ramos Marquez aka bigboss @psxdev
log: [PS4][INFO]: ready to have a lot of fun...
log: [PS4][INFO]: [PS4LINK] Server request thread UID: 0x817F89C0
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_requests_sock: 14
log: [PS4][DEBUG]: [PS4LINK] bind to ps4link_requests_sock done
log: [PS4][DEBUG]: [PS4LINK] Ready for connection 1
log: [PS4][INFO]: [PS4LINK] Waiting for connection
log: [PS4][DEBUG]: [PS4LINK] Command Thread Started.
log: [PS4][INFO]: [PS4LINK] Server command thread UID: 0x817F8E40
View 505_kernel_sym.h
#pragma once
sym_t table505[] = {
{"Xfast_syscall" ,0x1C0},
{"sys_setuid" ,0x54950},
{"sys_dup2" ,0xBF050},
{"sys_close" ,0xC0EB0},
{"sys_fstat" ,0xC1430},
{"sys_kill" ,0xD19D0},
{"_sx_slock" ,0xF5C30},
View gist:fffc4fecb7cf98d9bdc25e2ac0bbef0a
$ clang -v
clang version 7.0.0 (http://llvm.org/git/clang.git 694f835265f40cbfbb02bd64ee766d1acd879dc6) (http://llvm.org/git/llvm.git 0c500a83b4f748c4c9562bc9c7ce1f6bbe64be85)
Target: x86_64-scei-ps4
Thread model: posix
InstalledDir: /usr/local/orbisdev505/toolchain/bin
$ ld -v
GNU ld (GNU Binutils) 2.25
View gist:d976218e623a898ef0feca5d295e53cb
ps4sh> execuser ps4ftp405.elf
log: [HOST][DEBUG]: [PS4SH] argc=1 argv=host0:ps4ftp405.elf
log: [PS4][DEBUG]: [PS4LINK] commands listener received packet size (266)
log: [PS4][DEBUG]: [PS4LINK] Received command execuserelf argc=1 argv=host0:ps4ftp405.elf
log: [PS4][DEBUG]: [PS4LINK] file open req (host0:ps4ftp405.elf, 0 0)
log: [HOST][DEBUG]: [PS4SH] Opening ps4ftp405.elf flags 0
log: [HOST][DEBUG]: [PS4SH] Open return 14
log: [PS4][DEBUG]: [PS4LINK] file open reply received (ret 14)
log: [PS4][DEBUG]: [PS4LINK] file lseek req (fd: 14)
log: [HOST][DEBUG]: [PS4SH] 231352 result of lseek 0 offset 2 whence
View gist:27d8850bd2a371e11e2f8f1ec6549a12
log: [PS4][INFO]: debugnet initialized
log: [PS4][INFO]: Copyright (C) 2010,2016 Antonio Jose Ramos Marquez aka bigboss @psxdev
log: [PS4][INFO]: ready to have a lot of fun...
log: [PS4][DEBUG]: getuid : 0 getgid=0
log: [PS4][DEBUG]: td 0[PS4][DEBUG]: dump 1500000[PS4][DEBUG]: td 0[PS4][DEBUG]: ret 0[PS4][DEBUG]: getuid : 0 getgid=0
log: [PS4][DEBUG]: [PS4LINK] Server request thread UID: 0x80FB4640
log: [PS4][DEBUG]: [PS4LINK] Server command thread UID: 0x80FCB520
log: [PS4][DEBUG]: [PS4LINK] Command Thread Started.
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_commands_sock: 17
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_requests_sock: 16
View gist:e1f1369ff564e53cc7e7c1b06f5c8032
sys_dynlib_load_prx loading lib libScePad.sprx
ps4StubResolveSystemCall libScePad.sprx k 40
scePadInit return 0x00000000
scePadOpen return 0x03090500
scePadRead 0 return 0x0
scePadRead buttons 34d97ca2 connected 7 leftstick.x 0x8
scePadRead buttons 90 80f86cd02
scePadRead 1 return 0x0
scePadRead buttons 34d97ca2 connected 7 leftstick.x 0x8
scePadRead buttons 90 80f86cd02
View output.txt
log: [PS4][DEBUG]: [PADSAMPLE] 2 elfname=elf ps4linkconf=88022e8e0 88022e8e0 82
log: [PS4][DEBUG]: libScePad module ID=0x15 scePadInit address 0x824bb8220
log: [PS4][DEBUG]: found g_pad at 0x824bc00e8 struct myPad set to 0x824bc00e8
log: [PS4][DEBUG]: g_pad hex value status 0x1 fd 0x80 padlock 0x88025a7c0
log: [PS4][DEBUG]: scePadInit return 0x00000000
log: [PS4][DEBUG]: g_pad address status 0x824bc00e8 fd 0x824bc00ec padlock 0x824bc00f0
log: [PS4][DEBUG]: g_pad hex value status 0x1 fd 0x80 padlock 0x88025a7c0
log: [PS4][DEBUG]: g_pad device number 0 unknown1 0x0 handle 0x0 unknown2 0x0 userID 0x0 type 0x0 index 0x0
log: [PS4][DEBUG]: g_pad device number 1 unknown1 0x0 handle 0x0 unknown2 0x0 userID 0x0 type 0x0 index 0x0
log: [PS4][DEBUG]: g_pad device number 2 unknown1 0x0 handle 0x0 unknown2 0x0 userID 0x0 type 0x0 index 0x0