|
chineselgs
高级用户
    论坛灌水专业户
积分 613
发帖 266
注册 2006-4-19 来自 河南省
状态 离线
|
『楼 主』:
如何从DOS下关机
使用 LLM 解释/回答一下
各们同志大家好
我是新人懂的少
至今有一不明事
还请大家多指教
呵呵,一时高兴,写了个打油诗~~~麻烦你不要吐啊~~~你还吐,说的不是你吗,还有你这个版主,怎么做版主的,带头吐~~~~站长呢,我要投诉!~~~~
好了说正事,如果我想在WINDOWS环境下用DOS实现关机,重启等操作,要使用什么命令,还请指教!
本人用的是WINXP2,系统自带DOS!!
Last edited by chineselgs on 2006-5-11 at 16:30 ]
Comrades, hello everyone
I'm a new user, know little
There's one unclear thing so far
Still ask everyone to give advice
Hehe, happy for a while, wrote a limerick~~~ Please don't spit on me~~~ You still spit, isn't it about you, and you, the moderator, how do you act as a moderator, spitting带头~~~ Where's the webmaster, I want to complain!~~~~
Okay, get down to business, if I want to use DOS to implement shutdown, restart and other operations in the WINDOWS environment, what command should I use, still ask for advice!
I'm using WINXP2, the system comes with DOS!!
Last edited by chineselgs on 2006-5-11 at 16:30 ]
|

饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
|
|
2006-5-11 16:28 |
|
|
asbai
高级用户
   
积分 653
发帖 252
注册 2006-4-16
状态 离线
|
『第 2 楼』:
使用 LLM 解释/回答一下
xp里有shutdown命令的,/s关机,/r重启,其它选项用 /?参数看
In XP, there is the shutdown command. /s is for shutting down, /r is for restarting, and you can use the /? parameter to see other options.
|
|
2006-5-11 16:36 |
|
|
chineselgs
高级用户
    论坛灌水专业户
积分 613
发帖 266
注册 2006-4-19 来自 河南省
状态 离线
|
『第 3 楼』:
不行啊
使用 LLM 解释/回答一下
不行,我试了,那个命令只能在超级用户上用,我现在用户没有权限使用该命令~
No, I tried. That command can only be used by the superuser. I don't have the permission to use that command with my current user~
|

饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
|
|
2006-5-11 16:48 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 4 楼』:
使用 LLM 解释/回答一下
你自己localgrouop administrators xxx /add进administrators组,或者runas /user:administrator "shutdown -s -t 0"
p.s.好像shutdown的参数是用 - 而不是 /
Add yourself to the administrators group with "localgrouop administrators xxx /add" or run "runas /user:administrator "shutdown -s -t 0"
P.S. It seems that the parameters for shutdown use "-" instead of "/"
|
|
2006-5-11 23:02 |
|
|
coarok
新手上路

积分 4
发帖 2
注册 2006-5-12
状态 离线
|
|
2006-5-12 08:23 |
|
|
chineselgs
高级用户
    论坛灌水专业户
积分 613
发帖 266
注册 2006-4-19 来自 河南省
状态 离线
|
『第 6 楼』:
使用 LLM 解释/回答一下
五楼和二楼是不是一家的??
就算二楼是对的,它就是不能用~~
四楼的看起来不错,就是看不懂,能不能说清楚一点啊???
Are the fifth floor and the second floor from the same place??
Even if the second floor is correct, it just doesn't work~~
The fourth floor looks good, but I don't understand it. Can you explain it more clearly???
|

饮马恒河畔,剑指天山西,碎叶城揽月,库叶岛赏雪,黑海之滨垂钓,贝尔加湖面张弓;中南半岛访古,东京废墟祭祖!
|
|
2006-5-12 16:10 |
|
|
jawbin
高级用户
   
积分 994
发帖 444
注册 2005-1-29
状态 离线
|
|
2006-5-13 10:40 |
|
|
bagpipe
银牌会员
     DOS联盟捡破烂的
积分 1144
发帖 425
注册 2005-10-20 来自 北京
状态 离线
|
『第 8 楼』:
使用 LLM 解释/回答一下
楼主说的是DOS系统,我个人认为是纯DOS,好,不就是关机吗?太好办了,楼主听好,举起你的一只手(左右无所谓),然后腾出一个手指(最好有点劲儿的手指)然后对准你平时开机时按的那个按钮使劲的按下去(有些机器必须要持续一段时间,看时间情况)然后你就会看见屏幕上变黑了,好的,到这里,我可以说,你已经成功的从DOS系统下关机了,恭喜你,恭喜你................
The LZ is talking about the DOS system. Personally, I think it's pure DOS. Well, isn't it just shutting down? It's too easy. LZ, listen up. Raise one of your hands (left or right doesn't matter), then free up a finger (preferably a finger with a bit of strength) and then press hard on the button you usually press when you start up (some machines need to be pressed for a certain period of time, depending on the situation). Then you will see the screen turn black. Okay, at this point, I can say that you have successfully shut down from the DOS system. Congratulations, congratulations................
|
|
2006-5-13 17:21 |
|
|
kingljp
初级用户
 
