This file contains 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
// 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. |
This file contains 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 <string> | |
#include <vector> | |
#include <fstream> | |
#include <iostream> | |
#include <filesystem> | |
#include <Windows.h> | |
#include <winternl.h> | |
static_assert( sizeof( void* ) == 8 ); |
This file contains 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
bca5bcbe1b7c040031c0b003cd10b40e | |
ac08c07404cd10ebf5faf448656c6c6f | |
2066726f6d204d4643210d0a00000000 | |
FFFFFFFFFFFFFF078069FFFFFFFFFFFF | |
4d4f4249000000000000000053435253 | |
000000000000000000000000504c4f54 | |
252538340000000000000000004d4150 | |
FFFFFFFFFFFFFF078069FFFFFFFFFFFF | |
4449434d000000000000000000000000 | |
00000000000000000000000000000000 |
This file contains 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
# 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` |