今天释出的KB958644号紧急更新,引起了我不小的兴趣,很希望知道到底是什么东西导致微软捅了这么大的篓子呢?无奈,因为出品公司(微软)承认这是一个严重的安全漏洞,提出问题的网站(http://www.cve.mitre.org/cgi-bin/cvename.cgi?name=CVE-2008-4250)已经去除了关于此漏洞的详细说明。这条路不通了。
MS08-067(http://support.microsoft.com/?kbid=958644)描述了什么样的系统里具体什么样的文件会出问题。从中可以看到,主要问题出在Netapi32.dll这个DLL。可以看出,自Microsoft Windows 2000 Service Pack 4(不是说之前的就没有,而是只从SP4开始技术支持)开始的5.0.2195.7203版本的Netapi32.dll,直到Windows Vista、Windows Server 2008甚至Windows 7 Pre-Beta的6.1.6801.4106版本Netapi32.dll都逃脱不了噩运。
重要的提示来自Microsoft Security Bulletin MS08-067 – Critical(Vulnerability in Server Service Could Allow Remote Code Execution (958644))一文。文中特别指出,这个漏洞如此广泛,甚至Windows Server 2008的Server Core installation也会受到同样安全威胁等级的威胁。这说明,这个漏洞存在很基础的地方。
Server Core installation是Server功能的极小集,根据Compare Server Core Installation Options一文,Server Core installation可以安装以下功能:

  • Active Directory Domain Services
  • Active Directory Lightweight Directory Services
  • DHCP Server
  • DNS Server
  • File Services
  • Hyper-V
  • Print Services
  • Web Services (IIS) without ASP.NET

鉴于Windows 2000也是受害者,因此不可能是Active Directory Lightweight Directory Services和Hyper-V的问题。
Server Core Functions by DLL一文给出了netapi32.dll的详细功能说明。
我不辞辛苦地把提到的API函数进行Google,存在漏洞的API肯定是存在在Windows 2000以来所有版本Windows中的,例如DsGetDcCloseW这样的API,微软文档声称“Client:Requires Windows Vista or Windows XP,Server:Requires Windows Server 2008 or Windows Server 2003.”,因此不可能是与漏洞有关。
剩下的可疑的Windows API有这些:

  • netapi32.dll DsAddressToSiteNamesA
  • netapi32.dll DsAddressToSiteNamesExA
  • netapi32.dll DsAddressToSiteNamesExW
  • netapi32.dll DsAddressToSiteNamesW
  • netapi32.dll DsDeregisterDnsHostRecordsA
  • netapi32.dll DsDeregisterDnsHostRecordsW
  • netapi32.dll DsEnumerateDomainTrustsA
  • netapi32.dll DsEnumerateDomainTrustsW
  • netapi32.dll DsGetDcNameA
  • netapi32.dll DsGetDcNameW
  • netapi32.dll DsGetDcOpenA
  • netapi32.dll DsGetDcOpenW
  • netapi32.dll DsGetDcSiteCoverageA
  • netapi32.dll DsGetDcSiteCoverageW
  • netapi32.dll DsGetSiteNameA
  • netapi32.dll DsGetSiteNameW
  • netapi32.dll DsMergeForestTrustInformationW
  • netapi32.dll DsRoleFreeMemory
  • netapi32.dll DsRoleGetPrimaryDomainInformation
  • netapi32.dll NetApiBufferAllocate
  • netapi32.dll NetApiBufferFree
  • netapi32.dll NetApiBufferReallocate
  • netapi32.dll NetApiBufferSize
  • netapi32.dll NetConnectionEnum
  • netapi32.dll NetDfsAdd
  • netapi32.dll NetDfsAddFtRoot
  • netapi32.dll NetDfsAddStdRoot
  • netapi32.dll NetDfsAddStdRootForced
  • netapi32.dll NetDfsEnum
  • netapi32.dll NetDfsGetClientInfo
  • netapi32.dll NetDfsGetInfo
  • netapi32.dll NetDfsRemove
  • netapi32.dll NetDfsRemoveFtRoot
  • netapi32.dll NetDfsRemoveStdRoot
  • netapi32.dll NetDfsSetClientInfo
  • netapi32.dll NetDfsSetInfo
  • netapi32.dll NetFileClose
  • netapi32.dll NetFileEnum
  • netapi32.dll NetFileGetInfo
  • netapi32.dll NetGetAnyDCName
  • netapi32.dll NetGetDCName
  • netapi32.dll NetGetDisplayInformationIndex
  • netapi32.dll NetGetJoinableOUs
  • netapi32.dll NetGetJoinInformation
  • netapi32.dll NetGroupAdd
  • netapi32.dll NetGroupAddUser
  • netapi32.dll NetGroupDel
  • netapi32.dll NetGroupDelUser
  • netapi32.dll NetGroupEnum
  • netapi32.dll NetGroupGetInfo
  • netapi32.dll NetGroupGetUsers
  • netapi32.dll NetGroupSetInfo
  • netapi32.dll NetGroupSetUsers
  • netapi32.dll NetLocalGroupAdd
  • netapi32.dll NetLocalGroupAddMembers
  • netapi32.dll NetLocalGroupDel
  • netapi32.dll NetLocalGroupDelMembers
  • netapi32.dll NetLocalGroupEnum
  • netapi32.dll NetLocalGroupGetInfo
  • netapi32.dll NetLocalGroupGetMembers
  • netapi32.dll NetLocalGroupSetInfo
  • netapi32.dll NetLocalGroupSetMembers
  • netapi32.dll NetQueryDisplayInformation
  • netapi32.dll NetRemoteComputerSupports
  • netapi32.dll NetRemoteTOD
  • netapi32.dll NetRenameMachineInDomain
  • netapi32.dll NetScheduleJobAdd
  • netapi32.dll NetScheduleJobDel
  • netapi32.dll NetScheduleJobEnum
  • netapi32.dll NetScheduleJobGetInfo
  • netapi32.dll NetServerComputerNameAdd
  • netapi32.dll NetServerComputerNameDel
  • netapi32.dll NetServerDiskEnum
  • netapi32.dll NetServerEnum
  • netapi32.dll NetServerGetInfo
  • netapi32.dll NetServerSetInfo
  • netapi32.dll NetServerTransportAdd
  • netapi32.dll NetServerTransportAddEx
  • netapi32.dll NetServerTransportDel
  • netapi32.dll NetServerTransportEnum
  • netapi32.dll NetSessionDel
  • netapi32.dll NetSessionEnum
  • netapi32.dll NetSessionGetInfo
  • netapi32.dll NetShareAdd
  • netapi32.dll NetShareCheck
  • netapi32.dll NetShareDel
  • netapi32.dll NetShareEnum
  • netapi32.dll NetShareGetInfo
  • netapi32.dll NetShareSetInfo
  • netapi32.dll NetStatisticsGet
  • netapi32.dll NetUnjoinDomain
  • netapi32.dll NetUseAdd
  • netapi32.dll NetUseDel
  • netapi32.dll NetUseEnum
  • netapi32.dll NetUseGetInfo
  • netapi32.dll NetUserAdd
  • netapi32.dll NetUserChangePassword
  • netapi32.dll NetUserDel
  • netapi32.dll NetUserEnum
  • netapi32.dll NetUserGetGroups
  • netapi32.dll NetUserGetInfo
  • netapi32.dll NetUserGetLocalGroups
  • netapi32.dll NetUserModalsGet
  • netapi32.dll NetUserModalsSet
  • netapi32.dll NetUserSetGroups
  • netapi32.dll NetUserSetInfo
  • netapi32.dll NetValidatePasswordPolicy
  • netapi32.dll NetWkstaGetInfo
  • netapi32.dll NetWkstaSetInfo
  • netapi32.dll NetWkstaTransportAdd
  • netapi32.dll NetWkstaTransportDel
  • netapi32.dll NetWkstaTransportEnum
  • netapi32.dll NetWkstaUserEnum
  • netapi32.dll NetWkstaUserGetInfo
  • netapi32.dll NetWkstaUserSetInfo

接下来只能猜了…
基于以上各点线索,猜测KB958644特大漏洞的原理可能是以下:

  • 文件共享及发现(共享打印机等)
  • Active Directory目录服务

微软爆出特大安全漏洞,会导致远程控制,危害程度跟“冲击波”类似,强烈建议各位下载此补丁。现已确认存在一个安全问题,通过了身份验证的远程攻击者可能会利用此问题危及基于Microsoft Windows系统的安全并获取对该系统的控制权。

Q&A:

  • Q:我不打会怎么样?A:目前尚无攻击手段,这几天是安全的,随着补丁的释出,攻击代码也会出现,到时候可能会出现类似震荡波冲击波的情况。此种紧急更新,微软历史上只有一次,那一次是冲击波。
  • Q:会不会影响正版验证?A:这种级别的安全补丁不会要求正版验证的,与黑屏和正版验证没有关系,放心打补丁。

技术文章:

http://www.microsoft.com/technet/security/bulletin/MS08-067.mspx
http://support.microsoft.com/?kbid=958644
下载地址:(点击打开相应的下载页面) ,推荐到Windows Update网站进行更新

用名牌一年了,老的名片真的挺土,一点也不简介,搞得我像是个推销什么东西的…
新版名片今天终于派上用场,这次的名片很低调,甚至连颜色都不怎么用,看下吧

[singlepic=18133]

上次给枕头看我的PSP和我的名片(因为都是我博客模板这种风格的),枕头也给我看了她的名片,并说,其实送给不是自己朋友的情况还是很少很少的…
而且她觉得名片上自己的英文名印错了,我觉得挺好,变r像法语…不扯。

今天上午,公司方的老总带来中科院东莞所的人来,继续忽悠,耽误了本人宝贵的一天时间,唉,只好晚上加班。
来的一个技术总监一个女博士,上来就交换名片…大囧,取出本人新名片奉上,看起来眼前一亮的样子,我觉得应该表示效果还好吧。还好我没写是硕士研究生,所以所有人都以为我是博士…我长得那么惨?

昨天晚上又去喝酒来着,6个人,他们5个喝了一瓶50度的杏花村,我是不敢碰白酒,所以自己喝了2瓶百威。
这些坏人喝到后面开始扯乱七八糟的东西,原来都不是好人…

告诉你地球不是圆的,你会怎么想?
告诉你你不是你,而是本体的一种意象,你会怎么想?
重建世界观价值观是痛苦和荒谬的,就像是呱呱坠地姗姗学步的婴儿,和战战兢兢学习骑车的幼童一样,要时刻记得根本才行,一旦有所疑惑,回到最初看看定义,才敢继续下去。
这个世界的根本动力是什么?为什么这么多人要努力拼搏?
我以前一直以为是爱。
最近发生的一些事情让我不得不放弃这样的根本价值观,因为如果我不放弃,就意味着我要为之放弃生命,在那样的世界里这样一个我是不允许存在的。
世界的本源,也许是钱吧,我们为了钱,为了生存,不得不殚精竭虑,奋勇争先,获得这个世界的点卡,让别人看得起让别人去尊敬。
太荒谬了,又有什么办法。
多么想,能像别人一样,每天不想这些事情也可以活得很好,按照习惯去做各种各样的事情,惯性地认为这些事情都有存在的道理,相信所有的事情都是命中注定。
可惜我不行。

是我执拗地在心灵中建立起爱的世界
是我愚蠢地放弃了本属于自己的幸福时光
是我曾经在简单的完美中彷徨
是我沉醉于10厘米之外的美丽脸庞
是我总是不合时宜地想,我要抓紧这样的幸福,因为不久将不再永恒
是我将信将疑地看着她安慰的目光
最终,当所有的所有轰然倒下
是我迷失于现实与梦想的地狱与天堂

[singlepic=18124]

《色彩的性格》(Wie Farben wirken)色彩心理 色彩象征 色彩构思
[德] 爱娃 海勒(Eva Heller)
吴彤译,中央编译出版社

原来大家这么不喜欢橙色
人们最喜爱的颜色排名:蓝色(30%)红色(20%)绿色(12%)黑色(8%)粉红色(5%)黄色(5%)白色(3%)紫色(3%)金色(2%)褐色(2%)灰色(1%)银色(1%)橙色(1%)

我不想破坏页面效果,所以请点进去和我一起仔细读吧~

P.S. 花了一整天,好好读完了这本书,好累

Continue reading

王安石
  金溪平民方仲永,世隶耕。仲永生五年,未尝识书具,忽啼求之;父异焉,借旁近与之。即书诗四句,并自为其名,其诗以养父母、收族为意,传一乡秀才观之。自是指物作诗,立就,其文理皆有可观者。邑人奇之,稍稍宾客其父;或以钱币乞之。父利其然也,日扳仲永环谒于邑人,不使学。
  余闻之也久。明道中,从先人还家,于舅家见之,十二三矣。令作诗,不能称前时之闻。又七年,还自扬州,复到舅家问焉。曰:“泯然众人矣!”
  王子曰:仲永之通悟,受之天也。其受之天也,贤于材人远矣。卒之为众人,则其受于人者不至也。彼其受之天也,如此其贤也,不受之人,且为众人;今夫不受之天,固众人,又不受之人,得为众人而已耶?

你能从中读出我的悲哀吗?

发布一款小工具吧。设想这样一种需求:
有时候你可能想写一份教程,关于一个东西该怎么配置,可能有多个关键步骤。当然屏幕录像是最好的,不过比较大嘛。你可以用Print Screen去获取每次一张全屏幕图像,然后Photoshop到合适大小,只给人看到工作窗口,而看不到别的(因为可能涉及到隐私,比如一封给朋友没写完的抱怨老板邮件的标题栏之类的)。多麻烦。
这款小工具,打开之后就显示一个窗口,最小化就会缩在任务栏不再烦你。需要截图的时候,按下组合键:Ctrl + F12,就会把截图放在桌面一个叫做ScreenShots的文件夹里,截图只会包含当前的工作窗口,不包含别的东西。
当然,你可以一边操作一边截图,图像是按照时间戳取名字的,不会重复,每按一次快捷键就会截一张图像,你的操作,不会被打断。
对了,图片会保存成JPG格式,默认100%质量,可以在界面里设置质量,你可以按照需求降低质量以便缩小文件大小。

效果是这样的:
[singlepic=18109,650,487]

P.S. 我的Vista是正版的,别指责我。

下载:http://download.nocoo.us/Download/NocooTools/ScreenCapture/Release.rar