Skip to content

Instantly share code, notes, and snippets.

@psxdev
Created January 6, 2018 17:59
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/27d8850bd2a371e11e2f8f1ec6549a12 to your computer and use it in GitHub Desktop.
Save psxdev/27d8850bd2a371e11e2f8f1ec6549a12 to your computer and use it in GitHub Desktop.
hitodama elf loader from ps4link in 4.05
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
log: [PS4][DEBUG]: [PS4LINK] Command listener waiting for commands...
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
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.8 port: 28110
log: [PS4][DEBUG]: [PS4LINK] sock ps4link_fileio set 18 connected 1
log: [PS4][DEBUG]: [PS4LINK] Initialized and connected from pc/mac ready to receive commands
log: [PS4][DEBUG]: [PS4LINK] Waiting for connection
ps4sh> execuser sample.elf
log: [HOST][DEBUG]: [PS4SH] argc=1 argv=host0:sample.elf
log: [PS4][DEBUG]: [PS4LINK] commands listener received packet size (266)
log: [PS4][DEBUG]: [PS4LINK] Received command execuserelf argc=1 argv=host0:sample.elf
log: [PS4][DEBUG]: [PS4LINK] file open req (host0:sample.elf, 0 0)
log: [HOST][DEBUG]: [PS4SH] Opening sample.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] 195008 result of lseek 0 offset 2 whence
log: [PS4][DEBUG]: [PS4LINK] ps4link_lseek_file: lseek reply received (ret 195008)
log: [PS4][DEBUG]: [PS4LINK] file lseek req (fd: 14)
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 195008 bytes to read (wanted 195008)
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 6592
log: [PS4][DEBUG]: [PS4LINK] ps4link_file: file close req (fd: 14)
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]: In ps4MemoryProtectedCreaten
log: [PS4][DEBUG]: pageSize=16384
log: [PS4][DEBUG]: 80fb7040 memory
log: [PS4][DEBUG]: 230000 m->size
log: [PS4][DEBUG]: after ps4MemoryProtectedCreate
log: [PS4][DEBUG]: after ps4MemoryProtectedGetWritableAddress
log: [PS4][DEBUG]: after ps4MemoryProtectedGetExecutableAddress
log: [PS4][DEBUG]: after elfLoaderLoad return r=0 readable=20d75c000 executable=20d75c000
log: [PS4][DEBUG]: after set argument->main 20d76f950
log: [PS4][DEBUG]: after elfDestroyAndFree
log: [PS4][DEBUG]: [PS4LINK] New user elf thread UID: 0x80FD87E0
log: [PS4][DEBUG]: [PS4LINK] commands listener waiting for next command
log: [PS4][DEBUG]: [PS4LINK] Configuration pointer 880f4bc60, pointer_conf string 880f4bc60
log: [PS4][INFO]: debugnet already initialized using configuration from ps4link
log: [PS4][INFO]: debugnet_initialized=1 SocketFD=15 logLevel=3
log: [PS4][INFO]: ready to have a lot of fun...
log: [PS4][DEBUG]: [SAMPLE] 2 elfname=elf ps4linkconf=880f4bc60 880f4bc60 15
log: [PS4][DEBUG]: [SAMPLE] This is an elf compiled with hitodama's sdk in PlayStation 4.05!!!
log: [PS4][DEBUG]: return (user): 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment