Genymobile / scrcpy

Display and control your Android device
Apache License 2.0
111.31k stars 10.67k forks source link

Windows 10 - virus #4063

Open nr1995 opened 1 year ago

nr1995 commented 1 year ago

Window 10 just informed me that my .vbs script contained a “severe” virus, then went ahead and deleted it automatically. Luckily I had it backed up in a .txt file somewhere else, but if I try to make it again, Windows 10 immediately sees it, flags it, and deletes it again. This was the content of the .vbs file:

' OnePlus 9
strCommand = "cmd /c scrcpy.exe --window-x 1067 --window-y 79 --window-width 463 --window-height 1028 --prefer-text --no-key-repeat --push-target=/sdcard/ --turn-screen-off"

For Each Arg In WScript.Arguments
    strCommand = strCommand & " """ & replace(Arg, """", """""""""") & """"
Next

CreateObject("Wscript.Shell").Run strCommand, 0, false

' --crop 180:70:0:0              ' width:height:X:Y
' --window-title 'notification'
' --window-x 1018
' --window-y 152
' --window-width 88
' --window-height 32
' --window-borderless
' --always-on-top
' --stay-awake           -w
' --turn-screen-off      -S
' --prefer-text
' --raw-key-events
' --no-key-repeat
' --push-target=/sdcard/
' 
' https://github.com/Genymobile/scrcpy#window-configuration
rom1v commented 1 year ago

False positive (it flags your own file 😄).

Some antivirus also used to flag binaries compiled with mingw: #1102.

nr1995 commented 1 year ago

False positive (it flags your own file 😄).

Some antivirus also used to flag binaries compiled with mingw: #1102.

But what can I do?

rom1v commented 1 year ago

I don't know. You should make an exception in your AntiVirus, but I have no idea how it works.

nr1995 commented 1 year ago

I got it, by the way. Windows Settings ---> Virus & threat protection ---> Virus & threat protection [Manage settings] ---> Exclusions [add or remove exclusions]