Skip to content

Instantly share code, notes, and snippets.

View galaxy4public's full-sized avatar
🇦🇺

(GalaxyMaster) galaxy4public

🇦🇺
View GitHub Profile
@galaxy4public
galaxy4public / pc1.c
Created September 12, 2021 14:10
QNAP firmware encryption/decryption
// Original author: Paul Rascagneres <rootbsd@r00ted.com>
// Patched by (GalaxyMaster) [https://github.com/galaxy4public/]
#include <stdio.h>
#include <string.h>
#include <stdlib.h>
#define ENCRYPT_SIZE 0x100000
int keybits;
int y, z;