仔细检查包含 OR 语句

发布于 2024-11-24 15:59:59 字数 1394 浏览 1 评论 0原文

好吧,我只是提出了一个问题,询问如何简单地 ~(i + -1) < -1 结果是 i > 1

制作一个 JAVA 反混淆器,这是我到目前为止所拥有的。我只是想让人们告诉我哪些是我做错的?如果有的话,请仔细检查。

<代码>~i> -1 是 i 0

~i < -1 是 i > 0

~i > ~classA.vari classA.var

~i >= ~ji <= j

~i <= ~b 是 < code>i >= b

~i == -1i == 0

~classA.var ~classA.var -1classA.var > 0

~classA.var > -1 是 classA.var 0

~classA.var == ~classB.varclassA.var == classB.var

~(-1 + i) ~(-1 + i) -1 是 i > 1

~(i + -1) -1 是 i > 1

~(i & 0x22) != -1(i & 0x22) == 0 <- 似乎错误..

似乎 Eng.Fouad 的正确答案是

~(i & 0x22) != -1(i & 0x22) != 0 <- 到目前为止是正确的。

这些是我的反混淆器到目前为止支持的所有模式......可能会发现更多。

(有错误的吗?)我担心那些带有 == 标志的可能是错误的..我已经测试过它们,它们似乎可以工作..

谢谢我感谢支持,我是一个初学者编程只编程了半年,数学也不是我的强项。

Well I just made a question asking how to simply
~(i + -1) < -1 which turned out to be i > 1

Making a JAVA deobfuscator and here is what I have so far.. I just want people to tell me which ones I did wrong? if any just double checking.

~i > -1 is i < 0

~i < -1 is i > 0

~i > ~classA.var is i < classA.var

~i >= ~j is i <= j

~i <= ~b is i >= b

~i == -1 is i == 0

~classA.var < -1 is classA.var > 0

~classA.var > -1 is classA.var < 0

~classA.var == ~classB.var is classA.var == classB.var

~(-1 + i) < -1 is i > 1

~(i + -1) < -1 is i > 1

~(i & 0x22) != -1 is (i & 0x22) == 0 <- seems wrong..

Seems the correct answer by Eng.Fouad is

~(i & 0x22) != -1 is (i & 0x22) != 0 <- correct so far.

These are all the patterns my deobfuscator supports so far.. probably will find a bunch more.

(Any wrong ones?) I Fear the ones with == signs may be wrong.. i've tested them and they seem to work..

Thanks I appreciate the support, i'm a beginner to programming only programmed half a year and math isn't my strong point.

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

甜味超标? 2024-12-01 15:59:59

只需将每个 ~x 替换为 -x - 1

  • ~i > -1 ==> -i - 1 > -1 ==> -i > 0 ==> i < 0
  • ~i < -1 ==> -i - 1 -1 ==> -i < 0 ==> i > 0

等等。

Just replace each ~x with -x - 1:

  • ~i > -1 ==> -i - 1 > -1 ==> -i > 0 ==> i < 0
  • ~i < -1 ==> -i - 1 < -1 ==> -i < 0 ==> i > 0

and so on.

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文