Skip to content

Instantly share code, notes, and snippets.

@psxdev
Created June 16, 2018 12:36
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save psxdev/fffc4fecb7cf98d9bdc25e2ac0bbef0a to your computer and use it in GitHub Desktop.
Save psxdev/fffc4fecb7cf98d9bdc25e2ac0bbef0a to your computer and use it in GitHub Desktop.
clang 7+binutils+hitodama's sdk+orbislink+ps4sh=loading elf is back to 5.05
$ 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
$ ./ps4sh
ps4sh version 1.0
/Users/bigboss/.ps4shrc: No such file or directory
log: [HOST][INFO]: [PS4SH] Ready
ps4sh>
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=1
log: [PS4][DEBUG]: [PS4LINK] Server request thread UID: 0x88306520
log: [PS4][DEBUG]: [PS4LINK] Server command thread UID: 0x88317060
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_requests_sock: 19
log: [PS4][DEBUG]: [PS4LINK] bind to ps4link_requests_sock done
log: [PS4][DEBUG]: [PS4LINK] Ready for connection 1
log: [PS4][DEBUG]: [PS4LINK] Waiting for connection
log: [PS4][DEBUG]: [PS4LINK] Command Thread Started.
log: [PS4][DEBUG]: [PS4LINK] Created ps4link_commands_sock: 21
log: [PS4][DEBUG]: [PS4LINK] Command listener waiting for commands...
ps4sh> connect
log: [HOST][INFO]: [PS4SH] Connecting to fio ps4link ip 192.168.1.17
log: [HOST][INFO]: [PS4SH] PlayStation is listening at 192.168.1.17
log: [PS4][DEBUG]: [PS4LINK] Client connected from 192.168.1.3 port: 50883
log: [PS4][DEBUG]: [PS4LINK] sock ps4link_fileio set 20 connected 1
log: [PS4][DEBUG]: [PS4LINK] Waiting for connection
log: [PS4][DEBUG]: [PS4LINK] Initialized and connected from pc/mac ready to receive commands
ps4sh> execshowdir /
log: [HOST][DEBUG]: [PS4SH] [PS4SH] argc=1 argv=/
log: [PS4][DEBUG]: [PS4LINK] commands listener received packet size (266)
log: [PS4][DEBUG]: [PS4LINK] Received command execshowdir
log: [PS4][DEBUG]: [DIR]: .
log: [PS4][DEBUG]: [DIR]: ..
log: [PS4][DEBUG]: [DIR]: dev
log: [PS4][DEBUG]: [DIR]: system_tmp
log: [PS4][DEBUG]: [DIR]: av_contents
log: [PS4][DEBUG]: [DIR]: jn2iLOPnpB
log: [PS4][DEBUG]: [DIR]: user
log: [PS4][DEBUG]: [PS4LINK] closing dfd
log: [PS4][DEBUG]: [PS4LINK] end command execshowdir
log: [PS4][DEBUG]: [PS4LINK] commands listener waiting for next command
ps4sh> pwd
/usr/local/ps4dev/git/repositorios/ps4link/ps4sh/bin
ps4sh> ex
execdecrypt execptrace execuser exit
execkernel execshowdir execwhoami exitps4
ps4sh> file sample505.elf
sample505.elf: ELF 64-bit LSB shared object, x86-64, version 1 (FreeBSD), dynamically linked, interpreter /usr/libexec/ld-elf.so.1, not stripped
ps4sh>
ps4sh> execuser sample505.elf
log: [HOST][DEBUG]: [PS4SH] argc=1 argv=host0:sample505.elf
log: [PS4][DEBUG]: [PS4LINK] commands listener received packet size (266)
log: [PS4][DEBUG]: [PS4LINK] Received command execuserelf argc=1 argv=host0:sample505.elf
log: [PS4][DEBUG]: [PS4LINK] file open req (host0:sample505.elf, 0 0)
log: [HOST][DEBUG]: [PS4SH] Opening sample505.elf flags 0
log: [HOST][DEBUG]: [PS4SH] Open return 7
log: [PS4][DEBUG]: [PS4LINK] file open reply received (ret 7)
log: [PS4][DEBUG]: [PS4LINK] file lseek req (fd: 7)
log: [HOST][DEBUG]: [PS4SH] 211616 result of lseek 0 offset 2 whence
log: [PS4][DEBUG]: [PS4LINK] ps4link_lseek_file: lseek reply received (ret 211616)
log: [PS4][DEBUG]: [PS4LINK] file lseek req (fd: 7)
log: [HOST][DEBUG]: [PS4SH] 0 result of lseek 0 offset 0 whence
log: [PS4][DEBUG]: [PS4LINK] ps4link_lseek_file: lseek reply received (ret 0)
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: Reply said there's 211616 bytes to read (wanted 211616)
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 0 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 1 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 2 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 3 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 4 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 5 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 6 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 7 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 8 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 9 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 10 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 11 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 12 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 13 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 14 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 15 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 16 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 17 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 18 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 19 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 20 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 21 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 22 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 23 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 24 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 25 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 26 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 27 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 28 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 29 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 30 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 31 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 32 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 33 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 34 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 35 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 36 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 37 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 38 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 39 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 40 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 41 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 42 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 43 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 44 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 45 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 46 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 47 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 48 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 49 readed 4096
log: [PS4][DEBUG]: [PS4LINK] ps4link_read_file: chunk 50 readed 6816
log: [PS4][DEBUG]: [PS4LINK] ps4link_file: file close req (fd: 7)
log: [PS4][DEBUG]: [PS4LINK] ps4link_close_file: close reply received (ret 0)
log: [PS4][DEBUG]: [PS4LINK] ready to run elf
log: [PS4][DEBUG]: malloc for argument
log: [PS4][DEBUG]: after malloc for argument
log: [PS4][DEBUG]: after ps4MemoryProtectedCreate
log: [PS4][DEBUG]: after ps4MemoryProtectedGetWritableAddress
log: [PS4][DEBUG]: after ps4MemoryProtectedGetExecutableAddress
log: [PS4][DEBUG]: after elfLoaderLoad return r=0 readable=208808000 executable=208808000
log: [PS4][DEBUG]: after set argument->main 20881d540
log: [PS4][DEBUG]: after elfDestroyAndFree
log: [PS4][DEBUG]: [PS4LINK] New user elf thread UID: 0x88327260
log: [PS4][DEBUG]: [PS4LINK] commands listener waiting for next command
log: [PS4][DEBUG]: [PS4LINK] Configuration pointer 88837e8c0, pointer_conf string 88837e8c0
log: [PS4][INFO]: debugnet already initialized using configuration from ps4link
log: [PS4][INFO]: debugnet_initialized=1 SocketFD=18 logLevel=3
log: [PS4][INFO]: ready to have a lot of fun...
log: [PS4][DEBUG]: [SAMPLE] 2 elfname=elf ps4linkconf=88837e8c0 88837e8c0 18
log: [PS4][DEBUG]: [SAMPLE] This is an elf compiled with hitodama's sdk in PlayStation 5.05 and loaded from ps4sh!!!
log: [PS4][DEBUG]: [SAMPLE] sdkVersion=5050031 uid=0
log: [PS4][DEBUG]: [SAMPLE] kern.sdk_version ver=0x5050031 0x5050031 0x5050031 len=4
log: [PS4][DEBUG]: return (user): 0
ps4sh>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment