gdbinit / osx_boubou Goto Github PK
View Code? Open in Web Editor NEWA PoC Mach-O infector via library injection
A PoC Mach-O infector via library injection
.-. .-') .-. .-') \ ( OO ) \ ( OO ) ;-----.\ .-'),-----. ,--. ,--. ;-----.\ .-'),-----. ,--. ,--. | .-. | ( OO' .-. ' | | | | | .-. | ( OO' .-. ' | | | | | '-' /_)/ | | | | | | | .-') | '-' /_)/ | | | | | | | .-') | .-. `. \_) | |\| | | |_|( OO )| .-. `. \_) | |\| | | |_|( OO ) | | \ | \ | | | | | | | `-' /| | \ | \ | | | | | | | `-' / | '--' / `' '-' '(' '-'(_.-' | '--' / `' '-' '(' '-'(_.-' `------' `-----' `-----' `------' `-----' `-----' A mach-o virus infector Copyright (c) fG!, 2012,2013 - [email protected] - http://reverse.put.as All rights reserved. This is the sample code for OS.X/Boubou presented at Hitcon'12 in Taipei. Does it job by modifying the Mach-O header of the target and adding a new library command. The library contains the "malware" payload and can be used for different purposes, such as stealing information or backdoor without using traditional LaunchDaemons. The code is composed by two parts, the infector which will try to infect all applications it can find in a given path (configured at configuration.h), starting by frameworks and then main binary, and the library, which will decrypt and restore bytes stolen by the infector. I tried to cleanup the code and make it a bit better from the original PoC, which was a mess copy & pasted from many other personal projects. It's definitely not commercial malware grade code (and that's not my intent!) and it contains quite simple (and easily detected) "design" decisions. It can be improved a lot! The goal here is to show how it's done and hopefully get detection and protections developed. Hitcon was in July 2012 and as far as I know there's nothing implemented against this PoC. Maybe with some PoC code out things can change. This version only works against non-fat binaries/frameworks, either 32 or 64 bits. Enjoy, fG! TODO: - Finish LC_MAIN entrypoint code - Code to infect main binary if frameworks fail (only infects main in debug compile)
A declarative, efficient, and flexible JavaScript library for building user interfaces.
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
An Open Source Machine Learning Framework for Everyone
The Web framework for perfectionists with deadlines.
A PHP framework for web artisans
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
Some thing interesting about web. New door for the world.
A server is a program made to process requests and deliver data to clients.
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
Some thing interesting about visualization, use data art
Some thing interesting about game, make everyone happy.
We are working to build community through open source technology. NB: members must have two-factor auth.
Open source projects and samples from Microsoft.
Google ❤️ Open Source for everyone.
Alibaba Open Source for everyone
Data-Driven Documents codes.
China tencent open source team.