You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
r=ps4KernUtilFilePrint(td, STDIN_FILENO, "Hello world from your ps4 kernel, ps4sdk and hito <3\n{main:%p, argc:%i, argv[0]:%s}\n", main, argc, argv[0]);
15
+
r=ps4KernUtilFilePrint(td, STDOUT_FILENO, "Hello world from your ps4 kernel, ps4sdk.\nKind regards hito <3\n\n{main:%p, argc:%i, argv[0]:%s}\n", main, argc, argv[0]);
ps4KernUtilSocketPrint(td, client, "Hello world from your ps4 kernel, ps4sdk and hito <3\n{main:%p, argc:%i, argv[0]:%s}\n", main, argc, argv[0]);
44
+
client=ps4KernUtilServerCreateSingleAccept(td, SERVER_PORT); // see kern/util for more
45
+
46
+
ps4KernUtilSocketPrint(td, client, "Hello world from your ps4 kernel and ps4sdk.\n{main:%p, argc:%i, argv[0]:%s}\n\n", main, argc, argv[0]);
47
+
48
+
//(you will need to (re)connect 5052 if you send this to 5054)
49
+
//(without messing with the redirected, the rest works as intended)
50
+
//(basically you hijack the user fd and the userland starts interfering)
51
+
//ps4KernUtilStandardIoRedirectPlain(td, client);
52
+
//ps4KernUtilFilePrint(td, STDOUT_FILENO, "Somebody is watching over us... controlling us. It's true, I tell you. It's true! We are merely sprites that dance at the beck and call of our button-pressing overlord. This is a video game. Don't you see? We are characters in a video game!\n\n");
53
+
54
+
c=client;
55
+
printf("S.T.A.R.S ... !\n"); // the kernel printf does not go to an fd
56
+
ps4KernFunctionHookSized((void*)ps4KernDlSym("printf"), (void*)printf_hook, 16); // 16 is a valid instruction offset in printf !!!
57
+
printf("It's a weapon. It's really powerful, especially against living things.\n\n");
0 commit comments