Skip to content

Instantly share code, notes, and snippets.

View TheDuchy's full-sized avatar
🤓
Learning low level stuff

Jan Neduchal TheDuchy

🤓
Learning low level stuff
View GitHub Profile
// Written with <3 by Jan "Duchy" Neduchal 2019
// as a part of an article on medium.com about RE
// Note for the future me: add a link to the article you dumbass
#include <windows.h>
#include <iostream>
int super_secret_function(LPSTR cmd, STARTUPINFOA& si, PROCESS_INFORMATION& pi) {
// Start the child process.
@TheDuchy
TheDuchy / drvscan.cpp
Created May 6, 2019 22:48 — forked from adrianyy/drvscan.cpp
vulnerable driver scanner
#include <string>
#include <vector>
#include <fstream>
#include <iostream>
#include <filesystem>
#include <Windows.h>
#include <winternl.h>
static_assert( sizeof( void* ) == 8 );
@TheDuchy
TheDuchy / mfc_mbr.ascii
Last active February 21, 2021 12:55
MFC dump as a valid MBR, ZIP and PDF (ZIP and PDF by @doegox)
bca5bcbe1b7c040031c0b003cd10b40e
ac08c07404cd10ebf5faf448656c6c6f
2066726f6d204d4643210d0a00000000
FFFFFFFFFFFFFF078069FFFFFFFFFFFF
4d4f4249000000000000000053435253
000000000000000000000000504c4f54
252538340000000000000000004d4150
FFFFFFFFFFFFFF078069FFFFFFFFFFFF
4449434d000000000000000000000000
00000000000000000000000000000000
@TheDuchy
TheDuchy / spoopyfy_export.sh
Created October 21, 2022 14:28
Spotify turned into Spoopyfy, so I have decided to migrate and aint no way I'm paying for something that should be free
# Get client ID and secret at https://developer.spotify.com/dashboard/
# Input file is Ctrl+A and Ctrl+C on playlist you want to export
# example input "https://open.spotify.com/track/0xo5YJ2SJSK55uV2NV8hUn"
# example output "["crypvolk","Can You Feel My Heart (Hardstyle)"]"
CLIENT_ID=""
CLIENT_SECRET=""
INPUT_FILE="spoopyfy.txt"
OUTPUT_FILE="tracklist.txt"
ACCESS_TOKEN=`curl -X POST https://accounts.spotify.com/api/token -H "Authorization: Basic $(echo -n "$CLIENT_ID:$CLIENT_SECRET" | base64 -w0)" -d "grant_type=client_credentials" | jq -r .access_token`