Avoiding Detection

Malware often tries to stay hidden so it cannot be easily detected. This script will hide the console window when the script is run:

import ctypes #access Windows C functions
kernel32 = ctypes.windll.kernel32 #kernel level
user32 = ctypes.windll.user32  #user level
  
user32.ShowWindow(kernel32.GetConsoleWindow(), False) #hide console
  
while True:
  pass








n.b. - exam browsers (such as NAPLAN) work this way