明经CAD社区

 找回密码
 注册

QQ登录

只需一步,快速开始

搜索
楼主: baitang36

[经验] 【原创】and函数的深入研究 用and代替if

  [复制链接]
发表于 2024-7-3 14:48:54 | 显示全部楼层
应付那些傻瓜式反编译可以
发表于 2024-7-3 17:37:18 | 显示全部楼层
第一次知道and代替if还是在老迈的迷你工具箱
发表于 2024-7-3 19:50:48 来自手机 | 显示全部楼层
黄翔 发表于 2024-7-3 10:42
按照楼主的意思, and 只能替代 (if testexpr thenexpr ) 情况
不能替换(if testexpr thenexpr elseexpr)

(or   (and a b)  c)
发表于 2024-7-3 19:57:04 来自手机 | 显示全部楼层
自贡黄明儒 发表于 2024-7-3 19:50
(or   (and a b)  c)

(or (and a (progn b t)) c)
发表于 2024-7-5 17:56:29 | 显示全部楼层
写多了后,基本只用and和cond。  and可避免程序出错

点评

好习惯,形成自己的风格  发表于 2024-7-7 00:06
发表于 2024-11-6 17:27:05 | 显示全部楼层
我想用这个对抗反编译,是能使编译出错。

但是我又写了注册机,我注册机手搓的,就只是算个机器码简单运算了,这样别人反编译没拿到源程序,但是拿到注册代码,注册机泄露了。菜鸟来的,不知怎么应对。
发表于 2024-11-6 23:54:25 | 显示全部楼层
用猫的程序把代码混淆增大了,拿到源代码,也没时间精力转回去最简单的源代码
发表于 2024-11-7 10:48:17 | 显示全部楼层
黄翔 发表于 2024-7-3 10:06
都能反编译出来了.还不会加progn吗?

这点完全可以放心,绝大多数人不知道该加在哪里...
发表于 2024-11-7 10:53:57 | 显示全部楼层
黄翔 发表于 2024-7-3 10:42
按照楼主的意思, and 只能替代 (if testexpr thenexpr ) 情况
不能替换(if testexpr thenexpr elseexpr)

(and ...
   (or(and testexpr(progn thenexpr t))
    (progn elseexpr t))
   ...)
您需要登录后才可以回帖 登录 | 注册

本版积分规则

小黑屋|手机版|CAD论坛|CAD教程|CAD下载|联系我们|关于明经|明经通道 ( 粤ICP备05003914号 )  
©2000-2023 明经通道 版权所有 本站代码,在未取得本站及作者授权的情况下,不得用于商业用途

GMT+8, 2025-2-23 12:09 , Processed in 0.166337 second(s), 22 queries , Gzip On.

Powered by Discuz! X3.4

Copyright © 2001-2021, Tencent Cloud.

快速回复 返回顶部 返回列表