我们已经知道双击 system32 目录里面的 desk.cpl 文件或者 使用命令行
rundll32 shell32.dll,Control_RunDLL desk.cpl
可以打开桌面属性设置的哪个对话框,更改分辨率过后要应用的话将会黑屏一会儿,呵呵,想象一下如果我们一直点“应用”那不就一直黑着了吗,这个时候电脑面前的人就真的成盲人盲人摸象了!可惜不能一直点。。。
今天闲来无事,分析这些文件玩,发现 desk.cpl 里面居然跟 dll 一样有接口!
由于不知道具体参数,我只能一个一个测试,看有没有什么好玩的功能,果然功夫不负有心人,让我给找到了几个有用的,其中就有黑屏的哈哈,你可以执行
rundll32 desk.cpl,DisplayTestSettingsW
于是,嘿嘿,我想到了程序里面好像有循环干某个事的功能,来个批处理试试:
@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
goto OhYes
等等,千万别运行这个,不然你就只有重启了,CPU会累坏的,经科学研究发现,每次黑屏可以持续大概一点几秒,估计也要看机器配置吧,所以你也别太折磨CPU,让它歇歇,也让你有机会KILL掉这个P处理,可以设为间隔约1秒:
@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
ping -n 1 127.0.0.1 > nul
goto OhYes
嘿嘿,有了这个就可以搞恶作剧了,让别人只能选择盯着嘿嘿的屏幕或者重启,如果在能把它加到启动项,厄,太不道德了。。。
当然我们自己得备好解药啊,在执行之前先在运行里面输入
taskkill /f /im cmd.exe
等天黑的时候只要按 WIN + R 快捷键切换到运行窗口,敲回车就行了,但是如果你不让CPU休息就等死吧。。。。
再来个 VBS 版和 VBE 版的,双击即可无窗口,隐藏效果好
保存为 .vbs 文件:
with createobject("wscript.shell")
do
.run "rundll32 desk.cpl,DisplayTestSettingsW",0,false
wscript.sleep 999
loop
end with
vbe 文件,预设间隔时间 999 ms ,由于有个TAB 字符不能正确的贴出来,只有上传文件了。
---------------------------------------------
还有个很爽很恶心的,我暂时还没找到好的解决办法,对用键盘操作电脑不是非常熟悉的人请不要轻易尝试:
rundll32 desk.cpl,UpdateUIfontsDueToDPIchange
Last edited by qinchun36 on 2009-7-9 at 10:05 ]
We already know that double-clicking the desk.cpl file in the system32 directory or using the command line
rundll32 shell32.dll,Control_RunDLL desk.cpl
can open which dialog box for desktop properties settings. After changing the resolution, there will be a black screen for a while when applying. Hehe, imagine if we keep clicking "Apply", it will always be black. At this time, the person in front of the computer really becomes a blind man groping for an elephant! Unfortunately, we can't keep clicking...
Today, I was bored and analyzed these files. I found that there are actually interfaces in desk.cpl like in dll!
Since I don't know the specific parameters, I can only test one by one to see if there are any fun functions. Sure enough, perseverance pays off, and I found a few useful ones, including the black screen. Hehe, you can execute
rundll32 desk.cpl,DisplayTestSettingsW
So, heh, I thought there seems to be a function of looping to do something in the program. Let's try a batch file:
@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
goto OhYes
Wait, don't run this, otherwise you will only have to restart. The CPU will be exhausted. Scientific research has found that each black screen can last about a second or so. It is estimated that it also depends on the machine configuration. So don't torture the CPU too much, let it rest, and also let you have a chance to KILL this P process. You can set the interval to about 1 second:
@echo off
:OhYes
rundll32 desk.cpl,DisplayTestSettingsW
ping -n 1 127.0.0.1 > nul
goto OhYes
Hehe, with this, you can play a prank. Let others only have to choose to stare at the black screen or restart. If you can add it to the startup item, uh, it's too immoral...
Of course, we have to prepare the antidote ourselves. Before executing, first enter in the run
taskkill /f /im cmd.exe
When it's dark, just press the WIN + R shortcut to switch to the run window and press Enter. But if you don't let the CPU rest, you will die...
Here's a VBS version and VBE version. Double-click to have no window, good hidden effect
Save as a.vbs file:
with createobject("wscript.shell")
do
.run "rundll32 desk.cpl,DisplayTestSettingsW",0,false
wscript.sleep 999
loop
end with
Vbe file, preset interval time 999 ms. Since there is a TAB character that can't be pasted correctly, I can only upload the file.
---------------------------------------------
There is another very cool and disgusting one. I haven't found a good solution yet. Please don't try it easily if you are not very familiar with operating the computer with the keyboard:
rundll32 desk.cpl,UpdateUIfontsDueToDPIchange
Last edited by qinchun36 on 2009-7-9 at 10:05 ]