Mac逆向有没有类似theos的框架


#1

iOS逆向的话有theos.

mac的话,虽然可以用Xcode生成dylib, 但代码写起来比较麻烦。

请问有没有类似的框架?


#2

substitute

ZKSwizzle

各种swizzle or aop


#3

嗯,我看过你这篇文章。这些swizzle基本都要写 constructor 然后里面写一大堆swizzleMethod。所以想了解下有没有类似theos 这种偷懒的方法。 :D)


#4

你是说%hook这种吗,,可以的啊,你用theos转一下,和substitute这个对外接口都一样。


#5

theos不只是针对iOS吧。。


#6

很有道理,我试试 thx


#7

Theos was initially “iphone-framework”, a project created to simplify building code at the command line for iOS devices (primarily jailbroken devices)

不过我也觉得theos只是做一个代码转换的工作,应该可以编译出mac app用的dylib


#8

It later underwent significant changes and became Theos, a flexible Make-based build system primarily for jailbreak software development, but also with complete support for building for other supported platforms. Theos runs on, and can build projects for, macOS, iOS, Linux, and Windows (under Cygwin or Windows Subsystem for Linux).


#9

我不得不推荐我的某个帖子,以及下面一段代码

#!/bin/
function getName {
    ls | grep *.app
}
path=$(getName)
temp='temp'
name=${path%.app}

$THEOS/bin/logos.pl ./Tweak.xm > ./$temp.m
clang -shared -undefined dynamic_lookup -o ./$path/Contents/MacOS/lib.dylib ./$temp.m
optool install -c load -p @executable_path/lib.dylib -t ./$path/Contents/MacOS/$name

rm -f $temp.m

#10

试试Frida?
它可以任意Hook method


#11

感谢大神,终于找到MAC的逆向资料