will a plain txt .ahk that perform delete C:/ but warned by anti virus?

Get help with using AutoHotkey (v1.1 and older) and its commands and hotkeys
joyrr5092
Posts: 83
Joined: 28 Dec 2023, 09:54

will a plain txt .ahk that perform delete C:/ but warned by anti virus?

03 Mar 2024, 16:50

hi,

.ahk is plain text.

and i know anti virus search by pattern.

but if a plain text .ahk contains action of delete C:/

i am screwed, is it?

thank you.

ps i ask because i wanna run some 3rd party .ahk.
User avatar
mikeyww
Posts: 28871
Joined: 09 Sep 2014, 18:38

Re: will a plain txt .ahk that perform delete C:/ but warned by anti virus?

03 Mar 2024, 17:04

Hello,

To learn whether your script works, run your script! You can buy a new computer afterwards. :D
Rohwedder
Posts: 7895
Joined: 04 Jun 2014, 08:33
Location: Germany

Re: will a plain txt .ahk that perform delete C:/ but warned by anti virus?

04 Mar 2024, 01:32

Hallo,
try:

Code: Select all

#SingleInstance, Force
If !A_IsAdmin
	Try Run *RunAs "%A_ScriptFullPath%"
File = %A_WinDir%\Media\Alarm01.wav
Copy = %A_WinDir%\Media\Copy.wav
1::Run, "%File%"
2::FileCopy, %File%, %Copy%
3::Run, "%Copy%"
4::Reload
Start this script and refuse to give the admin rights.
1:: try to play a system sound file
2:: try to create a copy of it
3:: try to play this copy (should not work)
4:: restart the script, give the admin rights and try the same as above (this time everything should work)
What do you anti virus think about this?

Return to “Ask for Help (v1)”

Who is online

Users browsing this forum: mikeyww, Noesis, vanove and 173 guests