473,508 Members | 2,298 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Checking for autorun.inf

MrMancunian
569 Recognized Expert Contributor
Hi Everybody,

We've got a virus problem in our department and the thing it does is always the same. It creates an autorun.inf in the root of every partition. When the partition is accessed (or initialised, I'm not sure), the autorun.inf runs an executable. I was thinking I could write a program/script that checks all available disks for an autorun.inf and either replaces or deletes the file. This way, the executable doesn't run. Now, surely I'm forgetting something, like doesn't autorun.inf run when I check whether or not it is present? Do you have any suggestions on how to go around this? I'm not asking for code, just ideas are enough.

Thnx,

Steven
Nov 1 '08 #1
2 1521
jg007
283 Contributor
vbscript would probably be the best option for this, depending on how you are set up and if you are using activedirectory it could be pushed pretty easily.

I don't think that this would activate it but if so I would probably recomend pushing out a policy to the workstations to disable autourun on drives and you might want to do that anyway

if you want to create a .reg file just use the entries below -

Expand|Select|Wrap|Line Numbers
  1.  
  2. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  3. "NoDriveTypeAutoRun"=dword:00000024
  4.  
  5. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
  6. "Autorun"=dword:00000000
  7.  
  8.  
Nov 2 '08 #2
MrMancunian
569 Recognized Expert Contributor
vbscript would probably be the best option for this, depending on how you are set up and if you are using activedirectory it could be pushed pretty easily.

I don't think that this would activate it but if so I would probably recomend pushing out a policy to the workstations to disable autourun on drives and you might want to do that anyway

if you want to create a .reg file just use the entries below -

Expand|Select|Wrap|Line Numbers
  1.  
  2. [HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
  3. "NoDriveTypeAutoRun"=dword:00000024
  4.  
  5. [HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Cdrom]
  6. "Autorun"=dword:00000000
  7.  
  8.  
Hi,

We don't use AD (yet), so that is not an option. Furthermore, VBScript isn't something I control, so I wouldn't get very far I'm afraid. Does anyone have another idea?

Thnx,

Steven
Nov 3 '08 #3

Sign in to post your reply or Sign up for a free account.

Similar topics

0
2349
by: M.E.Farmer | last post by:
Hello all, I needed this and did a quick search around and didn't see any examples. I knew it had to be easy, and it was. So here it is a CD_Autorun program in python. It is very simple and...
11
5036
by: Ray5531 | last post by:
I'm looking for a good Freeware autorun maker for my C# application.Any suggessions? Thanks
2
8511
by: Joe Cool | last post by:
I know this is probably not the proper newsgroup to ask this question, but I do not know which one is. And most of you guys here know a lot about windows programming so I am taking a chance some...
2
3165
by: tmWin | last post by:
Hi all I wanna run my application directly from a Flash Disk. I want it AUTORUN once the device is attached. I have seen some virus script-programs which create their own autoruns on a...
0
6101
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Overview NOTE- This complete article on "Windows Autorun FAQs" applies theoretically to all Windows NT-based OSes till Windows Vista (and probably Vista's successors too)....
0
9188
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Description NOTE- If you are unfamiliar with the concept of autoruns, then read "Windows Autorun FAQs: Overview". Que-1: How can I safely remove or edit the autorun...
0
30177
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: List of autostart locations Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list all the autostart locations for windows? Ans: Here is...
0
9932
AmberJain
by: AmberJain | last post by:
Windows Autorun FAQs: Programs dealing with autoruns Linked from the Original article- "Windows Autorun FAQs: Description". Que: Can you list programs that help me to view/modify the autoruns...
0
7225
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However,...
0
7123
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can...
1
7042
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows...
0
7495
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each...
0
5627
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing,...
1
5052
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new...
0
4707
by: conductexam | last post by:
I have .net C# application in which I am extracting data from word file and save it in database particularly. To store word all data as it is I am converting the whole word file firstly in HTML and...
0
1556
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated ...
0
418
bsmnconsultancy
by: bsmnconsultancy | last post by:
In today's digital era, a well-designed website is crucial for businesses looking to succeed. Whether you're a small business owner or a large corporation in Toronto, having a strong online presence...

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.