posted @ 2010-10-24 03:22 张银 阅读(249) 评论(0) 编辑
摘要: 一、系统问题 1、Win7重建图标缓存rem 关闭Windows外壳程序explorertaskkill /f /im explorer.exerem 清理系统图标缓存数据库attrib -h -s -r "%userprofile%\AppData\Local\IconCache.db"del /f "%userprofile%\AppData\Local\IconCache.db"attrib /s /d -h -s -r "%userprofile%\AppData\Local\Microsoft\Windows\Explorer\*&q阅读全文
摘要: 电脑摄像头自动拍照软件 timershotOfficeIM 网络办公软件,办公交流两不误 类似于BQQ http://go.icpcw.com/f/08bg.htm 服务端、客户端HopedotVOS 打造安全虚拟系统USB监视器(可禁用所选设备) USBDeview搜电子书 打开http://www.google.com.hk 输入inurl:java filetype:chm让你的演讲功力翻倍 ①虚拟教棒 虚拟教棒指点屏幕②屏幕画笔 涂涂画画标注屏幕③Zoomlt 细节演示放大屏幕④鼠标探照灯 排除干扰聚焦屏幕FreeNASErase 磁盘工具 为OS X建立分区Mot...阅读全文
posted @ 2010-01-22 12:43 张银 阅读(260) 评论(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Web;using System.Web.UI;using System.Web.UI.WebControls;using Microsoft.Win32;public partial class PrintSetDefault : System.Web.UI.Page{ protected void Page_Load(object sender, EventArgs e) { if (ReadReg() == 1) { ...阅读全文
posted @ 2012-04-28 14:03 张银 阅读(229) 评论(0) 编辑
摘要: <html><head> <title>打-印-预-览</title> <script language="javascript" type="text/javascript"> <!-- //弹窗打印函数 function printPage(id) { var needHTML = document.getElementById(id).innerHTML; //alert(needHTML); var OpenWindow = window.open("print.ht..阅读全文
posted @ 2012-04-28 13:44 张银 阅读(140) 评论(0) 编辑
摘要: <html><head> <title>打-印-预-览</title> <script type="text/javascript" language="javascript"> var hkey_root, hkey_path, hkey_key hkey_root = "HKEY_CURRENT_USER" hkey_path = "\\software\\Microsoft\\Internet Explorer\\PageSetup\\" //设置网阅读全文
posted @ 2012-04-25 16:01 张银 阅读(102) 评论(0) 编辑
摘要: using System;using System.Collections.Generic;using System.Text;namespace temp{ public class QuickSort { /// <summary> /// 排序 /// </summary> /// <param name="numbers">待排序数组</param> /// <param name="left">数组第一个元素索引Index</param> /// <param na.阅读全文
posted @ 2012-04-08 23:50 张银 阅读(260) 评论(0) 编辑
摘要: 如果问C#程序员,四舍五入方法是怎么写的。很多人上来就会轻而易举的写上一个Math.Round()方法。但却不知,其中可悲的奥妙之处!试写出下列计算结果: Math.Round(0.5) Math.Round(1.5) 肯定有一部分人会写,计算结果为1和2。 那就大错特错了!事实证明,这两个表达式的结果分别为0和2!这就是很多程序的BUG所在。 细心的程序员们可以看一下MSDN中对Math.Round(Decimal)方法的描述,其中对于返回值的描述如下:返回值类型:System.Decimal最接近参数d的整数。如果d的小数部分正好处于两个整数中间,其中一个整数为偶数,另一个整...阅读全文
posted @ 2012-03-30 15:02 张银 阅读(250) 评论(1) 编辑
摘要: 电脑上安装了39条码字体:C39HrP24DlTt先看下控件界面截图转换条码字体 private void button1_Click(object sender, EventArgs e) { Bitmap b1 = new Bitmap(Convert.ToInt32(textBox2.Text), Convert.ToInt32 ( textBox3.Text)); Graphics g1 = Graphics.FromImage(b1); Font font1 = new Font("C39H...阅读全文
posted @ 2012-03-30 12:58 张银 阅读(475) 评论(1) 编辑
摘要: .NET Reactor 是个好东西,只不过这家伙升级的速度非常快,加密算法经常变化,而且越来越厉害,实在懒得 "跟" 了。这类工具通常在 "壳" 上做了大量的工作,诸如什么 JIT Hook、native loader 之类的。而我通常只使用它的混淆功能,所以用另外一种方法 "绕" 过去,即便不注册,也可以使用最新版本。 首先,我们准备一个简单一点的 DLL,用于分析 .NET Reactor 混淆后的限制。test.dllnamespace MyLibrary{ public class MyClass { public void阅读全文
posted @ 2012-01-15 22:00 张银 阅读(428) 评论(1) 编辑
摘要: SuppressIldasmAttribute 是最简单也是最常用的 "反反编译" 手段,它的作用就是"提醒" ildasm.exe 不要工作。但作为一个重要的反编译工具,我们当然不希望 ILDasm.exe 这么"聪明"。没办法,还是得自己动手,给ildasm.exe 当头一棒,打傻再说。 首先拿出 CFF Explorer 看看 ildasm.exe 的基本信息。 晕!居然是 Win32 Native Code,看来试图修改 IL 的老办法是没戏了。怎么办呢?既然是 native code,也就是说它没有办法用我们所熟悉的反射手段阅读全文
posted @ 2012-01-15 05:16 张银 阅读(140) 评论(0) 编辑
摘要: IL文件修改入门篇================================== Object: 掌握简单的IL文件处理知识 能够熟练运用ildasm,ilasm工具 ================================== 1.编写简单的hello.cs2.编译源代码csc hello.cs3.反编译hello.exe,命令如下: ildasm hello.exe /out=hello.il4.打开hello.il文件,找到下面语句 IL_0000: ldstr "Hello World!" 修改为 IL_0000: ldstr "Hello 阅读全文
posted @ 2012-01-15 04:01 张银 阅读(164) 评论(0) 编辑
