typedef struct {
uint32_t pkg_magic; // 0x000
uint16_t pkg_revision; // 0x004
uint16_t pkg_type; // 0x006
uint32_t pkg_unk; // 0x008 - unknown field
uint32_t pkg_file_count; // 0x00C
uint32_t pkg_table_ents; // 0x010
uint16_t pkg_sys_ents; // 0x014
uint16_t pkg_unk; // 0x016 - unknown field
uint32_t pkg_table_offset; // 0x018 - file table offset
uint32_t pkg_ent_data_size; // 0x01C
uint32_t pkg_unk; // 0x020 - unknown field
uint32_t pkg_body_offset; // 0x024 - seems to always be 0x200
uint32_t pkg_body_unk; // 0x028 - unknown field
uint32_t pkg_body_size; // 0x02C
unsigned char pkg_padding[0x10]; // 0x030 - 16 bytes padding
unsigned char pkg_content_id[0x24]; // 0x040 - packages' content ID as a 36-byte string
unsigned char pkg_padding[0x10]; // 0x064 - 16 bytes padding
unsigned char pkg_unknown[0x8C]; // 0x074 - unknown data
/* Digest table */
unsigned char digest_entries1[0x20]; // 0x100 - sha256 digest for main entry 1
unsigned char digest_entries2[0x20]; // 0x120 - sha256 digest for main entry 2
unsigned char digest_table_digest[0x20]; // 0x140 - sha256 digest for digest table
unsigned char digest_body_digest[0x20]; // 0x160 - sha256 digest for main table
}
PS4API.ConnectTarget(string ip) - Connects to the supplied local ip address. This will only work obviously if the payload is still running on the ps4...
PS4API.AttachProcess(string processName) - Attaches to the supplied procName. Most games use eboot.bin...
$ su -
eapjutsu# cd /usr/ports/security/sudo
eapjutsu# make install
uncomment group wheel to let use sudo to our user
eapjutsu# vi /usr/local/etc/sudoers
eapjutsu# cd /usr/ports/devel/gmake
eapjutsu# make install
eapjutsu# exit
/*-
* Copyright (c) 2017 Shawn Webb <[email protected]>
* All rights reserved.
*
* Redistribution and use in source and binary forms, with or without
* modification, are permitted provided that the following conditions
* are met:
* 1. Redistributions of source code must retain the above
* copyright notice, this list of conditions and the following
* disclaimer.
* 2. Redistributions in binary form must reproduce the above
* copyright notice, this list of conditions and the following
* disclaimer in the documentation and/or other materials
* provided with the distribution.
* 3. The name of the author may not be used to endorse or promote
* products derived from this software without specific prior
* written permission.
*
* THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
*...
G_Client = 0x01F0BF80, //Client 0
G_ClientPlayerState = 0x3A00, //Distance between Next Client
XAxis = 0x1E,
YAxis = 0x26,
ZAxis = 0x22,
Camo = 0x2ED,
PrimaryWeapon = 0x2EC,
PrimaryWeaponAmmo = 0x41C,
PrimaryWeaponAmmo2 = 0x450,
ButtonMonitoring = 0x32A4,
Redboxes = 0x10,
mFlag = 0x3618,
GamertagIngame = 0x339C,
PrimaryClipAmmo = 0x4D4;
public static int G_Client(int ClientID)
{
return (Addresses.Ghosts.G_Client + (ClientID * Addresses.Ghosts.G_ClientPlayerState));
}
public static void mFlag(int ClientID, string mFlagValue)
{
int...