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

iOS逆向的话有theos.

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

请问有没有类似的框架?

http://www.alonemonkey.com/2017/05/31/get-start-with-mac-reverse/

substitute

ZKSwizzle

各种swizzle or aop

2 个赞

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

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

theos不只是针对iOS吧。。

很有道理,我试试 thx

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

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).

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

#!/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
1 个赞

试试Frida?
它可以任意Hook method

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

我最近也有这个问题,看到这个帖子,三年过去了。可是还想问您一下theos代码具体怎样转换呢?
还有,你博客上的cdn(图片)全都失效了,访问不到了。。。