]]>cygwin下安装DBIhttp://m.tkk7.com/baicker/archive/2007/08/27/140128.html009009Mon, 27 Aug 2007 12:59:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/27/140128.htmlhttp://m.tkk7.com/baicker/comments/140128.htmlhttp://m.tkk7.com/baicker/archive/2007/08/27/140128.html#Feedback0http://m.tkk7.com/baicker/comments/commentRss/140128.htmlhttp://m.tkk7.com/baicker/services/trackbacks/140128.html Install cygwin with these options:
- gcc (devel)
- make (devel)
- binutils (devel)
- Perl 5.8.6 (interpreters)
- Perl win32 API (libs)
- PostgreSQL (database)
installing DBI-1.48.tar.gz as follows:
- Unpack the kit into /usr/src (c:\cygwin\usr\src)
- Open a cygwin shell and cd to /usr/src/DBI-1.48
- perl Makefile.PL
- make
- make test
- make install
]]>Terminal Services: reset Sessionshttp://m.tkk7.com/baicker/archive/2007/08/25/139261.html009009Sat, 25 Aug 2007 06:24:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/25/139261.htmlhttp://m.tkk7.com/baicker/comments/139261.htmlhttp://m.tkk7.com/baicker/archive/2007/08/25/139261.html#Feedback0http://m.tkk7.com/baicker/comments/commentRss/139261.htmlhttp://m.tkk7.com/baicker/services/trackbacks/139261.htmlThe problem: you use terminal services in administration mode (which allows 2 sessions), now you cannot connect to the server because all sessions are used.
Windows 2000+ (includes Windows XP and 2003) have two command-line tools called qwinsta and rwinsta that can query and reset a remote session.
Query a server:
> qwinsta /server:192.168.12.12
.......
阅读全文
]]>Use CDO.Message (cdosys.dll) to send an SMTP Mail with importance (as a VBS Script)http://m.tkk7.com/baicker/archive/2007/08/25/139258.html009009Sat, 25 Aug 2007 06:15:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/25/139258.htmlhttp://m.tkk7.com/baicker/comments/139258.htmlhttp://m.tkk7.com/baicker/archive/2007/08/25/139258.html#Feedback0http://m.tkk7.com/baicker/comments/commentRss/139258.htmlhttp://m.tkk7.com/baicker/services/trackbacks/139258.htmlI had to create a .VBS script to create an automated E-Mail message. The hardest part was to set the importance of the mail, I've found the solution here: http://www.lewisroberts.com/?p=64
Here come's the script:
Dim iMsg
Dim iConf
Dim Flds
Dim strHTML
............
阅读全文
]]>Task Scheduler or RunAs without a passwordhttp://m.tkk7.com/baicker/archive/2007/08/25/139257.html009009Sat, 25 Aug 2007 06:11:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/25/139257.htmlhttp://m.tkk7.com/baicker/comments/139257.htmlhttp://m.tkk7.com/baicker/archive/2007/08/25/139257.html#Feedback1http://m.tkk7.com/baicker/comments/commentRss/139257.htmlhttp://m.tkk7.com/baicker/services/trackbacks/139257.htmlStandard user's in big companies usually runs as unprivileged users, thus they cannot execute admin tasks. But sometimes it's necessary to run a task with admin rights (automated software deploy) - runas, in some situations, is a bad idea because it needs a user and a clear text password (and no, the password compiled in an exe file is not very safe!).
......
阅读全文
]]>Quick and dirty PXE boothttp://m.tkk7.com/baicker/archive/2007/08/25/139256.html009009Sat, 25 Aug 2007 06:08:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/25/139256.htmlhttp://m.tkk7.com/baicker/comments/139256.htmlhttp://m.tkk7.com/baicker/archive/2007/08/25/139256.html#Feedback0http://m.tkk7.com/baicker/comments/commentRss/139256.htmlhttp://m.tkk7.com/baicker/services/trackbacks/139256.html You need tftpd32 from Ph. Jounin (http://tftpd32.jounin.net/) and PXELINUX, which is a part of the SYSLINUX package (http://syslinux.zytor.com).
阅读全文
]]>关于PE可执行文件的修改(ZT)http://m.tkk7.com/baicker/archive/2007/08/05/134547.html009009Sun, 05 Aug 2007 14:15:00 GMThttp://m.tkk7.com/baicker/archive/2007/08/05/134547.htmlhttp://m.tkk7.com/baicker/comments/134547.htmlhttp://m.tkk7.com/baicker/archive/2007/08/05/134547.html#Feedback0http://m.tkk7.com/baicker/comments/commentRss/134547.htmlhttp://m.tkk7.com/baicker/services/trackbacks/134547.htmlDOS MZ header
DOS stub
PE header
Section table
Section 1
Section 2
Section ...
Section n
上表是PE文gl构的M层次分布。所?PE文g(甚至32位的 DLLs) 必须以一个简单的 DOS MZ header 开始,在偏U?处有DOS下可执行文g的“MZ标志”,有了它,一旦程序在DOS下执行,DOSp识别是有效的执行体,然后q行紧随 MZ header 之后?DOS stub。DOS stub实际上是个有效的EXEQ在不支?PE文g格式的操作系l中Q它简单显CZ个错误提C,cM于字W串 " This program cannot run in DOS mode " 或者程序员可根据自q意图实现完整?DOS代码。通常DOS stub由汇~器/~译器自动生成,Ҏ们的用处不是很大Q它单调用中?1h服务9来显C字W串"This program cannot run in DOS mode"?nbsp; 阅读全文