Hacking How to compile a payload to bin format

  • Thread starter Muxi
  • Start date
  • Views 8,107
  • Replies 33
  • Likes 1

Muxi

Well-Known Member
OP
Member
Joined
Jun 1, 2016
Messages
606
Trophies
0
Age
52
XP
2,140
Country
Germany
@stooged Thanks for your effort. Now I finally managed it. The key to success was, to keep the size of the sql file low and with preloaded HEN.
Big thanks also to @MostlyUnharmful for the support.
 
Last edited by Muxi,

Sandmann

Active Member
Newcomer
Joined
Oct 30, 2016
Messages
38
Trophies
0
XP
422
Country
Germany
I get this error:

/mnt/c/Cache-Install-10/tool /mnt/c/Cache-Install-10
gcc -o bin2js bin2js.c
/mnt/c/Cache-Install-10
/mnt/c/Cache-Install-10/Cache_Install /mnt/c/Cache-Install-10
gcc -c -o build/patch.o source/patch.c -I/root/PS4-SDK/libPS4/include -I. -Iinclude -Os -std=gnu11 -ffunction-sections -fdata-sections -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=small -fpie
gcc -c -o build/main.o source/main.c -I/root/PS4-SDK/libPS4/include -I. -Iinclude -Os -std=gnu11 -ffunction-sections -fdata-sections -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=small -fpie
gcc /root/PS4-SDK/libPS4/crt0.s build/*.o -o temp.t -I/root/PS4-SDK/libPS4/include -I. -Iinclude -Os -std=gnu11 -ffunction-sections -fdata-sections -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=small -fpie -L/root/PS4-SDK/libPS4 -L. -Llib -Xlinker -T /root/PS4-SDK/libPS4/linker.x -Wl,--build-id=none -lPS4
/usr/bin/ld: cannot find -lPS4
collect2: error: ld returned 1 exit status
Makefile:22: recipe for target 'Cache_Install.bin' failed
make: *** [Cache_Install.bin] Error 1
Drücken Sie eine beliebige Taste . . .

Thx ;)
 

Sandmann

Active Member
Newcomer
Joined
Oct 30, 2016
Messages
38
Trophies
0
XP
422
Country
Germany
Yes! (Windows 10 / Ubuntu)
With Linux this error comes:

sandmann@sandmann-VirtualBox:~/Schreibtisch/Cache-Install-10$ ./build.sh
~/Schreibtisch/Cache-Install-10/tool ~/Schreibtisch/Cache-Install-10
make: Für das Ziel „all“ ist nichts zu tun.
~/Schreibtisch/Cache-Install-10
~/Schreibtisch/Cache-Install-10/Cache_Install ~/Schreibtisch/Cache-Install-10
gcc /home/sandmann/PS4-SDK/libPS4/crt0.s build/*.o -o temp.t -I/home/sandmann/PS4-SDK/libPS4/include -I. -Iinclude -Os -std=gnu11 -ffunction-sections -fdata-sections -fno-builtin -nostartfiles -nostdlib -Wall -masm=intel -march=btver2 -mtune=btver2 -m64 -mabi=sysv -mcmodel=small -fpie -L/home/sandmann/PS4-SDK/libPS4 -L. -Llib -Xlinker -T /home/sandmann/PS4-SDK/libPS4/linker.x -Wl,--build-id=none -lPS4
build/main.o: In Funktion »writeCacheDB«:
main.c:(.text.writeCacheDB+0x23): Warnung: undefinierter Verweis auf »base64_decode«
main.c:(.text.writeCacheDB+0x7e): Warnung: undefinierter Verweis auf »systemMessage«
main.c:(.text.writeCacheDB+0x97): Warnung: undefinierter Verweis auf »openBrowser«
main.c:(.text.writeCacheDB+0xa7): Warnung: undefinierter Verweis auf »systemMessage«
build/main.o: In Funktion »_main«:
main.c:(.text._main+0x27): Warnung: undefinierter Verweis auf »initSysUtil«
main.c:(.text._main+0x35): Warnung: undefinierter Verweis auf »dir_exists«
main.c:(.text._main+0xa0): Warnung: undefinierter Verweis auf »file_exists«
main.c:(.text._main+0xb2): Warnung: undefinierter Verweis auf »systemMessage«
main.c:(.text._main+0xe0): Warnung: undefinierter Verweis auf »file_exists«
main.c:(.text._main+0xf9): Warnung: undefinierter Verweis auf »systemMessage«
main.c:(.text._main+0x10e): Warnung: undefinierter Verweis auf »copy_File«
main.c:(.text._main+0x11c): Warnung: undefinierter Verweis auf »systemMessage«
main.c:(.text._main+0x125): Warnung: undefinierter Verweis auf »systemMessage«
/home/sandmann/PS4-SDK/libPS4/libPS4.a(syscall.o): In Funktion »syscall_macro«:
(.text+0x5): relocation truncated to fit: R_X86_64_PC32 against `.sc_rop'
collect2: error: ld returned 1 exit status
Makefile:22: recipe for target 'Cache_Install.bin' failed
make: *** [Cache_Install.bin] Error 1

hmmm
 

Sandmann

Active Member
Newcomer
Joined
Oct 30, 2016
Messages
38
Trophies
0
XP
422
Country
Germany
Ahh THX ;) it Works!

upload_2018-7-10_13-13-50.png
 

Muxi

Well-Known Member
OP
Member
Joined
Jun 1, 2016
Messages
606
Trophies
0
Age
52
XP
2,140
Country
Germany
@stooged I had to set up my Windows PC again, and did not want to set up Ubuntu via VM this time. I follow your instructions here now, but do not get over this step:
when you get to the part that says to "pull the SDK" use the sdk from my repo because it has been modified for my payloads.
use this to pull the SDK
git clone https://github.com/stooged/ps4-payload-sdk
I get this error here running the command. Can you tell me why that could be?

gnutls_handshake() failed: The TLS connection was non-properly terminated.
DESKTOP-4G4GMGA_ ~.png
 
Last edited by Muxi,

MostlyUnharmful

Well-Known Member
Member
Joined
Feb 8, 2018
Messages
410
Trophies
0
Age
42
XP
1,446
Country
Italy
It could be you are missing the GNU TLS library (something like libgnutls*something*.deb) or the OpenSSL TLS version (something like libgnutls-openssl*something*.deb).

You could also disable the git SSL certificate verification with "git config --global http.sslVerify false" but keep in mind what are you doing (disabling protection against MITM attacks against git).
 

Muxi

Well-Known Member
OP
Member
Joined
Jun 1, 2016
Messages
606
Trophies
0
Age
52
XP
2,140
Country
Germany
@MostlyUnharmful Thanks for your hints ........... has already passed over a year, since the last correspondence:)

I found the mistake. It was due to Kaspersky IS. However, I still have a problem, because now this error message appears when trying to compile using win-make.bat:
DESKTOP-4G4GMGA_ ~.png

Edit:
Is it possible that an SDK may not be compatible with a current version of Ubuntu? After all, the SDK by @stooged is almost a year old.
 
Last edited by Muxi,

Muxi

Well-Known Member
OP
Member
Joined
Jun 1, 2016
Messages
606
Trophies
0
Age
52
XP
2,140
Country
Germany
Thanks for the feedback. I have already done this change (hope it was the right one)
2019-07-27 11_11_05-Greenshot.png

However, there is still an error message.
2019-07-27 23_00_08-C__Windows_system32_cmd.exe.png

Edit:
I have overlooked some steps in the setup. Everything works now. Sorry for the trouble.
 
Last edited by Muxi,

Site & Scene News

Popular threads in this forum

General chit-chat
Help Users
  • No one is chatting at the moment.
  • realtimesave @ realtimesave:
    I tried to get a slim on a black friday once, but they ran out of stock for the $100 one
  • realtimesave @ realtimesave:
    many ages ago
  • BigOnYa @ BigOnYa:
    You can find them $50-75 nowdays if catch a deal
  • K3Nv2 @ K3Nv2:
    Still remember grabbing this ps4 slim on black Friday for $200 when the msrp was still around 300
    +1
  • BigOnYa @ BigOnYa:
    I went to auction at a mom/pops video game store few months ago that was closing, and bought 11 slims for $200, 1 was DOA but 10 work fine. so hella deal. Already rgh3'ed 8 of them. But most younger kids don't even want anymore, unless it plays stupid "fortnight", or newer shit.
  • K3Nv2 @ K3Nv2:
    Think I'm gonna use my giftcard balance on a nice pair of headphones but $100 is still limited
  • K3Nv2 @ K3Nv2:
    Soundcore q30s are nice but they leak so much sound it sounds like speakers
  • Psionic Roshambo @ Psionic Roshambo:
    Ken spend the 100 on a gun and skii mask, wait for a jogger at the park jewelry money and headphones!
    +1
  • K3Nv2 @ K3Nv2:
    If only Amazon sold guns
  • K3Nv2 @ K3Nv2:
    Fucking dick heads think it's a bad idea to get a gun 2 days later
  • BigOnYa @ BigOnYa:
    Wait, I thought you were the dickhe...nvm
  • K3Nv2 @ K3Nv2:
    I got balls on my chin and two dicks on my forehead sir
    +1
  • BigOnYa @ BigOnYa:
    Sorry, no offense there double dickhead chinballs.
  • K3Nv2 @ K3Nv2:
    Chicks still love it
    +1
  • BigOnYa @ BigOnYa:
    "Mommy, look, what is that?". "That's your soon to be daddy."
    +1
  • K3Nv2 @ K3Nv2:
    That you'll only see once
    +2
  • Veho @ Veho:
    Double dickhead chinballs is still better than double dickhead eyeballs.
  • Veho @ Veho:
    As in, the balls will grow in your eye sockets.
  • K3Nv2 @ K3Nv2:
    I paid 5 grand to get them moved to my chin
    +1
  • Veho @ Veho:
    This you?
  • K3Nv2 @ K3Nv2:
    My hair can't be that cool
    Sonic Angel Knight @ Sonic Angel Knight: JOE! :P