Skip to content

Instantly share code, notes, and snippets.

View Sascha-T's full-sized avatar
😀
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸

Sascha T. Sascha-T

😀
🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸🐸
View GitHub Profile
@Sascha-T
Sascha-T / sshed
Created April 8, 2024 17:50
sshed
ssh-ed25519 AAAAC3NzaC1lZDI1NTE5AAAAIEaFe41T5kQGd/WFCjUEfIl8WrKRXqQRfPSobQ7spLJn
@Sascha-T
Sascha-T / Main.java
Last active February 17, 2024 02:59
CPUID Java 21 :p
/*
Demonstrates usage of CPUID on Windows in a single Java file, and prints the processor vendor string.
Uses Java 21 language features.
*/
import java.lang.foreign.*;
import java.lang.invoke.MethodHandle;
import java.nio.ByteBuffer;
import java.nio.ByteOrder;
@Sascha-T
Sascha-T / LICENSE
Last active July 26, 2023 13:52
quirky NBT library in typescript for browser and node
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
Version 2, December 2004
Copyright (C) 2004 Sam Hocevar
14 rue de Plaisance, 75014 Paris, France
Everyone is permitted to copy and distribute verbatim or modified
copies of this license document, and changing it is allowed as long
as the name is changed.
DO WHAT THE FUCK YOU WANT TO PUBLIC LICENSE
@Sascha-T
Sascha-T / Main.java
Last active July 26, 2023 12:08
Everbook Decryptor
import javax.crypto.Cipher;
import javax.crypto.spec.IvParameterSpec;
import javax.crypto.spec.SecretKeySpec;
import java.io.*;
import java.nio.ByteBuffer;
import java.util.Arrays;
import java.util.UUID;
import java.util.stream.Collectors;
import java.util.zip.GZIPInputStream;
@Sascha-T
Sascha-T / bundle-topo.md
Last active August 5, 2022 18:10
.NET Core Bundle Topography

.net core bundle topography

finding the header

First, one must locate the marker by searching for 0x8b1202b96a612038727b930214d7a03213f5b9e6efae3318ee3b2dce24b36aae, then stepping back 8 bytes from the start of the market
At this location, reading a long (little endian) will give one the absolute file offset to the single file bundle header.
If the read value is 0, then it is not a single file bundle.

the header

offset size value
0x00 0x4 (D.W.) major version
0x04 0x4 (D.W.) minor version
@Sascha-T
Sascha-T / index.js
Created May 29, 2021 18:58
MultiMC Time Counter (place in instances folder)
let fs = require("fs")
let path = require("path")
let os = require("os")
let totalTime = 0;
let dir = fs.readdirSync(".")
for(let name of dir) {
let dir = fs.lstatSync(name)
if(dir.isDirectory()) {
let dataFile = path.join(name, "instance.cfg")
@Sascha-T
Sascha-T / wikipedia.css
Created May 22, 2021 23:56
Very Bad Dark Wikipedia Theme
/*
Made by https://github.com/Sascha-T
*/
.mw-body {
background-color: #131313;
color: #d3d3d3;
border: none;
}
#mw-panel {
function pause(){
clear
}
rm *.pem
rm ca.srl
read -p "Enter hostname: " HOST
echo Creating key...
@Sascha-T
Sascha-T / index.js
Created March 19, 2021 17:38
Discord Activities Social Thing
{
"name": "activity-test",
"version": "1.0.0",
"description": "",
"main": "index.js",
"scripts": {
"test": "echo \"Error: no test specified\" && exit 1"
},
"keywords": [],
"author": "",
@Sascha-T
Sascha-T / frog.c
Created September 8, 2020 21:23
hex to int :D
int stli(char *c) {
int ret = 0;
while (*c != 0) {
ret = ret << 4;
if(*c >= '1' && *c <= '9') {
ret += *c - 48;
}
if(*c >= 'a' && *c <= 'f') {
ret += *c - 87;
}