There are no reviews yet. Be the first to send feedback to the community and the maintainers!
____ ____ _____ _____ _____ _____ ____ | | | ||\ \ / /| ___|\ \ ___|\ \ ____|\ \ | | | || \ \ / / || |\ \ | |\ \ / /\ \ | |_| || \____\/ / /| | | || | | || | | | | .-. | \ | / / / | | | || |/____/ | |__| | | | | | \|___/ / / | | | || |\ \ | .--. | | | | | / / / | | | || | | || | | | |____| |____| /____/ / |____|/____/||____| |____||____| |____| | | | | |` | / | / | || | | || | | | |____| |____| |_____|/ |____|____|/ |____| |____||____| |____| \( )/ )/ \( )/ \( )/ \( )/ ' ' ' ' ' ' ' ' ' Hydra Copyright (c) fG!, 2012,2013 - [email protected] - http://reverse.put.as All rights reserved. Welcome, Hydra is sample code of a kernel extension that will intercept process creation, suspend, and communicate it to a userland daemon that will be in charge of patching the application. Its goal is to demonstrate a process hijacking technique from the kernel and also how to use kernel control API. Technically all the patching could be done from the kernel extension. It can be used to crack codesign applications without touching the disk image or resigning the code. This is due to the fact that patching is done after code signature is verified. The only exception is if there are any code checksum features, either using internal functions or the ones from Apple code signing (not even sure if there's an API available for this). The kernel extension should be feature complete but the userland daemon implements a very basic example of adding a target and patching it. To be complete it needs an interface to add targets at request, save a configuration file with targets and patching information. The userland daemon requires task_for_pid() privileges. You will need to run it as root or sign it to run with debugging privileges (as gdb does). Follow this lldb document https://llvm.org/svn/llvm-project/lldb/trunk/docs/code-signing.txt to sign it. The only supported target for now is Mountain Lion. It's rather easy to support all OS X versions. In fact if the target is Lion and/or Mountain Lion, there's no need to read the kernel image from disk to solve symbols. They are available in memory! This applies if you want to make it work with Snow Leopard and below. Anyway, this code is also an example about how to read/write files from a kernel extension. As usual, this is only sample code. Any usage you make out of it is your own responsibility. Have fun, fG!
MachOView
MachOView forkGdbinit
Gdbinit for OS X, iOS and others - x86, x86_64 and ARMlldbinit
A gdbinit clone for LLDBfirmware_vault
A repo for all Apple EFI firmware filesreadmem
A small OS X/iOS userland util to dump processes memoryonyx-the-black-cat
Kernel extension to disable anti-debug tricks and other useful XNU "features"rootfool
A small tool to dynamically disable and enable SIP in El CapitanEFISwissKnife
An IDA plugin to improve (U)EFI reversingHexRaysDeob
Hex-Rays OLLVM Deobfuscator and MicroCode Explorerotool-ng
Some improvements to Apple's otool.gopher
A OS X crypto ransomware PoCmach_race
Exploit code for CVE-2016-1757efi_dxe_emulator
EFI DXE Emulator and Interactive Debuggerpydbg64
PyDBG64 - OS X PyDbg with 64 bits supportosx_boubou
A PoC Mach-O infector via library injectionmpress_dumper
MPRESS dumper for OS Xgimmedebugah
A small utility to inject a Info.plist into binaries.gdb-ng
Apple's gdb fork with some fixes and enhancementsExtractMachO
IDA plugin to extract Mach-O binaries located in the disassembly or dataGatekeerper
A kernel extension to mitigate Gatekeeper bypasseskextstat_aslr
Implementation of kexstat via /dev/kmem with kernel ASLR supportcan_I_suid
A TrustedBSD module to control execution of binaries with suid bit setcrackme_nr1
fG!'s crackme #1 source codebruteforcesysent
Small util to discover OS X sysent via bruteforcetcplognke
Apple's tcplognke code sampleTELoader
A TE executable format loader for IDAunicorn_string_deobfuscator
A Unicorn based emulator to deobfuscate Equation Group string XOR obfuscationmario
The kernel component of rootpipe fix for Mavericksadium-ng-preview
Repo to dump some preview info and builds for adium-ngMicrocodeExplorer
Hex-Rays MicrocodeExplorerreadkmem
small utility to dump kernel memoryrex_versus_the_romans
Anti Hacking Team TrustedBSD modulereadphysmem
A small utility to read and write to Macs physical memory using default AppleHWAccess.kext.llvmpatches
Misc llvm patcheshello_santa_bye_santa
Bypass Google's Santafixobjc
IDA IDC script to improve Objective-C disassembly outputcheckidt
Small util to dump the IDT table of a running OS X system with kmem enabledarmorysandbox
A USB armory based USB sandboxMachOPlugin
IDA plugin to Display Mach-O headersicetheguardianv2
A TrustedBSD module PoC to monitor writes to Daemons and Agents foldersdiagnostic_service
OS X rootkit loader version #1kgmacros
Fixed kgmacros to work with VMware kernel gdb stubExtractMacho2
IDA plugin to extract Mach-O binaries located in the disassembly or datasyscall-benchmark
macOS syscall performance benchmarkav-monster
PoC kext to disable OS X anti-virus softwareluigi
The userland component of rootpipe fix for Maverickscarbon_copy_cloner_keychaingen
A keygen for Carbon Copy Cloner private keychainCrisis-Analysis-Tools
Scripts and other material related to OS.X/Crisis malware analysisdiagnostic_service2
OS X rootkit loader version #2calcspace
Small util to calculate available free space in mach-o binaries for code injectionidc-scripts
Random collection of IDA's IDC scriptsDisable-m3u
iTunes plugin to disable creation of m3u playlistsrexthewonderdog
A lazy PoC for implementing backdoors in OS X TrustedBSD Mac framework.fuckyouilfak
A IDA Pro 9.0 Beta 2 macOS x86 Fix Loaderdelambert
GreenLambert macOS IDA plugin to deobfuscate stringsGiveMeHex
A quick IDA hack to get addresses with 0x prefixtwitterwipe
A Go utillty to delete your Twitter historyhow_crap_is_ida
An IDA plugin to compare IDA detected functions output versus LC_FUNCTION_STARTS informationevilquest_stats
Small utility to hash EvilQuest code and cstrings sectionskeygen_CrackMe_nr1_qwertyoruiop
Keygen for qwertyoruiop's CrackMe nr1spiflash
Very fast reader for SPI flashes for Teensy 2.x.bpf_dbg_output
Small tool to convert bpf binary bytecode to bpf_dbg formatevilquest_deobfuscator
EvilQuest/ThiefQuest malware strings decrypter/deobfuscatoricetheguardian
A PoC to protect critical OS X files using TrustedBSD Mac framework.SMBIOSKeygen
macserial and GenSMBIOS merged and ported to Goyage
An age fork with internal Yubikeys supportsnake_queue_parser
A decryptor for Snake/Turla configuration filesMach-O-Lib
Library to access and manipulate Mach-O headersmacserial
macserial Go moduleLove Open Source and this site? Check out how you can help us