Skip to content

Instantly share code, notes, and snippets.

View mightysashiman's full-sized avatar

Mighty Sashiman mightysashiman

View GitHub Profile
@xfbs
xfbs / decrypt.m
Last active September 28, 2022 16:17
Decrypted bash file of macOS malware downloaded from mac-torrents.io
// file: decrypt.m
// "decrypts" a single base64-encoded string from a shitty macos malware.
// compile with: clang -o decrypt -framework Foundation decrypt.m
#import <Foundation/Foundation.h>
#include <stdint.h>
int main (int argc, const char * argv[]) {
//NSString *string = @"TRYEGVoFAQ0HD1sGCg==";
NSString *string = [NSString stringWithUTF8String: argv[1]];