Skip to content
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
37 changes: 36 additions & 1 deletion source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -778,14 +778,49 @@ int payload_main(struct payload_args *args)
preload_dirents(sock, "/system/priv/lib", g_dirent_buf + (3 * 0x10000));
preload_dirents(sock, "/system/sys", g_dirent_buf + (4 * 0x10000));
preload_dirents(sock, "/system/vsh", g_dirent_buf + (5 * 0x10000));
preload_dirents(sock, "/system/vsh/app/NPXS40039", g_dirent_buf + (6 * 0x10000));
preload_dirents(sock, "/system/vsh/app/NPXS40109", g_dirent_buf + (7 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40000", g_dirent_buf + (8 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40001/psm/Application", g_dirent_buf + (9 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40028", g_dirent_buf + (10 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40074", g_dirent_buf + (11 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40074/psm/Application", g_dirent_buf + (12 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40087", g_dirent_buf + (13 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40087/psm/Application", g_dirent_buf + (14 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40093/psm/Application", g_dirent_buf + (15 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40099", g_dirent_buf + (16 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40099/psm/Application", g_dirent_buf + (17 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40106/psm/Application", g_dirent_buf + (18 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40140", g_dirent_buf + (19 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40140/cdc/bin", g_dirent_buf + (20 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40140/cdc/lib", g_dirent_buf + (21 * 0x10000));
preload_dirents(sock, "/system_ex/app/NPXS40140/psm/Application", g_dirent_buf + (22 * 0x10000));
preload_dirents(sock, "/system_ex/priv_ex/lib", g_dirent_buf + (23 * 0x10000));

dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (0 * 0x10000), "/", "/mnt/usb0/PS5");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (1 * 0x10000), "/system/common/lib", "/mnt/usb0/PS5/system/common/lib");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (2 * 0x10000), "/system_ex/common_ex/lib", "/mnt/usb0/PS5/system_ex/common_ex/lib");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (3 * 0x10000), "/system/priv/lib", "/mnt/usb0/PS5/system/priv/lib");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (4 * 0x10000), "/system/sys", "/mnt/usb0/PS5/system/sys");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (5 * 0x10000), "/system/vsh", "/mnt/usb0/PS5/system/vsh");

dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (6 * 0x10000), "/system/vsh/app/NPXS40039", "/mnt/usb0/PS5/system/vsh/app/NPXS40039");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (7 * 0x10000), "/system/vsh/app/NPXS40109", "/mnt/usb0/PS5/system/vsh/app/NPXS40109");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (8 * 0x10000), "/system_ex/app/NPXS40000", "/mnt/usb0/PS5/system_ex/app/NPXS40000");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (9 * 0x10000), "/system_ex/app/NPXS40001/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40001/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (10 * 0x10000), "/system_ex/app/NPXS40028", "/mnt/usb0/PS5/system_ex/app/NPXS40028");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (11 * 0x10000), "/system_ex/app/NPXS40074", "/mnt/usb0/PS5/system_ex/app/NPXS40074");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (12 * 0x10000), "/system_ex/app/NPXS40074/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40074/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (13 * 0x10000), "/system_ex/app/NPXS40087", "/mnt/usb0/PS5/system_ex/app/NPXS40087");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (14 * 0x10000), "/system_ex/app/NPXS40087/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40087/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (15 * 0x10000), "/system_ex/app/NPXS40093/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40093/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (16 * 0x10000), "/system_ex/app/NPXS40099", "/mnt/usb0/PS5/system_ex/app/NPXS40099");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (17 * 0x10000), "/system_ex/app/NPXS40099/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40099/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (18 * 0x10000), "/system_ex/app/NPXS40106/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40106/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (19 * 0x10000), "/system_ex/app/NPXS40140", "/mnt/usb0/PS5/system_ex/app/NPXS40140");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (20 * 0x10000), "/system_ex/app/NPXS40140/cdc/bin", "/mnt/usb0/PS5/system_ex/app/NPXS40140/cdc/bin");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (21 * 0x10000), "/system_ex/app/NPXS40140/cdc/lib", "/mnt/usb0/PS5/system_ex/app/NPXS40140/cdc/lib");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (22 * 0x10000), "/system_ex/app/NPXS40140/psm/Application", "/mnt/usb0/PS5/system_ex/app/NPXS40140/psm/Application");
dump_dir(sock, authmgr_handle, &offsets, g_dirent_buf + (23 * 0x10000), "/system_ex/priv_ex/lib", "/mnt/usb0/PS5/system_ex/priv_ex/lib");
SOCK_LOG(sock, "[+] done!\n");

out:
Expand Down