Jump to content

Script reconized as virus by windows 10


Recommended Posts

Hello, I recently finished writting a script that download an image from a website, then displays it

But when i compiled it, windows defender sent me a trojan alert.

Anyone know why ?

Thanks

#include <AVIConstants.au3>
#include <GuiConstantsEx.au3>
#include <TreeViewConstants.au3>
#include <InetConstants.au3>
#include <MsgBoxConstants.au3>
#include <WindowsConstants.au3>

Local Static $btnDl, $btnRefresh, $hyperlink
Global $guiReturn
Local Static $guiWidth = 250
Local Static $guiHeight = 250
Local Static $halfGuiWidth = $guiWidth /2
Local Static $halfGuiHeight = $guiHeight /2
Local Static $fourthGuiHeight = $guiHeight/4
Local Static $AboutGui, $MainGui
Local Static $btnClose = "11111"
Local Static $btnWebsite = "22222"

$MainGui = GUICreate("Super Confetti for Windows", $guiWidth, $guiHeight)
GUISetIcon(@ScriptDir & "\" & @ScriptName, 0);only display the icon when compiled

$idFileMenu = GUICtrlCreateMenu("File")
$idFileItemImg = GUICtrlCreateMenuItem("Open .GIF image", $idFileMenu)
$idFileItemSound = GUICtrlCreateMenuItem("Open .MP3, .WAV", $idFileMenu)
$idRecentFilesMenu = GUICtrlCreateMenu("Recent Files", $idFileMenu)
$idSeparator1 = GUICtrlCreateMenuItem("", $idFileMenu)
$idExitItem = GUICtrlCreateMenuItem("Exit", $idFileMenu)
$idControlMenu = GUICtrlCreateMenu("Control")
$idPlayItem = GUICtrlCreateMenuItem("Play", $idControlMenu)
$idStopItem = GUICtrlCreateMenuItem("Stop", $idControlMenu)
$idHelpMenu = GUICtrlCreateMenu("?")
$idAboutItem = GUICtrlCreateMenuItem("About", $idHelpMenu)

$sFile = "pickle.gif"
_ShowPic()
Func _ShowPic()
GUICtrlCreatePic($sFile, $halfGuiWidth - 64, $fourthGuiHeight - 25, 128, 128)
GUICtrlSetTip(-1, "Pickle :)")
EndFunc
$btnDl = GUICtrlCreateButton ( "Download image", $guiWidth - 230, $guiHeight -55, 100, 25)
GUICtrlSetTip(-1, "Download a 128x128 pixel image")
$btnRefresh = GUICtrlCreateButton ( "Refresh", $guiWidth - 115, $guiHeight -55, 100, 25)
GUICtrlSetTip(-1, "Refresh the GUI")

GUISetState(@SW_SHOW)
  While 1
    $guiReturn = GUIGetMsg(1)
    Select
     Case $guiReturn[0] = $GUI_EVENT_CLOSE
         If $guiReturn[1] = $AboutGui Then
               GUISwitch($AboutGui)
               GUIDelete($AboutGui)
            ElseIf $guiReturn[1] = $MainGui Then
               Exit
         EndIf
     Case $guiReturn[0] = $btnDl
         InetGet("https://i.ibb.co/C222Ttv/pickle.gif", @ScriptDir & "\pickle.gif", $INET_FORCERELOAD)
         $sFile = "pickle.gif"
     Case $guiReturn[0] = $btnRefresh
         _ShowPic()
     Case $guiReturn[0] = $idFileItemImg
         $sFile = FileOpenDialog("Choose image...", @UserProfileDir & "\Pictures", "GIF Image (*.gif*)")
         If @error <> 1 Then GUICtrlCreateMenuItem($sFile, $idRecentFilesMenu)
     Case $guiReturn[0] = $idFileItemSound
         $sFile = FileOpenDialog("Choose music...", @UserProfileDir & "\Music", "Music(*.mp3*), (*.wav*)")
         If @error <> 1 Then GUICtrlCreateMenuItem($sFile, $idRecentFilesMenu)
         SoundPlay($sFile)
     Case $guiReturn[0] = $idExitItem
         Exit
     Case $guiReturn[0] = $idPlayItem
         SoundPlay("")
         SoundPlay($sFile)
     Case $guiReturn[0] = $idStopItem
         SoundPlay("")
     Case $guiReturn[0] = $idAboutItem
         $AboutGui = GUICreate("About Super Confetti", 175, 200, -1, -1, -1, $WS_EX_TOOLWINDOW, $MainGui)
         GUISetBkColor (0xD6D6D6, $AboutGui )
         GUICtrlCreateLabel("Created By AFrenchCroissant", 21, 10)
         GUICtrlCreateLabel("AutoIT version : " & @AutoItVersion, 30, 30)
         GUICtrlCreateLabel("Super Conffetti v1.0 32Bit", 28, 50)
         GUICtrlCreateLabel("for windows XP/Vista/7/8/8.1/10", 5, 70)
         $btnWebsite = GUICtrlCreateButton ( "Website", 35, 110, 100, 25)
         $btnClose = GUICtrlCreateButton ( "Close", 35, 150, 100, 25)
         GUISetState(@SW_SHOW)
     Case $guiReturn[0] = $btnClose
         GUISwitch($AboutGui)
         GUIDelete($AboutGui)
      Case $guiReturn[0] = $btnWebsite
         ShellExecute("https://www.autoitscript.com")
    EndSelect
  WEnd

 

Link to post
Share on other sites

Welcome to AutoIt and the forum!

Please search the forum's FAQ or the forum itself. This subject has been discussed man, many times before ;)

My UDFs and Tutorials:

Spoiler

UDFs:
Active Directory (NEW 2021-11-10 - Version 1.6.0.0) - Download - General Help & Support - Example Scripts - Wiki
ExcelChart (2017-07-21 - Version 0.4.0.1) - Download - General Help & Support - Example Scripts
OutlookEX (NEW 2021-11-16 - Version 1.7.0.0) - Download - General Help & Support - Example Scripts - Wiki
OutlookEX_GUI (2021-04-13 - Version 1.4.0.0) - Download
Outlook Tools (2019-07-22 - Version 0.6.0.0) - Download - General Help & Support - Wiki
PowerPoint (NEW 2021-08-31 - Version 1.5.0.0) - Download - General Help & Support - Example Scripts - Wiki
Task Scheduler (2019-12-03 - Version 1.5.1.0) - Download - General Help & Support - Wiki

Standard UDFs:
Excel - Example Scripts - Wiki
Word - Wiki

Tutorials:
ADO - Wiki
WebDriver - Wiki

 

Link to post
Share on other sites
51 minutes ago, water said:

this subject has been discussed man, many times before ;)

;)

@AFrenchCroissant :

The thread where this topic is mainly discussed : are-my-autoit-exes-really-infected

Maybe the solution using .a3x would be suitable for you, see e.g. : https://www.autoitscript.com/forum/topic/34658-are-my-autoit-exes-really-infected/?do=findComment&comment=1472906

You may also want to look at the solution from @Exit , see : au3tocmd-avoid-false-positives

Edited by Musashi
typo

Musashi-C64.png

"In the beginning the Universe was created. This has made a lot of people very angry and been widely regarded as a bad move."

Link to post
Share on other sites
  • Jos locked this topic
Guest
This topic is now closed to further replies.
  • Recently Browsing   0 members

    No registered users viewing this page.

×
×
  • Create New...