This file contains hidden or 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
import os | |
from multiprocessing.pool import ThreadPool | |
IDA_DIR_PATH = "C:/Users/user/Desktop/ida77" | |
FILES_PATH = "C:/Users/user/Desktop/dsc_extract_16.6.1" | |
class Context: | |
def __init__(self, command, dir): | |
self.command = command | |
self.dir = dir |
This file contains hidden or 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 <stdlib.h> | |
#include <stdio.h> | |
#include <stdint.h> | |
__attribute__((noinline)) | |
void _main() { | |
int troll; | |
printf("sussy, %p\n", &troll); | |
} |
This file contains hidden or 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
#define stdin 0 | |
#define stdout 1 | |
#define stderr 2 | |
#define O_READ 0 | |
#define BUF_SIZE 2097152 | |
typedef unsigned char u8; | |
typedef unsigned short u16; |
This file contains hidden or 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
import os | |
import discord | |
import requests | |
import asyncio | |
from datetime import datetime | |
# bot token | |
TOKEN = "<your token>" | |
# desired post channel id |
This file contains hidden or 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
.extern _objc_getClass | |
.extern _sel_registerName | |
.extern _MSHookMessageEx | |
.section __TEXT,__text,regular,pure_instructions | |
.align 16 | |
_init: | |
stp x29, x30, [sp, #-16]! |
This file contains hidden or 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
//requires: com.apple.private.iokit.batterydata entitlement | |
extern "C" | |
CFArrayRef IOPSCopyPowerSourcesByType(int type); | |
int healthPercent; | |
NSArray *sources = (__bridge NSArray *)IOPSCopyPowerSourcesByType(1); | |
NSDictionary *batteryDict = sources[0]; | |
if (sources && sources.count && batteryDict[@"Maximum Capacity Percent"]) { |
This file contains hidden or 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 <stdio.h> | |
#include <stdint.h> | |
#include <stdlib.h> | |
#include <string.h> | |
char *get_instruction_string(uint16_t opcode) { | |
char *result = malloc(sizeof(char) * 32); | |
uint8_t add_newline = 0; |
This file contains hidden or 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
#import "SBIconListView.h" | |
typedef struct SBIconListPredictedVisibleColumn { | |
unsigned long long column; | |
double confidence; | |
} SBIconListPredictedVisibleColumn; | |
typedef struct SBIconCoordinate { | |
NSInteger row; | |
NSInteger col; | |
} SBIconCoordinate; |