This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <errno.h> | |
#ifdef __APPLE__ | |
//in osx mavericks with macport libelf elf.h is gelf.h | |
#include <libelf/gelf.h> | |
#elif __linux | |
#include <elf.h> | |
#endif | |
//we need some definition form include/elf/arm.h |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arm-vita-eabi-gcc -Wl,-q -Wall -mfloat-abi=hard -c -o main.o main.c | |
main.c: In function 'main': | |
main.c:69:3: warning: implicit declaration of function 'file_choose' [-Wimplicit-function-declaration] | |
file_choose( | |
^ | |
arm-vita-eabi-gcc -Wl,-q -Wall -mfloat-abi=hard -c -o font.o font.c | |
font.c: In function 'font_draw_stringf': | |
font.c:55:2: warning: implicit declaration of function 'sceClibVsnprintf' [-Wimplicit-function-declaration] | |
sceClibVsnprintf(buf, sizeof(buf), s, argptr); | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arm-vita-eabi-gcc -Wl,-q -Wall -mfloat-abi=hard -c -o main.o main.c | |
main.c: In function 'main': | |
main.c:69:3: warning: implicit declaration of function 'file_choose' [-Wimplicit-function-declaration] | |
file_choose( | |
^ | |
arm-vita-eabi-gcc -Wl,-q -Wall -mfloat-abi=hard -c -o font.o font.c | |
font.c: In function 'font_draw_stringf': | |
font.c:55:2: warning: implicit declaration of function 'sceClibVsnprintf' [-Wimplicit-function-declaration] | |
sceClibVsnprintf(buf, sizeof(buf), s, argptr); | |
^ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
arm-vita-eabi-gcc -Wl,-q -Wall -mfloat-abi=hard -c -o main.o main.c | |
main.c: In function 'main': | |
main.c:28:1: warning: control reaches end of non-void function [-Wreturn-type] | |
} | |
^ | |
arm-vita-eabi-gcc main.o -Wl,-q -Wall -mfloat-abi=hard -lSceCtrl_stub -lSceDisplay_stub -lSceGxm_stub -lSceNet_stub -lSceNetCtl_stub -o psp2linksample.elf | |
#advice from xyzz strip before create elf | |
arm-vita-eabi-strip -g psp2linksample.elf | |
#i put db.json there use your location | |
vita-elf-create psp2linksample.elf psp2linksample.velf /usr/local/vitadev/bin/db.json |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Output session PS4 webkit controlling Playstation 4 Camera | |
´´´ | |
f2offs = 0x28 | |
WebKit2 base address = 0x80c538000 | |
libkernel Base = 0x815b34000 | |
libSceLibcinternal Base = 0x820438000 | |
Stack Base = 0x7efd44000 | |
Refresh this page between calls to avoid instability and crashes. Enjoy... | |
syscall getLoadedModules | |
Variable 0 = 0x0 (OK) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <opencv2/opencv.hpp> | |
#include <string> // std::string | |
#include <iostream> // std::cout | |
#include <sstream> // std::stringstream | |
#include <iomanip> // std::setfill, std::setw | |
#include<stdio.h> //SYSTEM | |
#include<iostream> | |
void convert_yuyv422_to_bgr(char *img,int x, int y) | |
{ |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
First load custom ps4link in ps4 with webkit exploit | |
We see log initialization on mac/pc to see if there is a problem with bind. | |
$ debug.sh | |
[PS4][INFO]: debugnet initialized | |
[PS4][INFO]: Copyright (C) 2010,2016 Antonio Jose Ramos Marquez aka bigboss @psxdev | |
[PS4][INFO]: ready to have a lot of fun... | |
[PS4][DEBUG]: [PS4LINK] Server request thread UID: 0x80678B40 | |
[PS4][DEBUG]: [PS4LINK] Created ps4link_requests_sock: 84 | |
[PS4][DEBUG]: [PS4LINK] bind to ps4link_requests_sock done | |
[PS4][DEBUG]: [PS4LINK] Ready for connection 1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
1. virtualbox windows guest machine running on osx | |
2. put following lines in a launcher.bat file in c:\rejuvenate-0.2-beta : | |
cd c:\rejuvenate-0.2-beta | |
run_homebrew hello_world.elf | |
3.Run from osx following command | |
VBoxManage guestcontrol "yourwindowsguestvmname" --username "yourwindowsguestusername" --password "yourwindowsguespassword" run --exe "c:/rejuvenate-0.2-beta/launcher.bat" --verbose --wait-stdout --wait-stderr |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
[PS4][DEBUG]: [PS4LINK] commands listener received packet size (266) | |
[PS4][DEBUG]: base is 89 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 | |
[PS4][DEBUG]: current is 90 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#include <psp2/moduleinfo.h> | |
#include <debugnet.h> | |
#include <psp2/io/fcntl.h> | |
#include <psp2/io/dirent.h> | |
#include <psp2link.h> | |
#define LOGLEVEL 3 | |
void debugNetUDPPrintf(const char* fmt, ...); | |
int main() |
OlderNewer