简单到极致
摘要: + //dos 仿真程序 delphi 窗体实现! function GetDosOutput(CommandLine: string; Work: string = 'C:\'): string; var SA: TSecurityAttributes; SI: TStartupInfo; PI: TProcessInformation; StdOutPipeRead, StdOutPipeWrite: THandle; WasOK: Boolean; Buffer: array[0..255] of AnsiChar; BytesRead: Cardinal; Work.. 阅读全文
posted @ 2013-11-17 15:39 ring_hacker 阅读(438) 评论(0) 推荐(0) 编辑
摘要: 最近从Photonvps.com 租了一台windows主机用来测试网站,512MB的内存,35GB的硬盘空间,每个月500GB的流量和2个独立IP地址。我感觉价格偏贵,不过售后服务还是蛮不错的,每次提交的ticket很快就会得到回复。既然有两个IP当然不能浪费了,干脆做个windows VPN用来加速。下面详细图文介绍如何用Windows VPS搭建FQVPN服务器。首先我们要保证vpn起用的条件,”一停四开”: 1.停止window自带的防火墙(windows firewall/internet connection sharing (ICS)服务 2.远程注册表服务(Remote Reg 阅读全文
posted @ 2013-11-17 15:36 ring_hacker 阅读(429) 评论(0) 推荐(0) 编辑
摘要: 其实证书是在那个目录下的cert8.db文件中,只要覆盖这个文件即可。(火狐)certmgr.exe -add CA.crt -c -s -r localMachine Root >NUL (IE and chrome) 阅读全文
posted @ 2013-11-17 15:34 ring_hacker 阅读(99) 评论(0) 推荐(0) 编辑
摘要: if time.time() - common.LOVE_TIMESTAMP > 0 and random.randint(1,10) > 0: 阅读全文
posted @ 2013-11-17 15:28 ring_hacker 阅读(31) 评论(0) 推荐(0) 编辑
摘要: delphi托盘程序Delphi的托盘编程 。现在很多程序都用这个,比如傲游,迅雷等,主要代码如下:usesWindows, Messages, SysUtils, Variants, Classes, Graphics, Controls, Forms,Dialogs, ShellAPI, AppEvnts, StdCtrls, Menus;const WM_NID = WM_User + 1000; //声明一个常量private { Private declarations } // 定义两个函数 procedure SysCommand(var SysMsg: TMessage);.. 阅读全文
posted @ 2013-11-17 15:27 ring_hacker 阅读(162) 评论(0) 推荐(0) 编辑