Skip to content

Commit

Permalink
make pkgs installer working with external hdd
Browse files Browse the repository at this point in the history
  • Loading branch information
xvortex committed Jul 4, 2018
1 parent 295a8f6 commit 6657937
Show file tree
Hide file tree
Showing 4 changed files with 11 additions and 2 deletions.
2 changes: 1 addition & 1 deletion exploit/index.html

Large diffs are not rendered by default.

2 changes: 1 addition & 1 deletion installer/include/defines.h
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#ifndef __DEFINES
#define __DEFINES

#define VERSION "1.6"
#define VERSION "1.7"

//#define DEBUG_SOCKET

Expand Down
3 changes: 3 additions & 0 deletions kpayload/include/offsets.h
Original file line number Diff line number Diff line change
Expand Up @@ -85,4 +85,7 @@
// debug pkg free string
#define fake_free_patch 0xEA96A7

// make pkgs installer working with external hdd
#define pkg_installer_patch 0x9312A1

#endif
6 changes: 6 additions & 0 deletions kpayload/source/patch.c
Original file line number Diff line number Diff line change
Expand Up @@ -223,6 +223,12 @@ PAYLOAD_CODE int shellcore_fpkg_patch(void)
goto error;
}

// make pkgs installer working with external hdd
ret = proc_write_mem(ssc, (void *)(text_seg_base + pkg_installer_patch), 1, "\0", &n);
if (ret) {
goto error;
}

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

1 comment on commit 6657937

@xvortex
Copy link
Owner Author

@xvortex xvortex commented on 6657937 Jul 4, 2018

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

kudos to flatz for ShellCore offset

Please sign in to comment.