JacobPan3g / jacobpan3g.github.io

My blog
https://jacobpan3g.github.io
1 stars 0 forks source link

SMJobBless官方Demo笔记 #24

Open JacobPan3g opened 6 years ago

JacobPan3g commented 6 years ago

https://jacobpan3g.github.io/cn/2018/02/07/smjobbless-demo-note/

racall commented 6 years ago

你好,我把SMJobBless编译出来之后 程序没有root权限呀?

JacobPan3g commented 6 years ago

@racall 编译成功之后直接在Xcode里Run,就会弹出输入密码的对话框的。

JacobPan3g commented 6 years ago

@racall 请问你的问题解决了吗?

racall commented 6 years ago

弹出输入密码的对话框了 但是我在子程序中写的一些操作并没有执行

racall commented 6 years ago

@JacobPan3g 弹出输入密码的对话框了 但是我在子程序中写的一些操作并没有执行

racall commented 6 years ago

@JacobPan3g 我在子程序中写了一些需要root执行的操作,然而并没有执行

JacobPan3g commented 6 years ago

@racall 稍等一下,我这边帮你写个demo测试一下

racall commented 6 years ago

@JacobPan3g 嗯好的

racall commented 6 years ago

@JacobPan3g 怎么样?

JacobPan3g commented 6 years ago

@racall 请问你在编译时没有使用Apple的开发者ID?这个Demo需要开发者ID来编译。若只是使用Demo里默认的Bundle identifier,虽说能编译运行成功,这时只是把Daemon的可执行文件放到了/Library/PrivilegedHelperTools/com.apple.bsd.SMJobBlessHelper,但实际上Daemon进程SMJobBlessHelper并没能启动成功,所以你在进程里添加的动作并没有被执行。

racall commented 6 years ago

@JacobPan3g 用了apple开发者ID啦

racall commented 6 years ago

@JacobPan3g Bundle identifier我也改成了我自己的了 还是没被执行

racall commented 6 years ago

@JacobPan3g 那怎样才能让它执行呢?帮帮忙解决一下 博主

webblog commented 6 years ago

hello

achuanya commented 6 years ago

这个评论功能好棒,开源吗

didongke commented 5 years ago

@racall 请问你的问题解决了吗?我也有这个问题,help tool没有执行

racall commented 5 years ago

@didongke 你去看我博客吧 https://blog.iiwo.vip/posts/431360628/

didongke commented 5 years ago

哈哈,多谢啊

didongke@126.com

发件人: XiaoYi 发送时间: 2018-09-28 16:10 收件人: JacobPan3g/jacobpan3g.github.io 抄送: didongke; Mention 主题: Re: [JacobPan3g/jacobpan3g.github.io] SMJobBless官方Demo笔记 (#24) @didongke 你去看我博客吧 https://blog.iiwo.vip/posts/431360628/ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

didongke commented 5 years ago

非常感谢,可以了!!!

didongke@126.com

发件人: XiaoYi 发送时间: 2018-09-28 16:10 收件人: JacobPan3g/jacobpan3g.github.io 抄送: didongke; Mention 主题: Re: [JacobPan3g/jacobpan3g.github.io] SMJobBless官方Demo笔记 (#24) @didongke 你去看我博客吧 https://blog.iiwo.vip/posts/431360628/ — You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub, or mute the thread.

anan131435 commented 4 years ago

我的也是子进程没有执行呢 你的博客 https://blog.iiwo.vip/posts/431360628/ 也打不开了,你能再发我一个有效的链接嘛。谢啦

racall commented 4 years ago

@anan131435 我的博客 https://blog.ihitun.com/posts/431360628/ 简书上也可以找到我这片博文<MacOS App代码提权详解>