Skip to content

Commit

Permalink
release v2.1.1
Browse files Browse the repository at this point in the history
  • Loading branch information
SiSTR0 committed Jun 1, 2019
1 parent 1ab670c commit cb05655
Show file tree
Hide file tree
Showing 8 changed files with 29 additions and 16 deletions.
4 changes: 3 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# PS4HEN v2.1
# PS4HEN v2.1.1

## Features
- Homebrew Enabler
Expand All @@ -9,9 +9,11 @@
- VR Support
- Remote Package Install
- Rest Mode Support
- External HDD Format 6.xx Support

## Fixes
- Black Screen Fix on Rest Mode
- FW Version Spoof to 6.70

## Contributors
Massive credits to the following:
Expand Down
2 changes: 1 addition & 1 deletion exploit/index.html

Large diffs are not rendered by default.

4 changes: 3 additions & 1 deletion installer/include/defines.h
Original file line number Diff line number Diff line change
Expand Up @@ -2,13 +2,15 @@
#define __DEFINES_H__
#pragma once

#define VERSION "2.1"
#define VERSION "2.1.1"

//#define DEBUG_SOCKET

#define LOG_IP "192.168.1.3\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0\0"
#define LOG_PORT 9023

#define FAKE_FW_VERSION 0x06700061

struct filedesc {
void *useless1[3];
void *fd_rdir;
Expand Down
4 changes: 2 additions & 2 deletions installer/include/offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@
#define enable_debug_rifs_patch1 0x064B2B0
#define enable_debug_rifs_patch2 0x064B2D0

// enable VR
#define enable_vr_patch 0x14A63F1
// sdk version spoof - enable all VR fws
#define sdk_version_patch 0x14A63F0

#endif
2 changes: 1 addition & 1 deletion installer/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ int install_payload(struct thread *td, struct install_payload_args* args)
*(uint32_t *)(kernel_base + enable_debug_rifs_patch2) = 0x90C301B0;

// enable vr 5.05
*(uint32_t *)(kernel_base + enable_vr_patch) = 0x9090000;
*(uint32_t *)(kernel_base + sdk_version_patch) = FAKE_FW_VERSION;

// install kpayload
memset(payload_buffer, 0, PAGE_SIZE);
Expand Down
3 changes: 3 additions & 0 deletions kpayload/include/offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -104,4 +104,7 @@
// make pkgs installer working with external hdd
#define pkg_installer_patch 0x9312A1

// enable support with 6.xx external hdd
#define ext_hdd_patch 0x593C7D

#endif
20 changes: 10 additions & 10 deletions kpayload/source/main.c
Original file line number Diff line number Diff line change
Expand Up @@ -124,19 +124,19 @@ PAYLOAD_CODE void resolve_kdlsym()
resolve(sceSblAuthMgrVerifyHeader);

// Fpkg
resolve(sceSblPfsSetKeys);
resolve(sceSblKeymgrCleartKey);
resolve(sceSblPfsSetKeys);
resolve(sceSblKeymgrCleartKey);
resolve(sceSblKeymgrSetKeyForPfs);
resolve(sceSblKeymgrSetKeyStorage);
resolve(sceSblKeymgrSmCallfunc);
resolve(sceSblDriverSendMsg_0);
resolve(RsaesPkcs1v15Dec2048CRT);
resolve(AesCbcCfb128Encrypt);
resolve(AesCbcCfb128Decrypt);
resolve(Sha256Hmac);
resolve(sceSblKeymgrSetKeyStorage);
resolve(sceSblKeymgrSmCallfunc);
resolve(sceSblDriverSendMsg_0);
resolve(RsaesPkcs1v15Dec2048CRT);
resolve(AesCbcCfb128Encrypt);
resolve(AesCbcCfb128Decrypt);
resolve(Sha256Hmac);

// Patch
resolve(proc_rwmem);
resolve(proc_rwmem);
resolve(vmspace_acquire_ref);
resolve(vmspace_free);
resolve(vm_map_lock_read);
Expand Down
6 changes: 6 additions & 0 deletions kpayload/source/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -226,6 +226,12 @@ PAYLOAD_CODE int shellcore_fpkg_patch(void)
if (ret)
goto error;

// enable support with 6.xx external hdd
ret = proc_write_mem(ssc, (void *)(text_seg_base + ext_hdd_patch), 1, "\xEB", &n);
if (ret)
goto error;


error:
if (entries)
dealloc(entries);
Expand Down

0 comments on commit cb05655

Please sign in to comment.