飞鹤航空电话,洪荒之太上剑圣txt下载,2012元宵喜乐会湖南卫视
代码编译阶段将符号(方法名、属性名等)替换成随机生成的字符串
长话短说,直接上步骤。
tablename=symbols symbol_db_file="$project_dir/codeobfuscation/symbols" string_symbol_file="$project_dir/codeobfuscation/func.list" head_file="$project_dir/codeobfuscation/codeobfuscation.h" export lc_ctype=c #维护数据库方便日后作排重 createtable(){ echo "create table $tablename(src text, des text);" | sqlite3 $symbol_db_file } insertvalue(){ echo "insert into $tablename values('$1' ,'$2');" | sqlite3 $symbol_db_file } query(){ echo "select * from $tablename where src='$1';" | sqlite3 $symbol_db_file } ramdomstring(){ openssl rand -base64 64 | tr -cd 'a-za-z' |head -c 16 } rm -f $symbol_db_file rm -f $head_file createtable touch $head_file echo '#ifndef demo_codeobfuscation_h #define demo_codeobfuscation_h' >> $head_file echo "//confuse string at `date`" >> $head_file cat "$string_symbol_file" | while read -ra line; do if [[ ! -z "$line" ]]; then ramdom=`ramdomstring` echo $line $ramdom insertvalue $line $ramdom echo "#define $line $ramdom" >> $head_file fi done echo "#endif" >> $head_file sqlite3 $symbol_db_file .dump
如何知道替换成功了呢?我们找到替换的方法名或属性名,点击跳转到定义,会跳转到codeobfuscation.h中,说明替换成功。
如对本文有疑问,请在下面进行留言讨论,广大热心网友会与你互动!! 点击进行留言回复
iOS 使用UITextField自定义搜索框 实现用户输入完之后“实时搜索”功能
网友评论