如何不使用autorun.inf从USB自动运行.exe文件? [英] How to autorun a .exe file from a usb without using autorun.inf?

查看:280
本文介绍了如何不使用autorun.inf从USB自动运行.exe文件?的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在设计USB记忆棒的安全实用程序,当插入记忆棒时,会向用户发送一封电子邮件,其中包含计算机的名称和IP地址。我的电子邮件部分正常工作,但是不知道如何在插入USB时执行制作的.exe文件。我知道autorun.inf暂时没有工作了,我希望它能够运行不论插入的PC是什么,它都会自动运行。有什么建议么?谢谢。

I am designing a security utility for USB sticks that when a memory stick has been plugged in,an email is sent to the user with the computer's name and IP address. I have got the email part working, but do not know how to execute the .exe file I have made when the USB is plugged in. I know autorun.inf hasn't worked for a while now, and I would like it to run automatically regardless of the PC it is plugged into. Any suggestions? Thanks.

推荐答案

我很确定没有办法将可执行文件存储到USB大容量存储设备中,它会在所有Windows PC上自动运行,因为这样做会带来安全风险。

I am pretty sure there is no way to store an executable onto a USB mass storage device in such a way that it runs automatically on all Windows PCs, because that would be a security risk.

您可以将Windows配置为使用自动播放:进入设置>设备>自动播放。

You can configure Windows to use AutoPlay though: go to Settings > Devices > Autoplay.

如果您可以控制USB设备的固件,则可以尝试模拟HID键盘并以此方式控制用户的计算机。参见 BadUSB USB橡皮鸭

If you have control over the firmware of the USB device, you might try emulating an HID keyboard and taking control of the user's computer that way. See BadUSB and USB Rubber Ducky.

这篇关于如何不使用autorun.inf从USB自动运行.exe文件?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