Skip to content

Instantly share code, notes, and snippets.

@NathaanTFM
NathaanTFM / ppm2png.c
Last active September 21, 2023 10:46
#include <stdio.h>
#include <stdlib.h>
#include <math.h>
#include "lodepng.h"
#define IS_BLANK(ch) ((ch) == '\n' || (ch) == '\t' || (ch) == '\r' || (ch) == ' ' || (ch) == 0x7F)
static void ppmSkipLine(char **cur) {
for (;;) {
char ch = **cur;
"""
Decrypt HARMAN AIR SDK encrypted swfs
"""
from struct import pack, unpack
from Crypto.Cipher import AES
import sys
globalKey = b"Adobe AIR SDK (c) 2021 HARMAN Internation Industries Incorporated"
/*
Implementation of NDS Key2 Encryption
*/
#include <stdio.h>
#include <stdint.h>
#include <string.h>
static uint8_t x[5];
static uint8_t y[5];
/*
Implementation of NDS Key1 Encryption
*/
#include <stdio.h>
#include <stdint.h>
#include <stdlib.h>
#include <string.h>
#ifdef __AVR__