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 <stdio.h> | |
#include <spawn.h> | |
#include <unistd.h> | |
#include <signal.h> | |
#include <sys/wait.h> | |
#include <stdlib.h> | |
#include <string.h> | |
#include <sys/sysctl.h> | |
#include <mach-o/dyld.h> | |
#include <dlfcn.h> |
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 <stdio.h> | |
#include <dlfcn.h> | |
#include <stdlib.h> | |
#include <fcntl.h> | |
#include <unistd.h> | |
#include <string.h> | |
#define T1SZ_BOOT 17 | |
#define off_p_pfd 0xf8 | |
#define off_fp_glob 0x10 |
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
#ifndef dynamic_info_h | |
#define dynamic_info_h | |
struct dynamic_info { | |
const char* kern_version; | |
const char* build_version; | |
const char* device_id; | |
// struct fileglob | |
u64 fileglob__fg_ops; | |
u64 fileglob__fg_data; |
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
// seohyun-gyu@MacBook-Pro-2 find_xpc_rich_error_create % gcc -o find_xpc_rich_error_create find_xpc_rich_error_create.c | |
// seohyun-gyu@MacBook-Pro-2 find_xpc_rich_error_create % ./find_xpc_rich_error_create | |
// Found image_name: /usr/lib/system/libxpc.dylib, libxpc_hdr: 0x7ff80647a000 | |
// _xpc_rich_error_create address: 0x7ff80649362c | |
#include <stdio.h> | |
#include <dlfcn.h> | |
#include <pthread.h> | |
#include <mach-o/dyld_images.h> |
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
도커 우분투에 있는 설치된 프로그램, 데이터 저장하기 위해 새 이미지 저장 | |
1. docker ps -a로 CONTAINER ID 가져오기 | |
2. docker commit [CONTAINER ID] [지정할 이미지 이름] | |
새로 생성된 이미지로부터 컨테이너 새로 실행 | |
docker run -it --name --cap-add=SYS_PTRACE --security-opt seccomp=unconfined ubuntu --hostname docker -v /Users/(사용자 이름)/Desktop/ubuntu:/home/ubuntu [1에서 지정했던 지정했던 이미지 이름] /bin/bash | |
/usr/local/bin/ubuntu | |
#!/bin/zsh | |
/usr/local/bin/docker start ubuntu; |
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 <stdio.h> | |
#include <stdlib.h> | |
#include <unistd.h> | |
#include <mach/mach.h> | |
#include <mach/vm_map.h> | |
#include <mach-o/loader.h> | |
#include <mach-o/dyld_images.h> | |
#include <fcntl.h> | |
#define PATH_MAX 1024 |
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
#import <Foundation/Foundation.h> | |
#include <stdio.h> | |
#include <string> | |
#include <mach-o/loader.h> | |
#include <mach-o/fat.h> | |
#include <mach/machine.h> | |
#include <iostream> | |
#include <cstdlib> | |
#include <new> | |
#include <spawn.h> |
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
// | |
// MultiKaTalkFix.m | |
// MultiKaTalkFix | |
// | |
// Created by Akhil on 12/13/22. | |
// | |
#import <Foundation/Foundation.h> | |
#import "MultiKaTalkFix.h" | |
#import "MethodSwizzling.h" |
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
// | |
// MutliLineFix.m | |
// MultiLineFix | |
// | |
// Created by Seo Hyun-gyu on 2023/03/04. | |
// | |
#import <Foundation/Foundation.h> | |
#import "MultiLineFix.h" | |
#import "fishhook.h" |