Network Security Internet Technology Development Database Servers Mobile Phone Android Software Apple Software Computer Software News IT Information

In addition to Weibo, there is also WeChat

Please pay attention

WeChat public account

Shulou

A method of prohibiting USB Devices in the Application layer of Win7 system

2025-04-02 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >

Share

Shulou(Shulou.com)06/02 Report--

The idea is to turn the registration list driven by the application layer on and off.

The list of registrations utilized is as follows:

HKEY_LOCAL_MACHINE\ SYSTEM\ CurrentControlSet\ services\ USBSTOR

There is "start" in the subkey

The 16-bit DWORD value of this start has the following main values

2-self-start

3-start by default

4-disable startup

My computer defaults to 3-start by default

The idea is to change the registration list to "4" and export

Use ansible's WinRM module for hourly (or more frequent) script injection to silently update the registration list to DWORD=4

There are two premises for this.

First, the windows system installs and opens WinRM and performs ansible control work.

Second, you need to know the administrator login information of the windows operating system.

Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.

Views: 0

*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.

Share To

Servers

Wechat

© 2024 shulou.com SLNews company. All rights reserved.

12
Report