积分 80
发帖 29
注册 2006-5-3
状态 离线
|
|
2006-5-16 00:55 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 10 楼』:
使用 LLM 解释/回答一下
楼主试试这个命令:
http://nufans.net/clone/systools/shutdown.exe
用法跟xp的shutdown类似,关机:
shutdown -u -f -t 0
注意,这可不是XP自带的那个,这个应该可以绕过普通用户权限,因为它在运行时会提升进程权限为system。
shutdown 1.0 for Windows XP - September 2nd, 2001
Copyright(C) 2000-2001 Andrej Budja, www.budja.com/shutdown
This program is FREEWARE.
Usage: shutdown
-l: Log Off.
-u: Shutdown (Turn Off).
-r: Restart.
-h: Hibernate.
-s: Stand By (Sleep).
-f: Force the action.
-c: Cancel a running shutdown.
-t sec: Delay for number of seconds.
Examples:
shutdown -l -f: Logs off current user and forces quick shutdown of applications
shutdown -s -t 30: Initates standby in 30 seconds
shutdown -c: Cancels all initiated actions
The LZ tries this command:
http://nufans.net/clone/systools/shutdown.exe
The usage is similar to XP's shutdown. To shut down:
shutdown -u -f -t 0
Note that this is not the one built into XP. This one should be able to bypass the ordinary user's permissions because when it runs, it elevates the process's permissions to system.
shutdown 1.0 for Windows XP - September 2nd, 2001
Copyright(C) 2000-2001 Andrej Budja, www.budja.com/shutdown
This program is FREEWARE.
Usage: shutdown
-l: Log Off.
-u: Shutdown (Turn Off).
-r: Restart.
-h: Hibernate.
-s: Stand By (Sleep).
-f: Force the action.
-c: Cancel a running shutdown.
-t sec: Delay for number of seconds.
Examples:
shutdown -l -f: Logs off current user and forces quick shutdown of applications
shutdown -s -t 30: Initates standby in 30 seconds
shutdown -c: Cancels all initiated actions
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2006-5-18 03:03 |
|
|
DOSforever
金牌会员
     
积分 4639
发帖 2239
注册 2005-1-30
状态 离线
|
|
2006-5-18 09:37 |
|
|
jawbin
高级用户
   
积分 994
发帖 444
注册 2005-1-29
状态 离线
|
『第 12 楼』:
使用 LLM 解释/回答一下
吐血支持楼上..哈哈
Spit blood to support the person upstairs.. haha
|
|
2006-5-18 10:23 |
|
|
electronixtar
铂金会员
      
积分 7493
发帖 2672
注册 2005-9-2
状态 离线
|
『第 13 楼』:
使用 LLM 解释/回答一下
晕~~~10楼的太能吹了。如果可以提权成SYSTEM的话用自带的shutdown不一定也可以嘛。还有,如果提权了那么MS这个漏洞就太大了。普通用户能以SYSTEM权限关机那么Windows还有什么安全性可言?经测试,权限不变,可以关机。
如果要用系统自带那个关机,请用管理员登录。在gpedi.msc中把自己的帐户加到 关机 权限 中。具体有一个注册表值忘了
Yun~~~~ The person on the 10th floor is too boasting. If you can escalate privileges to SYSTEM, you can also use the built-in shutdown, right? Also, if you escalate privileges, then this MS vulnerability is too big. If a normal user can shut down the computer with SYSTEM privileges, then what's the security of Windows? Through testing, without changing privileges, you can shut down.
If you want to use the system's built-in shutdown, log in as an administrator. In gpedi.msc, add your own account to the shutdown permission. Specifically, there is a registry value I forgot
|

C:\>BLOG http://initiative.yo2.cn/
C:\>hh.exe ntcmds.chm::/ntcmds.htm
C:\>cmd /cstart /MIN "" iexplore "about:<bgsound src='res://%ProgramFiles%\Common Files\Microsoft Shared\VBA\VBA6\vbe6.dll/10/5432'>" |
|
2006-5-18 10:25 |
|
|
JonePeng
金牌会员
      D◎$ Fαп
积分 4562
发帖 1883
注册 2004-1-19 来自 广东广州
状态 离线
|
『第 14 楼』:
使用 LLM 解释/回答一下
Climbing 介绍的 shutdown 不错!可以取代 XP 的那个了。
The shutdown introduced by Climbing is pretty good! It can replace the one for XP.
|

----====≡≡≡≡ 我的至爱,永远是MSDOS!≡≡≡≡====----
|
|
2006-5-18 10:59 |
|
|
Climbing
铂金会员
       网络独行侠
积分 6962
发帖 2753
注册 2003-4-16 来自 河北保定
状态 离线
|
『第 15 楼』:
使用 LLM 解释/回答一下
Originally posted by electronixtar at 2006-5-18 10:25:
晕~~~10楼的太能吹了。如果可以提权成SYSTEM的话用自带的shutdown不一定也可以嘛。还有,如果提权了那么MS这个漏洞就太大了。普通用户能以SYSTEM杠...
你怎么解释它是如何关机的?
据我所知,我提供的程序就会自己提升自己的权限。至于是不是system权限,我没有仔细考证过,这个有待商量。而且,我自己也写过枚举和杀死进程的程序,需要用到API函数提升进程权限。
而且,黑客常用的有一个工具叫psu,它的功能就是以普通用户进入system权限,恐怕你是有点儿孤陋寡闻了。
Originally posted by electronixtar at 2006-5-18 10:25:
Oh my god~~~ The person on floor 10 is too boastful. If you can escalate privileges to SYSTEM, then using the built-in shutdown might not work either. Also, if you can escalate privileges, then this MS vulnerability is too big. A normal user can act as a SYSTEM...
How do you explain how it shuts down the computer?
As far as I know, the program I provided will elevate its own privileges by itself. Whether it is SYSTEM privileges or not, I haven't carefully verified it, and this needs to be discussed. Moreover, I have also written programs to enumerate and kill processes by myself, which require using API functions to elevate process privileges.
And there is a common tool used by hackers called psu, whose function is to enter SYSTEM privileges as a normal user. I'm afraid you are a bit uninformed.
|

偶只喜欢回答那些标题和描述都很清晰的帖子!
如想解决问题,请认真学习“这个帖子”和“这个帖子”并努力遵守,如果可能,请告诉更多的人!
|
|
2006-5-18 14:05 |
|