- We're debugging a dylib,
libhello.dylib
- The dylib is linked from
hello
- The exported function is
helloworld()
- We do not have source, but have reversed a struct from the library and created a hand-crafted header file
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
# shellcheck shell=bash | |
# shellcheck disable=SC1091 | |
# source from .zshrc or similar: | |
# source "$DOTFILES/shell_history_backup.zsh" && _backup_shell_hist | |
function _backup_shell_hist(){ | |
if [ -n "$SHELL_HIST_BACKUP_LOC" ] | |
then | |
_histfile_base="$(basename "$HISTFILE")" |
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
from java.awt import Color | |
from ghidra.util.task import ConsoleTaskMonitor | |
from ghidra.program.model.block import BasicBlockModel | |
from docking.options.editor import GhidraColorChooser | |
""" | |
Ghidra script to colorize all basic blocks identified by the input file. | |
Prompts for a file to use as input. This script will attempt to sanity check | |
that a basic block actually does start at each provided address. |
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 idc | |
import os | |
# you won't see this on the console | |
print("hello") | |
class Log: | |
def __init__(self, logfile): | |
self.logfile = logfile |
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
/* | |
./classdump.py ../build/Release/formatType ./CommerceKit.json | |
*/ | |
@interface CKDialogController : CKServiceInterface | |
{ | |
} |
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
{ | |
"meta": { | |
"date": "2021-07-02T01:01:52+00:00", | |
"url": "https://en.wikipedia.org/wiki/List_of_Star_Wars_planets_and_moons" | |
}, | |
"planets": { | |
"Abafar": { | |
"appearances": [ | |
{ | |
"title": "Star Wars: The Clone Wars", |
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
:::::::.. :::. :::::::-. ::: ... | |
;;;;``;;;; ;;`;; ;;, `';,;;; .;;;;;;;. | |
[[[,/[[[' ,[[ '[[, `[[ [[[[[,[[ \[[, | |
$$$$$$c c$$$cc$$$c $$, $$$$$$$$, $$$ | |
888b "88bo,888 888,888_,o8P'888"888,_ _,88P | |
MMMM "W" YMM ""` MMMMP"` MMM "YMMMMMP" |
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
Date/time: 2021-03-02T18:47:39.428075-08:00 | |
Information source: https://en.wikipedia.org/wiki/List_of_Star_Wars_planets_and_moons | |
Planets added: | |
Aleen | |
Endor (Sanctuary) | |
Esseles | |
Jestefad | |
Sissubo |
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
screenSleep = false | |
screenSaver = false | |
screenLock = false | |
--[[ | |
A module to pause/unpause Folding@Home depending on screensaver, screen lock, and | |
screen sleep state. | |
Folding@Home's "only when idle" mode does not pause/unpause the client at obvious times | |
or for obvious reasons. Instead, This module uses screen state as in indicator that the | |
user is/isn't interacting with the system. |
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 os | |
from ghidra.program.model.block import BasicBlockModel | |
from ghidra.util.task import ConsoleTaskMonitor | |
""" | |
Ghidra script to identify the addresses of all basic blocks within a function | |
Prompts for name of a function, and name of an output file. Locates all basic block addreses | |
and writes them to the output file. | |
""" |
NewerOlder