Skip to content

Instantly share code, notes, and snippets.

View nwert's full-sized avatar

nwert

  • Andromeda
View GitHub Profile
#include "RPLLoader.h"
#include "../common/elf/ELFLoaderBase.h"
#include "RPL.h"
#include "RPL_inlines.h"
#include "Section.h"
#include "miniz_tinfl.h"
class RPLLoaderImpl final
@nwert
nwert / blobs
Created September 11, 2018 20:25
blob_desc_t <aFecsBin, unk_7100639000, fecs_bin, 0x210>
; DATA XREF: get_blob+24?r
; .got:off_71001A89B0?o
; "fecs.bin"
blob_desc_t <aVic04UcodeBin, 0, vic04_ucode_bin, 0x5000>
; DATA XREF: get_blob+34?r
; "vic04_ucode.bin"
blob_desc_t <aNvhostNvenc050, 0, nvhost_nvenc050_fw, 0x1D000>
; DATA XREF: get_blob+44?r
; "nvhost_nvenc050.fw"
from Crypto.Cipher import AES
from Crypto.Util import Counter
import struct
"""
typedef struct boot_dat_hdr
{
unsigned char ident[0x10];
unsigned char sha2_s2[0x20];
unsigned int s2_dst;
[Patched Kernel]
kernel=kernel.bin
[Patched SecureMonitor]
secmon=secmon.bin
[Injected KIP1]
kip1=sysmodule.kip1
# You can mix options in the individual sections, possible are 'warmboot', 'secmon', 'kernel', 'kip1'.
@nwert
nwert / libusb.patch
Last active June 20, 2018 04:34
nxboot
diff --git a/libusb/os/linux_usbfs.h b/libusb/os/linux_usbfs.h
index 2449632..5ef03ba 100644
--- a/libusb/os/linux_usbfs.h
+++ b/libusb/os/linux_usbfs.h
@@ -82,7 +82,7 @@ struct usbfs_iso_packet_desc {
};
#define MAX_BULK_BUFFER_LENGTH 16384
-#define MAX_CTRL_BUFFER_LENGTH 4096
+#define MAX_CTRL_BUFFER_LENGTH 0xFFFF