Skip to content

Instantly share code, notes, and snippets.

View joydo's full-sized avatar
💭
I may be sleeping.

Joydo joydo

💭
I may be sleeping.
View GitHub Profile
@joydo
joydo / webmssdk.js
Created December 26, 2022 01:45 — forked from mhasbini/webmssdk.js
Deobfuscated version of https://sf16-website-login.neutral.ttwstatic .com/obj/tiktok_web_login_static/webmssdk/1.0.0.1/webmssdk.js
!(function (arg1, arg2) {
if ("object" == typeof exports && "undefined" != typeof module) {
arg2(exports);
} else if ("function" == typeof define && define.amd) {
define(["exports"], arg2);
} else {
arg2(
((arg1 = "undefined" != typeof globalThis ? globalThis : arg1 || self).byted_acrawler =
{})
);
@import Darwin;
@import Foundation;
@import MachO;
#import <mach-o/fixup-chains.h>
// you'll need helpers.m from Ian Beer's write_no_write and vm_unaligned_copy_switch_race.m from
// WDBFontOverwrite
// Also, set an NSAppleMusicUsageDescription in Info.plist (can be anything)
// Please don't call this code on iOS 14 or below
// (This temporarily overwrites tccd, and on iOS 14 and above changes do not revert on reboot)
@joydo
joydo / ecdsa_demo.cpp
Created June 24, 2023 09:07 — forked from byronhe/ecdsa_demo.cpp
ecdsa key generate / sign / verify demo
#include <openssl/ecdsa.h>
#include <openssl/ecdh.h>
#include <openssl/evp.h>
#include <openssl/sha.h>
#include <openssl/bio.h>
#include <openssl/pem.h>
#include <iostream>
#include <string>
#include <cassert>