I wrote a simple python script in which I have used the Python Global-Hotkeys Module to make a simple script which does nothing but wait for some key-combination to be pressed and once the key combination is pressed, the script turns off the external monitors I have attached to my PC. It was working great and I am very happy with the way everything has panned out. Now, I wanted this script to start as soon as Windows starts, so I used Pyinstaller to convery my .py file to .exe and added a shortcut of the .exe file in my startup. I added the same shortcut in my laptop as well. I have Kaspersky Total Security in PC and Windows Defender in laptop. In PC, when I scan the same converted .exe with Kaspersky anti virus, it says 'no threats' whereas in my laptop the same file is being classified as a 'Trojan'. Why is this, what am I missing here ?
Windows Defender is Classifying My Python Script As a Trojan, Why is that?
802 Views Asked by Aaron Jones At
1
There are 1 best solutions below
Related Questions in PYTHON
- How to store a date/time in sqlite (or something similar to a date)
- Instagrapi recently showing HTTPError and UnknownError
- How to Retrieve Data from an MySQL Database and Display it in a GUI?
- How to create a regular expression to partition a string that terminates in either ": 45" or ",", without the ": "
- Python Geopandas unable to convert latitude longitude to points
- Influence of Unused FFN on Model Accuracy in PyTorch
- Seeking Python Libraries for Removing Extraneous Characters and Spaces in Text
- Writes to child subprocess.Popen.stdin don't work from within process group?
- Conda has two different python binarys (python and python3) with the same version for a single environment. Why?
- Problem with add new attribute in table with BOTO3 on python
- Can't install packages in python conda environment
- Setting diagonal of a matrix to zero
- List of numbers converted to list of strings to iterate over it. But receiving TypeError messages
- Basic Python Question: Shortening If Statements
- Python and regex, can't understand why some words are left out of the match
Related Questions in PYINSTALLER
- Raspberry Pi Sense Hat with Pyinstaller
- Error "No module named autopygui" after opening the compiled exe file
- Django miss static files after packaging with pyinstaller
- RecursionError and pyinstaller .spec error
- How can i debug a python exe which is created by using pyinstaller?
- Issue with pyinstaller, transforming .py file into .exe
- The assembled Python application does not launch
- When I try to convert this code to exe file it runs a cmd window
- pyninstaller error: ignored explicit argument '--'
- error 'sequence item 2: expected str instance, NoneType found' while operating HDF5 format in Python
- Problem opening .robot from .exe generated with pyinstaller
- Importing assets in Python doesn't work after making a build
- How to convert multiple Python files to multiple executable using pyinstaller
- pyinstaller' is not recognized as an internal or external command, operable program or batch file
- ModuleNotFoundError: No module named 'scipy.linalg.basic
Related Questions in STARTUP
- How to open all folders in CWD as tmux windows
- Anaconda navigator does not start every time my laptop is turned off
- setting guifont in .vimrc does not work Windows 11
- For a two-stage cluster deployed in Apache IoTDB, why the confignode of the second server cannot be started and added to the seed confignode?
- Fresh MongoDB Community Edition install will not start (Installed through a fresh Homebrew install)
- How to deal with the status of the third confignode in Apache IoTDB cluster to running?
- warning: no previous extern declaration for non-static variable 'c' [-Wmissing-variable-declarations]
- I created an executable in Python but it doesn't always start properly at startup
- Adding multiple OpenIdConnect authentication schemes to the services and choosing at runtime which to use
- Portable windows app built with electron-builder takes too long to start up
- Is there a way to remove UWP startup tasks entries from the Task Manager?
- Intelhaxm has made iMac unable to start up
- Unable to start debugging. Visual Studio 2022
- Flutter app performs downloads and tasks on startup without user interaction
- PowerShell to start a script at startup with Task Scheduler
Related Questions in WINDOWS-DEFENDER
- Windows 2019 Registry Values Keep Reverting (Windows Defender)
- How to prevent "Microsoft defender SmartScreen prevented an unrecognised app" warning for my own python based app
- Windows defender flags my `Golang Tray Application` as virus program
- Does defender link in to client-server connections?
- How to deal with Windows Defender false positives?
- How do I enable the high level "public" and "private" network access settings in Windows Defender via Powershell?
- Use Windows Defender API to scan data without writing it to disk?
- How to disable antivirus software (Windows Defender?) on GitLab's Windows runner?
- Cannot overwrite an excel XLSM file with a lot of VBA because of Windows real-time protection
- Electron-based app flagged as Potentially Unwanted Software by Windows Defender
- Online API for querying Microsoft Defender's latest antivirus pattern version?
- Copy to clipboard slow in VS 2022 with Windows Defender
- Run powershell script or whitelist installation directory before installing in inno setup
- Deactivate Windows Defender programmaticaly
- Powershell script Set-MpPreference not working correctly
Related Questions in GLOBAL-HOTKEY
- Getting the ID of a hotkey registered through RegisterHotKey
- Is there anyway to set global hotkey for a mouse button?
- Hotkeys disable Debian 10
- nim - Windows - how to check for system wide hotkey press?
- RegisterHotKey fails and GetLastWin32Error returns ERROR_INVALID_FLAGS
- Keyboard module hotkeys not working after locking windows
- WPF NHotkey global hotkey only runs when window is focused
- Run through events and test if they work in C#
- Using global hotkeys in Powershell
- Jintellitype Hotkey Declared and configured while developing application code is not working in final .exe file in another device
- Windows Defender is Classifying My Python Script As a Trojan, Why is that?
- Python Keyboard Module add_hotkey is not working after you lock windows Once. Help Needed
- Global hotkey in Tkinter
- How to differenciate between registered hotkeys using user32.dll
- How to change back and forth application focus with global hotkey in C#
Trending Questions
- UIImageView Frame Doesn't Reflect Constraints
- Is it possible to use adb commands to click on a view by finding its ID?
- How to create a new web character symbol recognizable by html/javascript?
- Why isn't my CSS3 animation smooth in Google Chrome (but very smooth on other browsers)?
- Heap Gives Page Fault
- Connect ffmpeg to Visual Studio 2008
- Both Object- and ValueAnimator jumps when Duration is set above API LvL 24
- How to avoid default initialization of objects in std::vector?
- second argument of the command line arguments in a format other than char** argv or char* argv[]
- How to improve efficiency of algorithm which generates next lexicographic permutation?
- Navigating to the another actvity app getting crash in android
- How to read the particular message format in android and store in sqlite database?
- Resetting inventory status after order is cancelled
- Efficiently compute powers of X in SSE/AVX
- Insert into an external database using ajax and php : POST 500 (Internal Server Error)
Popular # Hahtags
Popular Questions
- How do I undo the most recent local commits in Git?
- How can I remove a specific item from an array in JavaScript?
- How do I delete a Git branch locally and remotely?
- Find all files containing a specific text (string) on Linux?
- How do I revert a Git repository to a previous commit?
- How do I create an HTML button that acts like a link?
- How do I check out a remote Git branch?
- How do I force "git pull" to overwrite local files?
- How do I list all files of a directory?
- How to check whether a string contains a substring in JavaScript?
- How do I redirect to another webpage?
- How can I iterate over rows in a Pandas DataFrame?
- How do I convert a String to an int in Java?
- Does Python have a string 'contains' substring method?
- How do I check if a string contains a specific word?
the problem is that your program is listening for keystrokes and that's totally fine as you have coded it yourself and the windows defender may think the program as a keylogger or something