简体   繁体   English

在Windows中运行.bat文件是否会生成任何系统日志?

[英]Does running a .bat file in Windows generates any system log?

I want to create a .bat file in Windows that receives a password and will call a custom utility to encrypt that password. 我想在Windows中创建一个.bat文件来接收密码,并将调用自定义实用程序对该密码进行加密。

Is really important that the password sent to the .bat file as parameter is not logged anywhere. 务必不要将发送到.bat文件作为参数的密码记录在任何地方。

My question is, if running a .bat file will create any system logs? 我的问题是,如果运行.bat文件会创建任何系统日志? anywhere? 地方? What if the .bat fails? .bat失败怎么办?

Are there any other better ways of doing this? 还有其他更好的方法吗?

Thanks! 谢谢!

The generic answer is, "No, the running of batch files is not logged." 通用答案是:“否,不记录批处理文件的运行。” However, there is no guarantee on a given system that the information is not saved somewhere. 但是,不能保证给定系统不会将信息保存在某处。 Or to say that again without double negatives, it is possible on some system that the information could be saved. 还是要说没有双重否定,在某些系统上可以保存信息。 For example, there could be a custom command shell (possibly created by the "bad" guy) that does log information. 例如,可能有一个自定义命令外壳(可能由“坏”家伙创建)来记录信息。

You're going to see the command line in the process list. 您将在进程列表中看到命令行。 So if something is logging processes, or if it's long-running and someone opens the Task Manager, they could see it. 因此,如果某些东西正在记录进程,或者它正在长时间运行并且有人打开了任务管理器,那么他们可以看到它。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM