|
[求助]如何hook这个系统函数-enumeratorAtPath
注意下嵌套调用就是,一般 hook 底层函数都要非常小心这个问题。 |
|
|
|
[原创] HookZz 一款有些不一样的 Hook 框架
只支持64位? |
|
[求助]如何hook这个系统函数-enumeratorAtPath
首先,enumeratorAtPath没有 hook 到多半是你代码有问题。 其次: enumeratorAtPath 的实现最终函数 opendir() - (NSDirectoryEnumerator*) enumeratorAtPath: (NSString*)path { return AUTORELEASE([[NSDirectoryEnumerator alloc] initWithDirectoryPath: path recurseIntoSubdirectories: YES followSymlinks: NO justContents: NO for: self]); } 具体实现: /** *Initialize instance to enumerate contents at path, which should be a *directory and can be specified in relative or absolute, and may include *Unix conventions like '<code>~</code>' for user home directory, which will *be appropriately converted on Windoze systems.The justContents flag, if *set, is equivalent to recurseIntoSubdirectories = NO and followSymlinks = *NO, but the implementation will be made more efficient. */ - (id) initWithDirectoryPath: (NSString*)path recurseIntoSubdirectories: (BOOL)recurse followSymlinks: (BOOL)follow justContents: (BOOL)justContents for: (NSFileManager*)mgr { if (nil != (self = [super init])) { //TODO: the justContents flag is currently basically useless and should be //removed _DIR*dir_pointer; const _CHAR*localPath; _mgr = RETAIN(mgr); _stack = NSZoneMalloc([self zone], sizeof(GSIArray_t)); GSIArrayInitWithZoneAndCapacity(_stack, [selfzone], 64); _flags.isRecursive = recurse; _flags.isFollowing = follow; _flags.justContents = justContents; _topPath = [[NSString alloc] initWithString: path]; localPath = [_mgrfileSystemRepresentationWithPath: path]; dir_pointer = _OPENDIR(localPath); if (dir_pointer) { GSIArrayItem item; item.ext.path = @""; item.ext.pointer = dir_pointer; GSIArrayAddItem(_stack, item); } else { NSDebugLog(@"Failed to recurse into directory '%@' - %@", path, [NSError _last]); } } returnself; } |
|
[求助]越狱开发, Theos引用三方静态库的问题
TARGET = iphone:latest:8.0 #此句加入与否不影响编译结果 <= 不影响编译 你出现这个情况是你打包ffmpeg时没有指定target。 |
|
[求助]求助大家看下这个代码,删除是是啥?
只是一段简单的lua程序,变砖的可能性很小。 我的猜测是:你使用了别人的宿主程序,而且是未授权的情况下使用的。 他的宿主程序做了未授权包含,删除了部分系统关键程序,导致你的手机变砖(可能)。建议你直接找下程序提供方。 |
|
[讨论]手机已root,不用apk的形式,怎么在Android里面运行java程序,并且能调用到SDK?
二楼已经告诉你了,楼主。。 |
|
|
|
|
|
[求助]IDA附加到某apk,然后直接异常退出
我一般是这么处理。 |
|
[注意]祝林版身体早日康复
深有感触啊,身体是本钱。。 |
|
|
|
|
|
[求助]Android L SEAndroid 问题
一般情况而言,kernel分区是RAM镜像,这种镜像是没有办法修改的。 system分区是ext3/yaffs2格式,默认是只读的。但是这种镜像是可以修改为支持修改的。 具体的信息请找相关资料查询。 root@android:/ # mount mount rootfs / rootfs ro,relatime 0 0 tmpfs /dev tmpfs rw,nosuid,relatime,mode=755 0 0 devpts /dev/pts devpts rw,relatime,mode=600 0 0 proc /proc proc rw,relatime 0 0 sysfs /sys sysfs rw,relatime 0 0 none /acct cgroup rw,relatime,cpuacct 0 0 tmpfs /mnt/secure tmpfs rw,relatime,mode=700 0 0 tmpfs /mnt/asec tmpfs rw,relatime,mode=755,gid=1000 0 0 tmpfs /mnt/obb tmpfs rw,relatime,mode=755,gid=1000 0 0 none /dev/cpuctl cgroup rw,relatime,cpu 0 0 /dev/block/mtdblock9 /system ext4 rw,relatime,barrier=1,data=ordered,discard 0 0 /dev/block/mtdblock7 /data ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,discard 0 0 /dev/block/mtdblock5 /cache ext4 rw,nosuid,nodev,noatime,nodiratime,barrier=1,data=ordered,discard 0 0 /sys/kernel/debug /sys/kernel/debug debugfs rw,relatime 0 0 /dev/block/vold/31:11 /mnt/sdcard vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage=cp437 ,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 /dev/block/vold/31:11 /mnt/secure/asec vfat rw,dirsync,nosuid,nodev,noexec,noatime,nodiratime,uid=1000,gid=1015,fmask=0002,dmask=0002,allow_utime=0020,codepage= cp437,iocharset=iso8859-1,shortname=mixed,utf8,errors=remount-ro 0 0 tmpfs /mnt/sdcard/.android_secure tmpfs ro,relatime,size=0k,mode=000 0 0 root@android:/ # |
|
[求助]Android L SEAndroid 问题
不是你理解的那样。 你可以查看init.rc文件。 假如里面有一句: sh /etc/abc.sh 你自己写个sh文件叫这个名字,然后把他原来的abc.sh文件重命名, 在你自己的sh文件中执行你想干的事情,后面在调用他原来的sh文件即可。 类似于HOOK的思路。 |
|
|
|
[原创]Android下未root时导出data/app目录下APK的方法
需要adb 有 root身份才行,否则不可以。 |
|
|
|
|
|
|
操作理由
RANk
{{ user_info.golds == '' ? 0 : user_info.golds }}
雪币
{{ experience }}
课程经验
{{ score }}
学习收益
{{study_duration_fmt}}
学习时长
基本信息
荣誉称号:
{{ honorary_title }}
能力排名:
No.{{ rank_num }}
等 级:
LV{{ rank_lv-100 }}
活跃值:
在线值:
浏览人数:{{ visits }}
最近活跃:{{ last_active_time }}
注册时间:{{ user_info.create_date_jsonfmt }}
勋章
兑换勋章
证书
证书查询 >
能力值