摘要: 失败的一次尝试 先用Cheat Engine扫阳光的地址,然后找到修改该值的代码。一个是捡阳光时增加,一个是种植物减少。 这里我们看种植物减少的部分。 0041BA76 将计算过的阳光赋值回 阳光数量 这个变量。 一开始的方向是想找到位于.data section的指针,一直指向 edi+0x556 阅读全文
posted @ 2023-02-05 23:40 dewxin 阅读(239) 评论(0) 推荐(0)
摘要: winrar个人免费版的广告每次打开都会弹出,影响操作。这篇文章记录一下如何关闭广告。 思路:找到打开窗口的代码,用nop替换。 观察到广告窗体title的内容是WinRAR,于是在x64dbg中搜索对应的字符串WinRAR。找到多个地方访问这个地址的值,下断点后运行。 在某处断点运行后打开了广告窗 阅读全文
posted @ 2023-01-25 22:38 dewxin 阅读(183) 评论(0) 推荐(0)
摘要: https://www.youtube.com/@crackinglessons5474 https://www.crackinglessons.net/ 阅读全文
posted @ 2023-01-23 22:17 dewxin 阅读(25) 评论(0) 推荐(0)
摘要: http://www.nynaeve.net/?p=80 Debugger flow control: Hardware breakpoints vs software breakpoints In debugging parlance, there are two kinds of breakpo 阅读全文
posted @ 2023-01-20 16:48 dewxin 阅读(174) 评论(0) 推荐(0)
摘要: C#和C++的交互如果自己写代码,一方面繁琐,另一方面容易出错,再者就是代码不太规范。 最近看了一下PInvoke.net的东西,可以直接使用官方写好的。 下面是使用Pinvoke.net打开设备的一个例子。 private void openDeviceButton_Click(object se 阅读全文
posted @ 2023-01-19 00:45 dewxin 阅读(92) 评论(0) 推荐(0)
摘要: 键盘VirtualKey https://learn.microsoft.com/en-us/windows/win32/api/winuser/nf-winuser-mapvirtualkeya https://www.scs.stanford.edu/10wi-cs140/pintos/spec 阅读全文
posted @ 2023-01-11 22:59 dewxin 阅读(51) 评论(0) 推荐(0)
摘要: https://learn.microsoft.com/en-us/archive/msdn-magazine/2017/may/net-core-cross-platform-code-generation-with-roslyn-and-net-core https://www.tugberku 阅读全文
posted @ 2022-12-13 19:55 dewxin 阅读(167) 评论(1) 推荐(0)
摘要: C#的序列化库很多通过注解Attribute来实现,比如Protobuf-net,Messagepack等。如果手动添加注解,会比较麻烦,尤其在切换序列化库的时候,需要更改对应的注解。 这里实现了一个使用Mono.Cecil来自动添加注解的类,当程序编译后,会修改对应的dll来实现效果。 遇到的坑: 阅读全文
posted @ 2022-12-08 15:41 dewxin 阅读(139) 评论(0) 推荐(0)
摘要: 最近用反射,想找到一个接口的父接口,发现baseType是null。 但是dotpeek反射里面显示是有baseType的。 搜了一下,意识到你只能 implement 一个接口,而不能inherit一个接口。所以一个接口想找到父接口应该再次使用GetInterfaces函数。 阅读全文
posted @ 2022-12-03 16:44 dewxin 阅读(76) 评论(0) 推荐(0)
摘要: 《TCP/IP Illustrated Volume1 The Protocols》第14章的总结中提到 Karn’s algorithm removes the retransmission ambiguity problem by preventing the use of RTT measur 阅读全文
posted @ 2022-12-03 14:26 dewxin 阅读(283) 评论(0) 推荐(0)