IOS
doorxp
演译至上经典,静候不凡目光
展开
专栏收录文章
- 默认排序
- 最新发布
- 最早发布
- 最多阅读
- 最少阅读
-
短信与电话的拦截
#import #include #include #include #include typedef struct __CTSMSMessage CTSMSMessage; NSString *CTSMSMessageCopyAddress(void *, CTSMSMessage *); NSString *CTS转载 2013-03-07 12:39:53 · 556 阅读 · 0 评论 -
MethodSwizzle
void MethodSwizzle(Class aClass, SEL orig_sel, SEL alt_sel){ Method orig_method = nil, alt_method = nil; // First, look for the methods orig_method = class_getInstanceMethod(aClass, orig_se转载 2013-11-13 11:16:17 · 570 阅读 · 0 评论 -
iOS 6.1 evasi0n jailbreak
iOS 6.1 evasi0n jailbreakThe latest jailbreak is out, and it’s time to dissect it and document all the exploits and techniques it contains. These days, jailbreaks are so well tested that it’s easy转载 2013-09-13 09:01:31 · 741 阅读 · 0 评论 -
coreText
https://developer.apple.com/library/mac/documentation/TextFonts/Conceptual/CocoaTextArchitecture/FontHandling/FontHandling.html#//apple_ref/doc/uid/TP40009459-CH5-SW18Querying Font MetricsNSFont翻译 2013-08-29 08:55:02 · 673 阅读 · 0 评论 -
ios 计算utf8 的字符个数.
支持所有语言的utf8编码的字符串.汇编: 时间效率//// LenUTF8.s// TestASM//// Created by doorxp on 7/5/13.// Copyright (c) 2013 doorxp. All rights reserved.////extern int lenutf(const char *src, bool noAs原创 2013-07-05 13:44:02 · 1217 阅读 · 0 评论 -
objc 禁止 deprecated 函数 警告
#pragma clang diagnostic push#pragma clang diagnostic ignored "-Wdeprecated-declarations" //deprecated 函数调用#pragma clang diagnostic pop原创 2013-05-13 09:28:07 · 784 阅读 · 0 评论 -
命令行编译iPhone版的Objective-C程序
开发环境Mac OS X 10.6.7XCode 4.2 /iOS5 SDK源文件hello.m#import int main(int argc, const char *argv[]){ NSLog (@"hello, objective-c!"); return 0;}在命令行编译/Developer/Platforms/iPh转载 2013-04-13 19:29:59 · 726 阅读 · 0 评论 -
自定义的高效加密解密算法
相同的key每一次加密的密文都不一样.难于破解.整个密文相关.修改其中一段后,以后的数据解密不正确typedef unsigned int Unit;std::string encrypt(const std::string &src,Unit key){ Unit seed = 0; const size_t unitlen = sizeof(Unit);原创 2013-04-05 23:56:29 · 4363 阅读 · 0 评论 -
3DES 返回数据不对
size_t 返回数据字节长度 = (数据字节长度 + kCCBlockSize3DES-1) & ~(kCCBlockSize3DES - 1);des求返回数据长度,就是求比原数据长度大的最小的8的倍数的数注意红色部分,否则解出的数据后面会多几个字节的数据,内容不定原创 2013-04-01 18:10:41 · 559 阅读 · 0 评论 -
xcode 环境变量
Variable ExamplePATH "/Developer/Platforms/iPhoneOS.platform/Developer/usr/bin:/Developer/usr/bin:/usr/bin:/bin:/usr/sbin:/sbin"转载 2013-03-13 09:23:30 · 1465 阅读 · 0 评论 -
get ip address & mac address
#include #include #include #include #include #include #include #include #include #include #include #include #include #include //#include "GetAddresses.h" #define min(a转载 2013-03-09 00:04:34 · 876 阅读 · 0 评论 -
glAlphaFunc
已将部分信息通过以下控件隐藏,如果无法使用,请不要限制脚本或ActiveX控件。右击上面的安全提示,选择允许阻止的内容。glAlphaFunc 设置图形透明度的显示规则参数说明:glAlphaFunc(GLenum func,GLclampf ref)GLenum 是unsigned int类型GLclampf 是float类型func转载 2013-03-07 12:43:39 · 2497 阅读 · 0 评论 -
iphone4 短信截获
所谓的短信截获,可以被法度提前接管到,经过过滤以及响应的处理惩罚,然后发送到手机的收件箱中。 ios3上的短信截获经由过程可以经由过程一些私有的api即可完成,网上的教程也较多,这里不在反复。 前段时候在调研的ios4上的短信截获,在网上也很难找到响应的,较完全的材料,正好前段时候进修了hook, 故周末抽了点时候应用hook从头调研了下,这里做个记录,以防止后期遗忘.转载 2013-03-07 12:38:51 · 704 阅读 · 0 评论 -
Shell脚本简单总结及编写脚本中的小技巧
主要从以下几个方面进行bash入门级的总结:1、命令历史、命令补全2、管道、重定向3、命令别名和命令替换4、命令行编辑5、文件名通配6、Bash的相关配置文件及变量7、编程(条件判断、循环控制)8、bash中的数组9、shell编程技巧和编程规范 1、命令历史、命令补全 查看命令历史:history-c:清空命令历史-d OFFSET [n]: 删除指定位置的命令-w:保存命令历史至历史文件中,这转载 2013-12-20 09:01:14 · 737 阅读 · 0 评论
分享