This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <?php | |
| $timestamp = $_SERVER['HTTP_X_SIGNATURE_TIMESTAMP']; | |
| $signature = hex2bin($_SERVER['HTTP_X_SIGNATURE_ED25519']); | |
| if ($signature === false) { | |
| die(http_response_code(403)); | |
| } | |
| $publickey = hex2bin("[ YOUR_APP_PUBLIC_KEY ]"); // REPLACE THIS WITH YOUR OWN APP'S! | |
| $postdata = file_get_contents('php://input'); | |
| // signature verification; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /* | |
| RB3ESongID.cs by Emma (ipg.gay), 2024 | |
| granted to you under the public domain - feel free to use and modify | |
| for ideal usage: *always* use the song ID from the songs.dta if it is an integer. | |
| otherwise, use the symbol from the song_id DataNode. don't assume the shortname at | |
| the start of songs.dta is always the same as the song_id on these broken customs | |
| */ | |
| using System.Text; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <stdint.h> | |
| #include <stdio.h> | |
| #include <stdlib.h> | |
| #ifndef SHOULD_BE_BE | |
| #define BE16(i) ((((i) & 0xFF) << 8 | ((i) >> 8) & 0xFF) & 0xFFFF) | |
| #define BE(i) (((i) & 0xff) << 24 | ((i) & 0xff00) << 8 | ((i) & 0xff0000) >> 8 | ((i) >> 24) & 0xff) | |
| #define BE64(i) (BE((i) & 0xFFFFFFFF) << 32 | BE(((i) >> 32) & 0xFFFFFFFF)) | |
| #else | |
| #define BE16(i) i |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| import sys | |
| import math | |
| import hashlib | |
| from elftools.elf.elffile import ELFFile | |
| def cmod(a, b): | |
| return abs(a)%abs(b)*(1-2*(a<0)) | |
| # referencing RPCS3(Nekotekina): https://github.com/RPCS3/rpcs3/blob/master/Utilities/StrFmt.cpp#L127 | |
| def base57(in_data): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #pragma author InvoxiPlayGames | |
| #pragma description Amplitude (2016) Save File | |
| // Uncomment if providing a PS3 save file, leave commented for PS4 | |
| //#pragma endian big | |
| // Symbol/String definition | |
| struct sym { | |
| u32 len; | |
| char string[len]; |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| # generates some sort of Akamai token used by some games here and there | |
| # in the format of ?token=1735689600_ffeeddccbbaa998877665544332211 | |
| # idk what scheme it's called or anything i just know it does what i want it to | |
| # code by Emma 2024 public domain do whatever | |
| import sys | |
| import struct | |
| import hashlib | |
| def create_url_token(path: str, salt: str, expiry: int): |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <std/mem.pat> | |
| u8 hmac_key[0x10] @ 0x0; | |
| u8 hmac_sha[0x14] @ 0x10; | |
| enum blocktype : u32 { | |
| None = 0, | |
| Named = 1, | |
| Attribute = 2, | |
| Timer = 3, |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| #include <std/mem.pat> | |
| u8 sha1_salt[0x10] @ 0x0; | |
| // sha1_hash = SHA1(sha1_salt .. 0x28 to EOF) | |
| u8 sha1_hash[0x14] @ 0x10; | |
| struct ps_vista_block { | |
| u32 type; | |
| u32 unk_flags; | |
| u32 id_len; |
OlderNewer