Some notes, tools, and techniques for reverse engineering macOS binaries.
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
| --- | |
| description: | |
| globs: | |
| alwaysApply: true | |
| --- | |
| # Code Guidelines | |
| **Code Block Structure for Proposing Edits**: | |
| When proposing code changes to be applied with the `edit_file` tool, the primary goal is to clearly specify the **complete target state** of the code block being modified. Represent unchanged surrounding lines using `// ... existing code ...` (or the equivalent comment syntax for the target language). |
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
| { | |
| "tools": [ | |
| { | |
| "type": "function", | |
| "function": { | |
| "name": "codebase_search", | |
| "description": "Find snippets of code from the codebase most relevant to the search query.\nThis is a semantic search tool, so the query should ask for something semantically matching what is needed.\nIf it makes sense to only search in particular directories, please specify them in the target_directories field.\nUnless there is a clear reason to use your own search query, please just reuse the user's exact query with their wording.\nTheir exact wording/phrasing can often be helpful for the semantic search query. Keeping the same exact question format can also be helpful.", | |
| "parameters": { | |
| "type": "object", | |
| "properties": { |
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
| # @author Pichaya Morimoto ([email protected]) | |
| Problem: | |
| ```bash | |
| brew install proxychains-ng | |
| proxychains4 ncat 1.2.3.4 # not working | |
| ``` | |
| There are public workarounds like https://benobi.one/posts/running_brew_on_m1_for_x86/ |
Better tutorial (a little bit more complicated): https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Download the "virtual" type aarch64 ISO file from https://www.alpinelinux.org/downloads/ with wget
- Execute
sudo dd if=alpine.iso of=/dev/sda - On the Oracle Cloud panel, setup a console connection and connect to the serial console.
- Execute
sudo reboot - When Alpine is launched and you are logged in as root, execute these commands in the serial console:
Use this better tutorial: https://gist.github.com/karolba/a3f1c5f8d50c67f5a19e6c8f38e53e12
- Reboot into the rescue image
- Then execute these commands:
cd /dev/shm
mkdir alpine
cd alpine
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
| $ mkdir /tmp/a | |
| $ cd /tmp/a | |
| $ unsquashfs /media/sd**/boot/modloop-lts | |
| $ mv squashfs-root/ lib | |
| $ tar -xzvf /etc/apk/cache/zfs-lts-*.apk | |
| $ depmod -b /tmp/a | |
| $ mksquashfs lib/ modloop-lts -noappend -always-use-fragments | |
| $ mount -o rw,remount /media/sd** | |
| # do backup but not as /filename or /boot/filename, alpine will be use it) | |
| $ mv /tmp/a/modloop-lts /media/sd**/boot/modloop-lts |
Download the extended release from https://www.alpinelinux.org/downloads/ as only it contains the zfs kernel mods at the time of this writing (2020.07.10)
Write it to a USB and boot from it.
NewerOlder